[Aptitude-devel] Bug#1064969: apt: can't upgrade with aptitude

2024-03-01 Thread Vincent Lefevre via Aptitude-devel
On 2024-02-28 17:28:51 +0100, Sven Joachim wrote:
> No, in this case it is a problem with aptitude's resolver which
> manifests itself due to the following configuration setting:
> 
> > Aptitude::ProblemResolver::SolutionCost "safety, removals";
> 
> This does cause aptitude to hold apt back by default, rather than remove
> libapt-pkg6.0.  You can press 'n' at the prompt, the next solution
> aptitude then suggests is to upgrade apt.

Well, this is really stupid! aptitude sometimes wants to remove
lots of packages just to avoid the package renames, while apt
proposes a right solution (with some easy help)!

For instance, with apt:

cventin:~> apt install -s gir1.2-atk-1.0 libwine:i386
[...]
libwine:i386 is already the newest version (9.0~repack-4).
libwine:i386 set to manually installed.
The following additional packages will be installed:
  at-spi2-common at-spi2-core gir1.2-atspi-2.0 gir1.2-girepository-2.0-dev
  gobject-introspection gobject-introspection-bin libatk-adaptor
  libatk-bridge2.0-0t64 libatk-bridge2.0-dev libatk1.0-0t64 libatk1.0-dev
  libatspi2.0-0t64 libatspi2.0-dev libgirepository-1.0-dev
  libgirepository1.0-dev libglib2.0-0t64 libglib2.0-0t64:i386 libglib2.0-bin
  libglib2.0-data libglib2.0-dev libglib2.0-dev-bin python3-mako
  python3-markdown python3-markupsafe
Suggested packages:
  libgirepository1.0-doc low-memory-monitor low-memory-monitor:i386
  libglib2.0-doc python-mako-doc python3-beaker python-markdown-doc
The following packages will be REMOVED:
  libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libglib2.0-0 libglib2.0-0:i386
The following NEW packages will be installed:
  gir1.2-girepository-2.0-dev gobject-introspection gobject-introspection-bin
  libatk-bridge2.0-0t64 libatk1.0-0t64 libatspi2.0-0t64
  libgirepository-1.0-dev libgirepository1.0-dev libglib2.0-0t64
  libglib2.0-0t64:i386 python3-mako python3-markdown python3-markupsafe
The following packages will be upgraded:
  at-spi2-common at-spi2-core gir1.2-atk-1.0 gir1.2-atspi-2.0 libatk-adaptor
  libatk-bridge2.0-dev libatk1.0-dev libatspi2.0-dev libglib2.0-bin
  libglib2.0-data libglib2.0-dev libglib2.0-dev-bin
12 upgraded, 13 newly installed, 5 to remove and 263 not upgraded.
[...]

Note that all the removes correspond to package renames.

I had to provide libwine:i386, otherwise apt wanted to remove it.

With aptitude, I need to use 'n' 21 times until I reach the right
solution (with an unmet dependency after that, which can be resolved,
though).

cventin:~> aptitude install -s gir1.2-atk-1.0 libwine:i386
libwine:i386 is already installed at the requested version (9.0~repack-4)
libwine:i386 is already installed at the requested version (9.0~repack-4)
The following packages will be upgraded:
  at-spi2-common gir1.2-atk-1.0{b} 
2 packages upgraded, 0 newly installed, 0 to remove and 273 not upgraded.
Need to get 190 kB of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
 libatk1.0-dev : Depends: gir1.2-atk-1.0 (= 2.50.0-1+b1) but 2.51.90-1 is to be 
installed
 gir1.2-atk-1.0 : Depends: libatk1.0-0t64 (>= 2.51.90) but it is not going to 
be installed
The following actions will resolve these dependencies:

 Keep the following packages at their current version:
1) gir1.2-atk-1.0 [2.50.0-1+b1 (now, testing)]



Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

  Remove the following packages: 
1)  libatk-bridge2.0-dev [2.50.0-1+b1 (now, testing)]
2)  libatk1.0-0 [2.50.0-1+b1 (now, testing, unstable)]   
3)  libatk1.0-dev [2.50.0-1+b1 (now, testing)]   
4)  libglib2.0-0 [2.78.4-1 (now, testing, unstable)] 
5)  libglib2.0-0:i386 [2.78.4-1 (now, testing, unstable)]
6)  libgtk-3-dev [3.24.41-1 (now, testing)]  
7)  libgtk2.0-dev [2.24.33-3 (now, testing)] 

  Install the following packages:
8)  libatk1.0-0t64 [2.51.90-1 (unstable)]
9)  libglib2.0-0t64 [2.78.4-2.1 (unstable)]  
10) libglib2.0-0t64:i386 [2.78.4-2.1 (unstable)] 

  Upgrade the following packages:
