dpkg: error processing archive /var/cache/apt/archives/init-system-helpers_1.29ubuntu4_all.deb (--unpack): trying to overwrite '/usr/sbin/invoke-rc.d', which is also in package sysv-rc 2.88dsf-59.3ubuntu2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
init-system-helpers (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I was trying to do a normal apt-get upgrade when I started to run into issues. I am not sure how to fix this since it is a system package. This system was upgraded from 14.04 to 16.04, but it was working fine for awhile.
I started in this thread, but I could not get it working. https:/
This machine is now a Proxmox VM, so I have the option to do some testing with it.
#: apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
bsdutils linux-generic linux-headers-
The following packages will be upgraded:
apparmor apt apt-transport-https apt-utils bind9-host console-setup console-setup-linux dbus dbus-x11 desktop-file-utils distro-info-data dnsutils docker-engine
dpkg-dev eject graphviz grub-common grub-pc grub-pc-bin grub2-common init init-system-helpers initramfs-tools initramfs-tools-bin initramfs-
keyboard-
libc-bin libc-dev-bin libc6 libc6-dev libcdt5 libcgraph6 libdbus-1-3 libdns-export162 libdns162 libdpkg-perl libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2
libdrm-radeon1 libdrm2 libevent-2.0-5 libevent-core-2.0-5 libfdisk1 libfreetype6 libfreetype6-dev libgc1c2 libgd-dev libgd3 libgl1-mesa-dri libgl1-mesa-glx
libglapi-mesa libglib2.0-0 libglib2.0-data libgnutls-openssl27 libgnutls30 libgssapi-krb5-2 libgssrpc4 libgvc6 libgvpr2 libhogweed4 libicu55 libisc-export160
libisc160 libisccc140 libisccfg140 libk5crypto3 libkadm5clnt-mit9 libkadm5srv-mit9 libkdb5-8 libklibc libkrb5-3 libkrb5support0 liblwres141 libmount1
libmysqlclien
libssl-dev libssl-doc libssl1.0.0 libsystemd0 libtiff5 libtiff5-dev libtiffxx5 libudev-dev libudev1 libuuid1 libwbclient0 libxml2 libxpm-dev libxpm4 libxslt1.1
linux-firmware linux-libc-dev locales login makedev mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools mount multiarch-support
mysql-client-5.7 mysql-client-
python-crypto python-libxml2 python-samba python3-distupgrade python3-
systemd-sysv tcpdump tftp-hpa tftpd-hpa thermald ubuntu-
163 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/194 MB of archives.
After this operation, 12.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 127087 files and directories currently installed.)
Preparing to unpack .../init-
Unpacking init-system-helpers (1.29ubuntu4) over (1.29ubuntu3) ...
dpkg: error processing archive /var/cache/
trying to overwrite '/usr/sbin/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
#: lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04
# apt-cache policy init-system-helpers
init-system-
Installed: 1.29ubuntu3
Candidate: 1.29ubuntu4
Version table:
1.29ubuntu4 500
500 https:/
500 https:/
*** 1.29ubuntu3 100
100 /var/lib/
1.29ubuntu1 500
500 https:/
500 https:/
500 http://
500 http://
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: init-system-helpers 1.29ubuntu3
ProcVersionSign
Uname: Linux 4.4.0-57-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Sun May 7 17:03:56 2017
PackageArchitec
ProcEnviron:
LANGUAGE=en_US:
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: init-system-helpers
UpgradeStatus: Upgraded to xenial on 2017-01-03 (124 days ago)
I am unable to reproduce this issue. Per the changelog, sysv-rc (from src:sysvinit) dropped the invoke.rc bits in 2.88dsf- 59.3ubuntu1:
sysvinit (2.88dsf- 59.3ubuntu1) xenial; urgency=low
* Dropped various changes for invoke.rc which has moved to system- helpers.
init-
# apt install --reinstall sysv-rc init-system-helpers archive. ubuntu. com/ubuntu xenial/main amd64 sysv-rc all 2.88dsf-59.3ubuntu2 [18.2 kB] archive. ubuntu. com/ubuntu xenial-updates/main amd64 init-system-helpers all 1.29ubuntu4 [32.3 kB] system- helpers_ 1.29ubuntu4_ all.deb ... rc_2.88dsf- 59.3ubuntu2_ all.deb ... 59.3ubuntu2) over (2.88dsf- 59.3ubuntu2) ... 59.3ubuntu2) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 15 not upgraded.
Need to get 50.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Get:2 http://
Fetched 50.5 kB in 0s (61.0 kB/s)
Preconfiguring packages ...
(Reading database ... 25504 files and directories currently installed.)
Preparing to unpack .../init-
Unpacking init-system-helpers (1.29ubuntu4) over (1.29ubuntu4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up init-system-helpers (1.29ubuntu4) ...
(Reading database ... 25504 files and directories currently installed.)
Preparing to unpack .../sysv-
Unpacking sysv-rc (2.88dsf-
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up sysv-rc (2.88dsf-
and dpkg agrees that sysv-rc no longer contains any invoke-rc references:
# dpkg -L sysv-rc lintian/ overrides lintian/ overrides/ sysv-rc doc/sysv- rc doc/sysv- rc/copyright doc/sysv- rc/README. Debian doc/sysv- rc/NEWS. Debian. gz doc/sysv- rc/README. runlevels. gz sysv-rc/ saveconfig doc/sysv- rc/changelog. Debian. gz
/.
/etc
/etc/rc0.d
/etc/rc0.d/README
/etc/init.d
/etc/init.d/rcS
/etc/init.d/README
/etc/init.d/rc
/etc/rc3.d
/etc/rc3.d/README
/etc/rc1.d
/etc/rc1.d/README
/etc/rcS.d
/etc/rcS.d/README
/etc/rc2.d
/etc/rc2.d/README
/etc/rc6.d
/etc/rc6.d/README
/etc/rc5.d
/etc/rc5.d/README
/etc/rc4.d
/etc/rc4.d/README
/var
/var/lib
/var/lib/insserv
/usr
/usr/share
/usr/share/lintian
/usr/share/
/usr/share/
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/sysv-rc
/usr/share/
/usr/share/
Can you provide any more details, and perhaps the output for `apt policy sysv-rc`?