cross-testing essential packages fails

Bug #1881504 reported by Balint Reczey
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Won't Fix
Undecided
Unassigned
autopkgtest (Ubuntu)
Confirmed
Undecided
Unassigned
gzip (Ubuntu)
New
Undecided
Unassigned

Bug Description

Testing gzip on i386 fails at replacing gzip(:amd64) with gzip:i386.

https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-groovy/groovy/i386/g/gzip/20200528_195150_89f08@/log.gz

...
autopkgtest [19:51:38]: testing package gzip version 1.10-2ubuntu1
autopkgtest [19:51:38]: build not needed
autopkgtest [19:51:38]: test simple-gzip: preparing testbed
Note, using file '/tmp/autopkgtest.1PbIQv/1-autopkgtest-satdep.dsc' to get the build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages will be REMOVED:
  gzip
The following NEW packages will be installed:
  build-essential cpp cpp-9 g++ g++-9 gcc gcc-10-base:i386 gcc-9 gcc-9-base
  gzip:i386 libasan5 libatomic1 libc-dev-bin libc6:i386 libc6-dev libcc1-0
  libcrypt-dev libcrypt1:i386 libgcc-9-dev libgcc-s1:i386 libgomp1 libisl22
  libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1
  linux-libc-dev
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  gzip
0 upgraded, 30 newly installed, 1 to remove and 0 not upgraded.
E: Essential packages were removed and -y was used without --allow-remove-essential.
E: Failed to process build dependencies
...

Balint Reczey (rbalint)
tags: added: update-excuse
tags: added: id-5ec3b6cbff6ea34a158feeae
Revision history for this message
Balint Reczey (rbalint) wrote :

Maybe APT should not consider crossgrading a package as a removal and APT should be fixed instead of autopkgtest:

root@gg-libyaml:~# apt install gzip:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  gcc-10-base gcc-10-base:i386 libatomic1 libc6:i386 libcc1-0 libcrypt-dev libcrypt1 libcrypt1:i386 libgcc-s1 libgcc-s1:i386 libgomp1 libidn2-0:i386 libitm1 liblsan0
  libquadmath0 libstdc++6 libtsan0 libubsan1 libunistring2 libunistring2:i386
Suggested packages:
  glibc-doc:i386 locales:i386
The following packages will be REMOVED:
  gzip
The following NEW packages will be installed:
  gcc-10-base:i386 gzip:i386 libc6:i386 libcrypt1:i386 libgcc-s1:i386 libidn2-0:i386 libunistring2:i386
The following packages will be upgraded:
  gcc-10-base libatomic1 libcc1-0 libcrypt-dev libcrypt1 libgcc-s1 libgomp1 libitm1 liblsan0 libquadmath0 libstdc++6 libtsan0 libubsan1 libunistring2
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  gzip
14 upgraded, 7 newly installed, 1 to remove and 121 not upgraded.
Need to get 5303 kB of archives.
After this operation, 15.2 MB of additional disk space will be used.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?]
Abort.

Revision history for this message
Balint Reczey (rbalint) wrote :

We discussed that with @juliank and we agreed that APT should not let this cross-grading happen without confirmation at least thus the most generic fix would be in autopkgtest.

Changed in apt (Ubuntu):
status: New → Won't Fix
Changed in autopkgtest (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

This continues to be an issue and one which I ran into recently:

runner/autopkgtest --setup-commands="dpkg --add-architecture i386; apt-get update" --architecture i386 gzip -- qemu --ram-size=4096 --cpus=4 /srv/vms/autopkgtest-lunar-amd64.img
...
Broken gzip:amd64 Conflicts on gzip:i386 < none -> 1.12-1ubuntu1 @un puN Ib >
  Considering gzip:i386 5103 as a solution to gzip:amd64 5103
  Removing gzip:amd64 rather than change gzip:i386
Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gzip : Conflicts: gzip:i386 but 1.12-1ubuntu1 is to be installed
 gzip:i386 : Conflicts: gzip but 1.12-1ubuntu1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
simple-gzip FAIL badpkg
blame: gzip
badpkg: Test dependencies are unsatisfiable. A common reason is that your testbed is out of date with respect to the archive, and you need to use a current testbed or run apt-get update or use -U.
autopkgtest [14:05:26]: @@@@@@@@@@@@@@@@@@@@ summary
simple-gzip FAIL badpkg
blame: gzip
badpkg: Test dependencies are unsatisfiable. A common reason is that your testbed is out of date with respect to the archive, and you need to use a current testbed or run apt-get update or use -U.
qemu-system-x86_64: terminating on signal 15 from pid 1828712 (/usr/bin/python3)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.