【发布时间】:2018-05-31 20:11:49
【问题描述】:
在 Windows 10 Spring Creators Update (RS4) 上运行的 Ubuntu 18.04 中执行 apt-get dist-upgrade 时,我收到此错误:
Preparing to unpack .../ebtables_2.0.10.4-3.5ubuntu2.18.04.1_amd64.deb ...
invoke-rc.d: could not determine current runlevel
* Error: insufficient privileges to access the ebtables rulesets.
invoke-rc.d: initscript ebtables, action "stop" failed.
dpkg: warning: old ebtables package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
invoke-rc.d: could not determine current runlevel
* Error: insufficient privileges to access the ebtables rulesets.
invoke-rc.d: initscript ebtables, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/ebtables_2.0.10.4-3.5ubuntu2.18.04.1_amd64.deb (--unpack):
new ebtables package pre-removal script subprocess returned error exit status 1
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: could not determine current runlevel
Errors were encountered while processing:
/var/cache/apt/archives/ebtables_2.0.10.4-3.5ubuntu2.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我并不真正关心 ebtables(它似乎是一个默认/内置包),但我不想筛选每个更新的输出来确定除此之外是否还有新错误。
【问题讨论】:
-
这是这个问题的副本(在更合适的 StackExchange 站点上):Unable to update ebtables on WSL。此外,这是更新脚本中的一个错误,它已经在一个新的 ebtables 包中得到解决。旧包的更新现已成功。
标签: ubuntu windows-subsystem-for-linux ebtables