While undertaking some tests on a test machine (for the thread I opened about apt vs apt-get, work in progress)
- installed a fresh Stretch, selected Desktop environment, Gnome, KDE, Cinnamon, Mate, SSH server, system utils
- changed /etc/apt/sources.list :
Code: Select all
deb http://ftp.fr.debian.org/debian/ buster main contrib non-free
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb http://ftp.fr.debian.org/debian/ buster-updates main contrib non-free
- apt-get -V dist-upgrade, got this error (seems the same as the OP issue)
Code: Select all
[...]
Preparing to unpack .../133-libservlet-api-java_4.0.1-2_all.deb ...
Unpacking libservlet-api-java (4.0.1-2) ...
Selecting previously unselected package libjsp-api-java.
Preparing to unpack .../134-libjsp-api-java_2.3.4-2_all.deb ...
Unpacking libjsp-api-java (2.3.4-2) ...
dpkg: error processing archive /tmp/apt-dpkg-install-Ef9wrg/134-libjsp-api-java_2.3.4-2_all.deb (--unpack):
trying to overwrite '/usr/share/maven-repo/javax/servlet/jsp/javax.servlet.jsp-api/2.3/javax.servlet.jsp-api-2.3.pom', which is also in package libservlet3.1-java 8.5.50-0+deb9u1
Selecting previously unselected package libel-api-java.
Preparing to unpack .../135-libel-api-java_3.0.0-2_all.deb ...
Unpacking libel-api-java (3.0.0-2) ...
dpkg: error processing archive /tmp/apt-dpkg-install-Ef9wrg/135-libel-api-java_3.0.0-2_all.deb (--unpack):
trying to overwrite '/usr/share/maven-repo/javax/el/javax.el-api/3.0/javax.el-api-3.0.pom', which is also in package libservlet3.1-java 8.5.50-0+deb9u1
Selecting previously unselected package libwebsocket-api-java.
Preparing to unpack .../136-libwebsocket-api-java_1.1-1_all.deb ...
Unpacking libwebsocket-api-java (1.1-1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-Ef9wrg/136-libwebsocket-api-java_1.1-1_all.deb (--unpack):
trying to overwrite '/usr/share/maven-repo/javax/websocket/javax.websocket-api/1.0/javax.websocket-api-1.0.pom', which is also in package libservlet3.1-java 8.5.50-0+deb9u1
Preparing to unpack .../137-libservlet3.1-java_1%3a4.0.1-2_all.deb ...
Unpacking libservlet3.1-java (1:4.0.1-2) over (8.5.50-0+deb9u1) ...
Preparing to unpack .../138-libhsqldb1.8.0-java_1.8.0.10+dfsg-10_all.deb ...
Unpacking libhsqldb1.8.0-java (1.8.0.10+dfsg-10) over (1.8.0.10+dfsg-7) ...
Preparing to unpack .../139-fonts-opensymbol_2%3a102.10+LibO6.1.5-3+deb10u5_all.deb ...
[...]
Errors were encountered while processing:
/tmp/apt-dpkg-install-Ef9wrg/134-libjsp-api-java_2.3.4-2_all.deb
/tmp/apt-dpkg-install-Ef9wrg/135-libel-api-java_3.0.0-2_all.deb
/tmp/apt-dpkg-install-Ef9wrg/136-libwebsocket-api-java_1.1-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
- 1980 packages left in unpacked state, 493 not upgraded
and then
saved the situation, but there seems to be real issue with these packages (I suspect packaging error. Shouldn't Stretch packages be removed by install scripts before attempting upgrade?).
I must remember to install (and use) timeshift before Bullseye.
What I'm doing when I know there is an issue with package upgrade (always run a simulation before any upgrade) is removing the package and its reverse dependencies, doing the upgrade, reinstalling the packages. By far the simplest way.