freebsd / pkg

Package management tool for FreeBSD. Help at #pkg on Libera Chat or pkg@FreeBSD.org
Other
748 stars 279 forks source link

Pkg dies in the middle of an upgrade #1456

Open bdrewery opened 8 years ago

bdrewery commented 8 years ago

I thought this was fixed. I would consider it a blocker for pkgbase.

> pkg upgrade
...
[435/493] Reinstalling linux_base-c6-6.8...
sysctl: unknown oid 'compat.linux.osrelease'
linuxulator is not (kld)loaded, exiting
pkg: PRE-INSTALL script failed
[root@c1100-1][pts/2][zsh/2][Fri 07/22/2016 10:48:14 PDT][3?0&]

This was effectively a pkg upgrade -f since I just upgraded from 11 to 12 and ran 'pkg upgrade`.

bdrewery commented 8 years ago

Well, it did commit the transaction at least. The next upgrade resumed at the next package rather than redoing everything. I'm glad that one is fixed at least. It wasn't obvious to me that it even crashed in the middle until I noticed "435/493". If it is expected to behave like this, we should explicitly tell the user to do something and then resume with pkg upgrade again.

grahamperrin commented 2 years ago

Still an issue?