11) libglib2.0-bin [2.78.4-1 (now, testing) -> 2.78.4-2.1 (unstable)]
12) libglib2.0-dev [2.78.4-1 (now, testing) -> 2.78.4-2.1 (unstable)]
13) libglib2.0-dev-bin [2.78.4-1 (now, testing) -> 2.78.4-2.1 (unstable)]



Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

  Remove the following packages: 
1)  libatk-bridge2.0-dev [2.50.0-1+b1 (now, testing)]
2)  libatk1.0-0 [2.50.0-1+b1 (now, testing, unstable)]   
3)  libatk1.0-dev 

[Aptitude-devel] Bug#587087: aptitude: Internal error: found 2 (choice -> promotion) mappings for a single choice.

2024-03-01 Thread John Smith

Dear all,

I met this bug today while attempting a dist-upgrade on a trixie/sid.

This may be a slight frankendebian, the essential part of my source.list reads:

"""
## Sid & prev
deb http://deb.debian.org/debian/ stable main contrib non-free
deb http://deb.debian.org/debian/ testing main contrib non-free 
non-free-firmware
deb http://deb.debian.org/debian/ sid main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ sid main contrib

## Experimental
deb http://deb.debian.org/debian/ experimental main contrib non-free 
non-free-firmware
"""


While /etc/apt/preferences.d/10-experimental contains:

"""
Package: *
Pin: release a=experimental
Pin-Priority: -1
"""


aptitude --version says:

aptitude 0.8.13
Compiler: g++ 13.2.0
Compiled against:
  apt version 6.0.0
  NCurses version 6.4
  libsigc++ version: 2.12.1
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 6.4.20240113
  cwidget version: 0.5.18
  Apt version: 6.0.0

The terminal output:

# aptitude dist-upgrade
The following NEW packages will be installed:
  libpam0t64{a}
The following packages will be REMOVED:
  at-spi2-core{u} evolution-data-server-common{u} kuserfeedback-doc{u} 
libapt-pkg6.0{u} libaribb24-0{u} libbcg729-0{u} libburn4{u} libcamel-1.2-64{u} 
libclang-cpp14{u} libclang1-14{u} libcupsfilters1{u} libcupsimage2{u} 
libdrumstick-alsa2{u} libebackend-1.2-11{u}
  libebook-1.2-21{u} libebook-contacts-1.2-4{u} libedata-book-1.2-27{u} 
libedataserver-1.2-27{u} libemf1{u} libevdocument3-4{u} libevemu3{u} 
libevent-extra-2.1-7{u} libevent-openssl-2.1-7{u} libevview3-3{u} 
libfcgi-bin{u} libfontembed1{u} libgail18{u}
  libgnutls-dane0{u} libgnutls-openssl27{u} libgphoto2-l10n{u} libgxps2{u} 
libhd21{u} libhdf5-fortran-102{u} libhdf5-hl-cpp-100{u} 
libhdf5-hl-fortran-100{u} libhfsp0{u} libisoburn1{u} libisofs6{u} libjte2{u} 
libkf5akonadisearch-data{u} libkf5akonadisearchcore5{u}
  libkf5akonadisearchxapian5{u} libldm-1.0-0{u} liblirc-client0{u} liblirc0{u} 
liblouisutdml-data{u} liblouisutdml9{u} libmailutils9{u} libnetpbm11{u} 
libnghttp3-3{u} libphonenumber8{u} libphonon4qt5experimental4{u} libplot2c2{u} 
libpocoactiverecord80{u}
  libpococrypto80{u} libpocodata80{u} libpocodatamysql80{u} 
libpocodataodbc80{u} libpocodatapostgresql80{u} libpocodatasqlite80{u} 
libpocoencodings80{u} libpocofoundation80{u} libpocojson80{u} libpocojwt80{u} 
libpocomongodb80{u} libpoconet80{u} libpoconetssl80{u}
  libpocoredis80{u} libpocoutil80{u} libpocoxml80{u} libpocozip80{u} 
libpstoedit0c2a{u} libqt6concurrent6{u} libradare2-5.0.0{u} 
libradare2-common{u} libsmi2ldbl{u} libspatialaudio0{u} libsrecord0{u} 
libunbound8{u} libv4l2rds0{u} libv4l2rds0:i386{u}
  libwireshark-data{u} libwireshark17{u} libwiretap14{u} libwsutil15{u} 
libx86emu3{u}
The following packages will be upgraded:
  apt{b} apt-utils{b} aptitude{b} chromium{b} chromium-common 
chromium-driver{b} chromium-sandbox clang-14{b} comerr-dev{b} 
comerr-dev:i386{b} cron cups{b} cups-browsed{b} cups-bsd{b} cups-client{b} 
cups-core-drivers{b} cups-daemon{b} cups-filters{b}
  cups-filters-core-drivers{b} cups-ipp-utils{b} cups-ppdc{b} db5.3-util{b} 
