[Aptitude-devel] Bug#907872: aptitude UI prefers to keep packages rather than just upgrading
Vincent Lefevre
vincent at vinc17.net
Mon Sep 3 13:05:46 BST 2018
Package: aptitude
Version: 0.8.10-9
Severity: minor
In the aptitude UI (curses interface), when I hit '+' for libreoffice,
then 'e' (Examine), I get:
Packages Resolve Dependencies
--\ Keep the following packages at their current version:
libreoffice-base-core [1:6.1.1~rc1-1 (now)]
libreoffice-base-drivers [1:6.1.1~rc1-1 (now)]
libreoffice-base [1:6.1.1~rc1-1 (now)]
libreoffice-calc [1:6.1.1~rc1-1 (now)]
libreoffice-core [1:6.1.1~rc1-1 (now)]
libreoffice-draw [1:6.1.1~rc1-1 (now)]
libreoffice-evolution [1:6.1.1~rc1-1 (now)]
libreoffice-gnome [1:6.1.1~rc1-1 (now)]
libreoffice-gtk3 [1:6.1.1~rc1-1 (now)]
libreoffice-impress [1:6.1.1~rc1-1 (now)]
libreoffice-writer [1:6.1.1~rc1-1 (now)]
libreoffice [1:6.1.1~rc1-1 (now)]
If I choose Next, I get:
Packages Resolve Dependencies
--\ Upgrade the following packages:
libreoffice-avmedia-backend-gstreamer [1:6.1.1~rc1-1 now -> 1:6.1.1~rc1-2 te
libreoffice-math [1:6.1.1~rc1-1 now -> 1:6.1.1~rc1-2 testing, unstable]
libreoffice-ogltrans [1:6.1.1~rc1-1 now -> 1:6.1.1~rc1-2 testing, unstable]
libreoffice-report-builder-bin [1:6.1.1~rc1-1 now -> 1:6.1.1~rc1-2 testing,
libreoffice-sdbc-firebird [1:6.1.1~rc1-1 now -> 1:6.1.1~rc1-2 testing, unsta
libreoffice-sdbc-hsqldb [1:6.1.1~rc1-1 now -> 1:6.1.1~rc1-2 testing, unstabl
libreoffice-sdbc-postgresql [1:6.1.1~rc1-1 now -> 1:6.1.1~rc1-2 testing, uns
python3-uno [1:6.1.1~rc1-1 now -> 1:6.1.1~rc1-2 testing, unstable]
I can apply and type 'g' without any issue. This gives:
--\ Packages to be upgraded (20)
iu libreoffice 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-avme 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-base 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-base +134 kB 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-base -134 kB 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-calc 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-core 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-draw 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iu libreoffice-evol 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iu libreoffice-gnom 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-gtk3 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-impr 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-math 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-oglt 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iu libreoffice-repo 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-sdbc 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-sdbc 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-sdbc 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA libreoffice-writ 1:6.1.1~rc1-1 1:6.1.1~rc1-2
iuA python3-uno 1:6.1.1~rc1-1 1:6.1.1~rc1-2
So, aptitude should have chosen to upgrade the packages in the first
place instead of keeping all of them.
Note that there is no such problem with the command line:
cventin:~> aptitude install -s libreoffice
The following packages will be upgraded:
libreoffice libreoffice-base libreoffice-base-core
libreoffice-base-drivers libreoffice-calc libreoffice-core
libreoffice-draw libreoffice-evolution libreoffice-gnome libreoffice-gtk3
libreoffice-impress libreoffice-writer
12 packages upgraded, 0 newly installed, 0 to remove and 87 not upgraded.
Need to get 55.4 MB of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
libreoffice-math : Depends: libreoffice-core (= 1:6.1.1~rc1-1) but 1:6.1.1~rc1-2 is to be installed
libreoffice-report-builder-bin : Depends: libreoffice-core (= 1:6.1.1~rc1-1) but 1:6.1.1~rc1-2 is to be installed
libreoffice-sdbc-postgresql : Depends: libreoffice-core (= 1:6.1.1~rc1-1) but 1:6.1.1~rc1-2 is to be installed
libreoffice-sdbc-firebird : Depends: libreoffice-core (= 1:6.1.1~rc1-1) but 1:6.1.1~rc1-2 is to be installed
python3-uno : Depends: libreoffice-core (= 1:6.1.1~rc1-1) but 1:6.1.1~rc1-2 is to be installed
libreoffice-ogltrans : Depends: libreoffice-core (= 1:6.1.1~rc1-1) but 1:6.1.1~rc1-2 is to be installed
libreoffice-sdbc-hsqldb : Depends: libreoffice-core (= 1:6.1.1~rc1-1) but 1:6.1.1~rc1-2 is to be installed
libreoffice-avmedia-backend-gstreamer : Depends: libreoffice-core (= 1:6.1.1~rc1-1) but 1:6.1.1~rc1-2 is to be installed
The following actions will resolve these dependencies:
Upgrade the following packages:
1) libreoffice-avmedia-backend-gstreamer [1:6.1.1~rc1-1 (now) -> 1:6.1.1~rc1
2) libreoffice-math [1:6.1.1~rc1-1 (now) -> 1:6.1.1~rc1-2 (testing, unstable
3) libreoffice-ogltrans [1:6.1.1~rc1-1 (now) -> 1:6.1.1~rc1-2 (testing, unst
4) libreoffice-report-builder-bin [1:6.1.1~rc1-1 (now) -> 1:6.1.1~rc1-2 (tes
5) libreoffice-sdbc-firebird [1:6.1.1~rc1-1 (now) -> 1:6.1.1~rc1-2 (testing,
6) libreoffice-sdbc-hsqldb [1:6.1.1~rc1-1 (now) -> 1:6.1.1~rc1-2 (testing, u
7) libreoffice-sdbc-postgresql [1:6.1.1~rc1-1 (now) -> 1:6.1.1~rc1-2 (testin
8) python3-uno [1:6.1.1~rc1-1 (now) -> 1:6.1.1~rc1-2 (testing, unstable)]
Accept this solution? [Y/n/q/?]
So, what the UI proposes by default is really unexpected.
I just have the following options:
Aptitude::UI::Package-Display-Format "%c%a%M %p %Z %24v %24V";
Aptitude::ProblemResolver::SolutionCost "safety, removals";
I've attached the /var/lib/aptitude/pkgstates file, compressed.
-- Package-specific info:
Terminal: xterm-debian
$DISPLAY is set.
which aptitude: /usr/bin/aptitude
aptitude version information:
aptitude 0.8.10
Compiler: g++ 7.3.0
Compiled against:
apt version 5.0.2
NCurses version 6.1
libsigc++ version: 2.10.0
Gtk+ support disabled.
Qt support disabled.
Current library versions:
NCurses version: ncurses 6.1.20180714
cwidget version: 0.5.17
Apt version: 5.0.2
aptitude linkage:
linux-vdso.so.1 (0x00007ffed897b000)
libgtk3-nocsd.so.0 => /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0 (0x00007fbdb2487000)
libapt-pkg.so.5.0 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0 (0x00007fbdb22b8000)
libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007fbdb227e000)
libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007fbdb2250000)
libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007fbdb2049000)
libcwidget.so.3 => /usr/lib/x86_64-linux-gnu/libcwidget.so.3 (0x00007fbdb1f43000)
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007fbdb1c31000)
libboost_iostreams.so.1.62.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.62.0 (0x00007fbdb1c18000)
libboost_filesystem.so.1.62.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.62.0 (0x00007fbdb1bfd000)
libboost_system.so.1.62.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.62.0 (0x00007fbdb1bf8000)
libxapian.so.30 => /usr/lib/x86_64-linux-gnu/libxapian.so.30 (0x00007fbdb19d2000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbdb19b1000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbdb182c000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbdb1698000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbdb167e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbdb14c1000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbdb14bc000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fbdb14a3000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbdb1283000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007fbdb1270000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fbdb104a000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fbdb0e2d000)
libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007fbdb0d92000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fbdb0d72000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbdb2cc9000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fbdb0d66000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fbdb0d5d000)
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.17.0-3-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages aptitude depends on:
ii aptitude-common 0.8.10-9
ii libapt-pkg5.0 1.6.4
ii libboost-filesystem1.62.0 1.62.0+dfsg-8
ii libboost-iostreams1.62.0 1.62.0+dfsg-8
ii libboost-system1.62.0 1.62.0+dfsg-8
ii libc6 2.27-5
ii libcwidget3v5 0.5.17-11
ii libgcc1 1:8.2.0-4
ii libncursesw6 6.1+20180714-1
ii libsigc++-2.0-0v5 2.10.0-2
ii libsqlite3-0 3.24.0-1
ii libstdc++6 8.2.0-4
ii libtinfo6 6.1+20180714-1
ii libxapian30 1.4.7-2
Versions of packages aptitude recommends:
ii libparse-debianchangelog-perl 1.2.0-12
ii sensible-utils 0.0.12
Versions of packages aptitude suggests:
pn apt-xapian-index <none>
ii aptitude-doc-en [aptitude-doc] 0.8.10-9
pn debtags <none>
ii tasksel 3.45
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pkgstates.xz
Type: application/octet-stream
Size: 841644 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/aptitude-devel/attachments/20180903/122b99e9/attachment-0001.obj>
More information about the Aptitude-devel
mailing list