** Changed in: ebtables (Ubuntu Xenial)
Assignee: Dan Streetman (ddstreet) => Balint Reczey (rbalint)
** Changed in: ebtables (Ubuntu Artful)
Assignee: Dan Streetman (ddstreet) => Balint Reczey (rbalint)
** Changed in: ebtables (Ubuntu Bionic)
Assignee: Dan Streetman (ddstreet) => Balint Reczey (rbalint)
** Description changed:
[impact]
ebtables cannot be upgraded on Ubuntu 18.04 for WSL.
[test case]
on a WSL installation that already has ebtables installed (most
installations do), try to upgrade the package with apt or dpkg; its
prerm script will fail, and prevent the upgrade.
+
+ The easiest way of triggering the problem is reinstalling the package:
+ $ sudo apt install --reinstall ebtables
[regression potential]
the ebtables init script is changed to never return an error code when
called as 'stop', so anything that depends on the script returning an
error code when 'stop' fails will no longer work correctly. However,
nothing appears to use the 'stop' return value, besides the package's
prerm script, which is what is causing the upgrade failure.
Additionally, the prerm script is updated to ignore 'failed-upgrade'
failures, to allow upgrading over the previous version(s).
Finally note that the rpm-specific ebtables.spec file that is included
in the package specifically ignores the 'stop' return value, i.e.:
- /sbin/service ebtables stop &>/dev/null || :
+ /sbin/service ebtables stop &>/dev/null || :
[other info]
note that ebtables is effectively dead upstream, so it's extremely
unlikely there will be many more package updates/srus, except to fix
minor bugs such as this.
[original description]
ebtables cannot be upgraded on Ubuntu 18.04 for WSL.
apt-get upgrade fails with the following error:
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
ebtables
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/79.9 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 47381 files and directories currently installed.)
Preparing to unpack .../ebtables_2.0.10.4-3.5ubuntu2.18.04.1_amd64.deb ...
invoke-rc.d: could not determine current runlevel
[31m*[39;49m 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
[31m*[39;49m 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
See https://github.com/Microsoft/WSL/issues/1761
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774120
Title:
ebtables cannot be upgraded from 2.0.10.4-3.5ubuntu2 to
2.0.10.4-3.5ubuntu2.18.04.1 on WSL
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ebtables/+bug/1774120/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs