Bug#989236: crossgrader: crashes with "Could not mark python3-apt:amd64 for install, fixing manually."

2021-07-05 Thread Steve McIntyre
On Wed, Jun 30, 2021 at 08:56:51PM +0200, Adam Borowski wrote:
>Control: severity -1 serious
>
>On Mon, May 31, 2021 at 05:01:35PM +0200, Adam Borowski wrote:
>> On Mon, May 31, 2021 at 07:08:22AM -0700, Kevin Wu wrote:
>> > On Mon, May 31, 2021 at 4:26 AM Adam Borowski  wrote:
>> > > But, is there _any_ case when crossgrader might possibly work?  As it 
>> > > needs
>> > > python-apt-common, it will always fail.  That makes the package useless.
>> > > Should we bump #968458 to a RC severity?
>> > 
>> > crossgrader won't be able to work if python3-apt cannot be
>> > crossgraded, so there's no case where it would work. Would #968458
>> > merit critical for breaking unrelated software?
>
>As the other bug hasn't been fixed, crossgrader as it stands in Bullseye is
>useless.  So either we convince David to reconsider or a workaround has to
>be found.

Julian has just uploaded with the fix we need, so that should make
things better. Dropping severity.

(We'll probably need a fix for #990669, even so...)

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
< sladen> I actually stayed in a hotel and arrived to find a post-it
  note stuck to the mini-bar saying "Paul: This fridge and
  fittings are the correct way around and do not need altering"



Bug#989236: crossgrader: crashes with "Could not mark python3-apt:amd64 for install, fixing manually."

2021-06-30 Thread Adam Borowski
Control: severity -1 serious

On Mon, May 31, 2021 at 05:01:35PM +0200, Adam Borowski wrote:
> On Mon, May 31, 2021 at 07:08:22AM -0700, Kevin Wu wrote:
> > On Mon, May 31, 2021 at 4:26 AM Adam Borowski  wrote:
> > > But, is there _any_ case when crossgrader might possibly work?  As it 
> > > needs
> > > python-apt-common, it will always fail.  That makes the package useless.
> > > Should we bump #968458 to a RC severity?
> > 
> > crossgrader won't be able to work if python3-apt cannot be
> > crossgraded, so there's no case where it would work. Would #968458
> > merit critical for breaking unrelated software?

As the other bug hasn't been fixed, crossgrader as it stands in Bullseye is
useless.  So either we convince David to reconsider or a workaround has to
be found.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ If you ponder doing what Jesus did, remember than flipping tables
⢿⡄⠘⠷⠚⠋⠀ and chasing people with a whip is a prime choice.
⠈⠳⣄



Bug#989236: crossgrader: crashes with "Could not mark python3-apt:amd64 for install, fixing manually."

2021-05-31 Thread Adam Borowski
On Mon, May 31, 2021 at 07:08:22AM -0700, Kevin Wu wrote:
> On Mon, May 31, 2021 at 4:26 AM Adam Borowski  wrote:
> > But, is there _any_ case when crossgrader might possibly work?  As it needs
> > python-apt-common, it will always fail.  That makes the package useless.
> > Should we bump #968458 to a RC severity?
> 
> crossgrader won't be able to work if python3-apt cannot be
> crossgraded, so there's no case where it would work. Would #968458
> merit critical for breaking unrelated software?

A dependency is related.  Still, that bug renders a package useless, which
is serious (not that there's any practical difference between different
RC severity levels...).

I've bumped that bug's severity, and explained why it's better to solve that
in src:python-apt rather than in crossgrader.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁
⢿⡄⠘⠷⠚⠋⠀ ᛊᚨᚾᛁᛏᚣ᛫ᛁᛊ᛫ᚠᛟᚱ᛫ᚦᛖ᛫ᚹᛖᚨᚲ
⠈⠳⣄



Bug#989236: crossgrader: crashes with "Could not mark python3-apt:amd64 for install, fixing manually."

2021-05-31 Thread Kevin Wu
On Mon, May 31, 2021 at 4:26 AM Adam Borowski  wrote:
> But, is there _any_ case when crossgrader might possibly work?  As it needs
> python-apt-common, it will always fail.  That makes the package useless.
> Should we bump #968458 to a RC severity?

crossgrader won't be able to work if python3-apt cannot be
crossgraded, so there's no case where it would work. Would #968458
merit critical for breaking unrelated software?

> It appears to me that hardly anyone had the opportunity to test crossgrader...

Unfortunately, that much is true...

However, even without the Multi-Arch changes for python-apt-common,
crossgrader works around the problem in Buster without user input
required. Perhaps some part of APT was changed which prevents it from
working.



Bug#989236: crossgrader: crashes with "Could not mark python3-apt:amd64 for install, fixing manually."

2021-05-31 Thread Adam Borowski
On Sun, May 30, 2021 at 12:29:33PM -0700, Kevin Wu wrote:
> Hello!
> 
> This behavior is due to python-apt-common not being marked as
> Multi-Arch: foreign. I have already filed a bug report at
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968458
> 
> If you would like to continue, you can modify the python-apt-common
> entry in /var/lib/dpkg/status to include Multi-Arch: foreign and run
> crossgrader again.

Aye, this helped!

But, is there _any_ case when crossgrader might possibly work?  As it needs
python-apt-common, it will always fail.  That makes the package useless.
Should we bump #968458 to a RC severity?

It's an obvious one-liner fix, and, with python-apt having an autopkgtest,
the upload wouldn't even require asking for a freeze exception.

> I'm not quite sure why this is stopping crossgrader
> on Bullseye but not on Buster; I'll look into it.

It hasn't been a part of Buster, and there's no backport for it in the
archive either (the latter is a bit we can fix).  It appears to me that
hardly anyone had the opportunity to test crossgrader...


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ The oldest dated printed book includes the following license grant:
⣾⠁⢠⠒⠀⣿⡁   Reverently made for universal free distribution by Wang Jie
⢿⡄⠘⠷⠚⠋⠀   on behalf of his two parents on the 15th of the 4th moon of
⠈⠳⣄   the 9th year of Xiantong [11 May 868].



Bug#989236: crossgrader: crashes with "Could not mark python3-apt:amd64 for install, fixing manually."

2021-05-30 Thread Kevin Wu
Hello!

This behavior is due to python-apt-common not being marked as
Multi-Arch: foreign. I have already filed a bug report at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968458

If you would like to continue, you can modify the python-apt-common
entry in /var/lib/dpkg/status to include Multi-Arch: foreign and run
crossgrader again. I'm not quite sure why this is stopping crossgrader
on Bullseye but not on Buster; I'll look into it.



Bug#989236: crossgrader: crashes with "Could not mark python3-apt:amd64 for install, fixing manually."

2021-05-29 Thread Adam Borowski
Package: crossgrader
Version: 0.0.3+nmu2
Severity: important

Hi!
While trying to crossgrade a system, I got the following crash:

Could not mark python3-apt:amd64 for install, fixing manually.
Traceback (most recent call last):
  File "/usr/bin/crossgrader", line 33, in 
sys.exit(load_entry_point('debian-crossgrader==0.0.3', 'console_scripts', 
'crossgrader')())
  File "/usr/lib/python3/dist-packages/debian_crossgrader/__main__.py", line 
262, in main
first_stage(args)
  File "/usr/lib/python3/dist-packages/debian_crossgrader/__main__.py", line 
60, in first_stage
crossgrader.cache_package_debs(pkg_packages)
  File "/usr/lib/python3/dist-packages/debian_crossgrader/crossgrader.py", line 
581, in cache_package_debs
assert target.marked_install, \
AssertionError: python3-apt:amd64 not marked as install despite no auto_inst

As python3-apt is a dependency of crossgrader itself, I can't remove it to
let crossgrader continue.

Before the crash, the output so far was:

# crossgrader amd64
Installing initramfs binary architecture check hook...
arch check hook already installed.
Hook installation failed.
Hit http://apt-stg.angband.pl:3142/debian bullseye InRelease
 
Hit http://apt-stg.angband.pl:3142/debian bullseye-updates InRelease
 
Hit http://angband.pl/debian sid InRelease  
 
Hit http://apt-stg.angband.pl:3142/security.debian.org bullseye-security 
InRelease   
Hit http://deb.debian.org/debian bullseye-backports InRelease   
 
Fetched 0 B in 0s (0 B/s)   
 
48 targets found.
apt-utils:amd64
apt:amd64
base-files:amd64
base-passwd:amd64
bash:amd64
bsdutils:amd64
coreutils:amd64
cpio:amd64
cron:amd64
dash:amd64
debianutils:amd64
diffutils:amd64
dpkg:amd64
e2fsprogs:amd64
findutils:amd64
gcc-10-base:amd64
gpgv:amd64
grep:amd64
gzip:amd64
hostname:amd64
init:amd64
iproute2:amd64
iputils-ping:amd64
klibc-utils:amd64
kmod:amd64
less:amd64
libc-bin:amd64
libpam-modules-bin:amd64
libpam-modules:amd64
libreadline8:amd64
login:amd64
logrotate:amd64
mawk:amd64
mount:amd64
ncurses-bin:amd64
passwd:amd64
perl-base:amd64
procps:amd64
python3-apt:amd64
python3:amd64
rsyslog:amd64
screen:amd64
sed:amd64
sudo:amd64
sysvinit-utils:amd64
tar:amd64
udev:amd64
util-linux:amd64
Do you want to continue [y/N]? y


Meow!
-- System Information:
Debian Release: 11.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (400, 'testing')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 5.10.0-6-amd64 (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: OpenRC (via /run/openrc), PID 1: init

Versions of packages crossgrader depends on:
ii  arch-test  0.17-1
ii  dpkg-dev   1.20.9
ii  initramfs-tools0.140
ii  python33.9.2-3
ii  python3-appdirs1.4.4-1
ii  python3-apt2.2.0
ii  python3-pkg-resources  52.0.0-3

crossgrader recommends no packages.

Versions of packages crossgrader suggests:
pn  qemu-user-static  

-- no debconf information