Your message dated Fri, 16 Jul 2021 13:18:44 +0000
with message-id <[email protected]>
and subject line Bug#990669: fixed in debian-crossgrader 0.0.3+nmu3
has caused the Debian Bug report #990669,
regarding crossgrader: Third stage fails with protected packages
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
990669: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990669
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: crossgrader
Version: 0.0.3+nmu2
Severity: important

Trying to do an amd64 -> i386 crossgrade after debootstrap
of the amd64 chroot fails with:

# crossgrader --third-stage amd64 i386
Installing initramfs binary architecture check hook...
arch check hook already installed.
Hook installation failed.
Hit http://deb.debian.org/debian sid InRelease
Fetched 0 B in 0s (0 B/s)
4 targets found.
gcc-10-base:amd64
libc6:amd64
libcrypt1:amd64
libgcc-s1:amd64
Do you want to continue [y/N]? y
dpkg: error processing package libcrypt1:amd64 (--purge):
 this is a protected package; it should not be removed
dpkg: error processing package libgcc-s1:amd64 (--purge):
 this is a protected package; it should not be removed
dpkg: dependency problems prevent removal of gcc-10-base:amd64:
 libgcc-s1:amd64 depends on gcc-10-base (= 10.2.1-6).

dpkg: error processing package gcc-10-base:amd64 (--purge):
 dependency problems - not removing
(Reading database ... 18110 files and directories currently installed.)
Removing libc6:amd64 (2.31-12) ...
Purging configuration files for libc6:amd64 (2.31-12) ...
Processing triggers for libc-bin (2.31-12) ...
Errors were encountered while processing:
 libcrypt1:amd64
 libgcc-s1:amd64
 gcc-10-base:amd64
Traceback (most recent call last):
  File "/usr/bin/crossgrader", line 33, in <module>
    sys.exit(load_entry_point('debian-crossgrader==0.0.3', 'console_scripts', 
'crossgrader')())
  File "/usr/lib/python3/dist-packages/debian_crossgrader/__main__.py", line 
260, in main
    third_stage(args)
  File "/usr/lib/python3/dist-packages/debian_crossgrader/__main__.py", line 
141, in third_stage
    subprocess.check_call(['dpkg', '--purge'] + targets)
  File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['dpkg', '--purge', 
'gcc-10-base:amd64', 'libc6:amd64', 'libcrypt1:amd64', 'libgcc-s1:amd64']' 
returned non-zero exit status 1.
#


libgcc-s1 and libcrypt1 both got
  Protected: yes
to prevent accidental removal in some buster -> bullseye upgrade situations,
some additional forcing seems necessary to overwrite that.


It works after changing line 141 in
/usr/lib/python3/dist-packages/debian_crossgrader/__main__.py to:
        if cont == 'y':
            subprocess.check_call(['dpkg', '--purge', 
'--force-remove-protected'] + targets)

--- End Message ---
--- Begin Message ---
Source: debian-crossgrader
Source-Version: 0.0.3+nmu3
Done: Adrian Bunk <[email protected]>

We believe that the bug you reported is fixed in the latest version of
debian-crossgrader, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <[email protected]> (supplier of updated debian-crossgrader package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 14 Jul 2021 20:23:38 +0300
Source: debian-crossgrader
Architecture: source
Version: 0.0.3+nmu3
Distribution: unstable
Urgency: medium
Maintainer: Kevin Wu <[email protected]>
Changed-By: Adrian Bunk <[email protected]>
Closes: 990669
Changes:
 debian-crossgrader (0.0.3+nmu3) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Purge with --force-remove-protected in the third stage to
     avoid failures due to packages that recently became protected.
     (Closes: #990669)
Checksums-Sha1:
 5ee875e0fafaba46d6b5e3c36d9fa7eeb055e5e6 1578 debian-crossgrader_0.0.3+nmu3.dsc
 1cf91a1947cfa15b133bbc9ae625c4dea3c06f35 170388 
debian-crossgrader_0.0.3+nmu3.tar.xz
Checksums-Sha256:
 09b5d82e9af3ceeecd9e18cd50e6bfe11aa5c953c7a3129fff136b87970a92cd 1578 
debian-crossgrader_0.0.3+nmu3.dsc
 e5affd5eab214fb8c7fb0c664ab1e321e4783826868d74d1c5411fc48c32bd30 170388 
debian-crossgrader_0.0.3+nmu3.tar.xz
Files:
 7d33fff32605c5c9e4ff4390edd2ffb4 1578 python optional 
debian-crossgrader_0.0.3+nmu3.dsc
 e41e2bd06578480e1f6aa30a44093bb9 170388 python optional 
debian-crossgrader_0.0.3+nmu3.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmDvIV4ACgkQiNJCh6LY
mLEkXBAAtkK1eFSHY9z3/6oig1TmdGfqMTZdjmVJfzAo8pamM7oQx3gLr/Zr408U
vaYPt0xr9UIjxcLkK6ExnE1a+j8gQr69gSYWiO9WaDPAJikSNF+mcVj3GAiXRomo
yMRCgh6+yDY6tz0K8ClTKMQax20ys2j6K2G6qUmRtNdxVQzeifBgGkzsohitNxHr
VdE75Nk+1ET0tXm/UGOKDGPt9nidHndFg/v712jCcBgfnyXGtrw35HVp0dxzsQgl
QXHdlEoBetD430qad1ROPVcSBdTmbVzmTu0ZBCVwQK8novBKxslCH9bg8fGIP4R5
m91vvN1V+GnkoY0ln5bCPB90MZCW15zCifbYi2CMuxoycAp4rVb/R0mUMIKW2jvp
Ji/ot/mnegm/xekKPDNAst1u0PkWj5SzFziRfrSZC71NObLRBDNKraQg0xeMdQCZ
ELuHs/2XKVaa2xUAS87DxhJ8wOpQsOjYlrxFDdUv9zhvds14mMDIlut6AZDnFHhh
JWohp2DEatxyFhWlt6TvpIR0l+DVl4D8brZmaQEMbPbAjsZ2SXTTlLMOSCzt0XKC
NE80KA2aQLVtGrHEbw5mu14o6jTK62cu+y6MkLfMmXVje0tSsZbl51H+1CLnHv5l
PbV32uokS9EZ3J+xPHYCq17VxpE/ze+Cjhc3NsipavqhZoa68Ns=
=T143
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to