Date: Fri, 05 Mar 2021 22:46:47 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254050] pkgbase: pkg autoremove is removing packages it shouldn't Message-ID: <bug-254050-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254050 Bug ID: 254050 Summary: pkgbase: pkg autoremove is removing packages it shouldn't Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: me@igalic.co setting up a jail with pkgbase: meena@beastix ~> sudo pkg -r /isolates/pkg-auto-remove-bug/root install -r FreeBSD-base FreeBSD-clibs \ FreeBSD-clibs-dev FreeBSD-libexecinfo FreeBSD-rc \ FreeBSD-runtime FreeBSD-utili= ties FreeBSD-vi \ FreeBSD-zoneinfo Updating FreeBSD-base repository catalogue... Fetching meta.conf: 100% 164 B 0.2kB/s 00:01 Fetching packagesite.tzst: 100% 30 KiB 31.0kB/s 00:01 Processing entries: 100% FreeBSD-base repository update completed. 332 packages processed. All repositories are up to date. The following 25 package(s) will be affected (of 0 checked): New packages to be INSTALLED: FreeBSD-clibs: 14.snap20210302214559 [FreeBSD-base] FreeBSD-clibs-dev: 14.snap20210302214559 [FreeBSD-base] FreeBSD-libarchive: 14.snap20210225154922 [FreeBSD-base] FreeBSD-libbegemot: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libbsdxml: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libbsm: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libbz2: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libdwarf: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libefivar: 14.snap20210225154922 [FreeBSD-base] FreeBSD-libevent1: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libexecinfo: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libldns: 14.snap20210220023449 [FreeBSD-base] FreeBSD-liblzma: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libmagic: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libnetmap: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libopie: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libregex: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libsmb: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libsqlite3: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libucl: 14.snap20210220023449 [FreeBSD-base] FreeBSD-rc: 14.snap20210227073719 [FreeBSD-base] FreeBSD-runtime: 14.snap20210302214559 [FreeBSD-base] FreeBSD-utilities: 14.snap20210302214559 [FreeBSD-base] FreeBSD-vi: 14.snap20210227073719 [FreeBSD-base] FreeBSD-zoneinfo: 14.snap20210220023449 [FreeBSD-base] Number of packages to be installed: 25 The process will require 263 MiB more space. 66 MiB to be downloaded. Proceed with this action? [y/N]: y <snip> so, everything looks fine! we can chroot into this jail and test basic things out: meena@beastix ~> sudo chroot /isolates/pkg-auto-remove-bug/root root@beastix:/ # su - root@beastix:~ # logout root@beastix:/ # exit cool. sh works, su works, let's remove ""unneeded"" packages: meena@beastix ~> sudo pkg -r /isolates/pkg-auto-remove-bug/root autoremove Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 17 packages: Installed packages to be REMOVED: FreeBSD-libarchive: 14.snap20210225154922 FreeBSD-libbegemot: 14.snap20210220023449 FreeBSD-libbsdxml: 14.snap20210220023449 FreeBSD-libbsm: 14.snap20210220023449 FreeBSD-libbz2: 14.snap20210220023449 FreeBSD-libdwarf: 14.snap20210220023449 FreeBSD-libefivar: 14.snap20210225154922 FreeBSD-libevent1: 14.snap20210220023449 FreeBSD-libldns: 14.snap20210220023449 FreeBSD-liblzma: 14.snap20210220023449 FreeBSD-libmagic: 14.snap20210220023449 FreeBSD-libnetmap: 14.snap20210220023449 FreeBSD-libopie: 14.snap20210220023449 FreeBSD-libregex: 14.snap20210220023449 FreeBSD-libsmb: 14.snap20210220023449 FreeBSD-libsqlite3: 14.snap20210220023449 FreeBSD-libucl: 14.snap20210220023449 Number of packages to be removed: 17 The operation will free 11 MiB. Proceed with deinstalling packages? [y/N]: y and try again: meena@beastix ~> sudo chroot /isolates/pkg-auto-remove-bug/root root@beastix:/ # su - ld-elf.so.1: Shared object "libbsm.so.3" not found, required by "su" root@beastix:/ # we just broke a jail that was working perfectly fine a second ago. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254050-227>