dcmtk{b} debuginfod{b} desktop-file-utils{b} e2fsprogs{b} e2fsprogs-l10n 
evemu-tools{b} evince{b} file{b} flac{b} geoip-bin{b} gir1.2-atk-1.0{b} 
gir1.2-atspi-2.0{b} gir1.2-camel-1.2{b}
  gir1.2-ebackend-1.2{b} gir1.2-ebook-1.2{b} gir1.2-ebookcontacts-1.2{b} 
gir1.2-edatabook-1.2{b} gir1.2-edataserver-1.2{b} gir1.2-gegl-0.4 
gir1.2-gnomedesktop-3.0{b} gir1.2-gtk-2.0{b} gir1.2-gtk-3.0{b} gnutls-bin{b} 
graphicsmagick{b} gtk-update-icon-cache{b}
  gtk2-engines-pixbuf{b} guestfish{b} guestmount{b} gvfs{b} gvfs-common 
gvfs-daemons{b} gvfs-libs{b} hdf5-tools{b} hfsplus{b} hwinfo{b} 
imagemagick-6.q16{b} ldmtool{b} libabsl-dev{b} libaprutil1-dbd-sqlite3{b} 
libaprutil1-ldap{b} libapt-pkg-perl{b} libarchive-dev{b}
  libarchive-tools{b} libaribb24-dev{b} libasound2-dev{b} 
libatk-bridge2.0-dev{b} libatk1.0-dev{b} libatspi2.0-dev{b} libavcodec-dev 
libavcodec60{b} libavcodec60:i386{b} libavdevice-dev libavdevice60{b} 
libavfilter-dev libavfilter9 libavformat-dev libavformat60{b}
  libavutil-dev libavutil58 libavutil58:i386 libboost-atomic1.83-dev 
libboost-atomic1.83.0 libboost-chrono1.83-dev{b} libboost-context1.83-dev 
libboost-context1.83.0 libboost-coroutine1.83-dev libboost-coroutine1.83.0 
libboost-date-time1.83-dev
  libboost-date-time1.83.0 libboost-exception1.83-dev libboost-fiber1.83-dev 
libboost-fiber1.83.0 libboost-filesystem1.83-dev libboost-filesystem1.83.0 
libboost-graph-parallel1.83-dev libboost-graph-parallel1.83.0 
libboost-graph1.83-dev libboost-graph1.83.0
  libboost-iostreams1.83-dev libboost-iostreams1.83.0 libboost-locale1.83-dev 
libboost-locale1.83.0 libboost-log1.83-dev libboost-log1.83.0 
libboost-math1.83-dev libboost-math1.83.0 libboost-program-options1.83-dev 
libboost-program-options1.83.0
  libboost-python1.83-dev libboost-python1.83.0 libboost-random1.83-dev 

[Aptitude-devel] Bug#1064969: apt: can't upgrade with aptitude

2024-03-01 Thread Vincent Lefevre
And even in a simple case line cnee:

qaa:~> aptitude install -s cnee
The following packages will be REMOVED:  
  libxnee0{u} 
The following packages will be upgraded:
  cnee{b} 
1 packages upgraded, 0 newly installed, 1 to remove and 263 not upgraded.
Need to get 50.4 kB of archives. After unpacking 324 kB will be freed.
The following packages have unmet dependencies:
 cnee : Depends: libxnee0t64 but it is not going to be installed
The following actions will resolve these dependencies:

 Install the following packages:
1) libxnee0t64 [3.19-9.1 (unstable)]



Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

 Keep the following packages at their current version:
1) cnee [3.19-9 (now, stable, testing)]   
2) libxnee0 [3.19-9 (now, stable, testing)]   



Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

 Remove the following packages:
1) cnee [3.19-9 (now, stable, testing)]



Accept this solution? [Y/n/q/?] n

*** No more solutions available ***

No solutions are found, while with apt:

qaa:~> apt install -s cnee
[...]
The following additional packages will be installed:
  libxnee0t64
Suggested packages:
  xnee-doc
The following packages will be REMOVED:
  libxnee0
The following NEW packages will be installed:
  libxnee0t64
The following packages will be upgraded:
  cnee
1 upgraded, 1 newly installed, 1 to remove and 263 not upgraded.
Inst cnee [3.19-9] (3.19-9.1 Debian:unstable [amd64]) []
Remv libxnee0 [3.19-9] []
Inst libxnee0t64 (3.19-9.1 Debian:unstable [amd64])
Conf cnee (3.19-9.1 Debian:unstable [amd64])
Conf libxnee0t64 (3.19-9.1 Debian:unstable [amd64])

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

___
Aptitude-devel mailing list
Aptitude-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/aptitude-devel