On Mon, Mar 11, 2024 at 10:48:53PM +0100, Miguel Angel Rojas wrote: > Hi Wesley, David, > > > You keep saying `apt upgrade' yet your command was `apt full-upgrade'. > > Yes, maybe it didn't express itself properly. After your suggestion about > not using "apt full-upgrade" during this t64 migration, I followed your > advice and used only "apt upgrade" for individual upgrades. I was referring > to this comment you made below:
Ah, and I meant upgrading as individually installing packages ala: `apt install foo'. I get the confusion now :) > Now, If I type"apt upgrade" doesn't give me any option to update anything: Ok, that is expected behaviour. > But, in some situations, as you mentioned, individual package upgrades can > work and remove some problems. So what I did was to try some "apt upgrade" > on individual packages from that list. This time I try the ppp package: > > # apt upgrade ppp > Reading package lists... Done > Building dependency tree... Done > Reading state information... Done > Calculating upgrade... Done > The following packages were automatically installed and are no longer > required: > linux-headers-6.6.15-amd64 linux-headers-6.6.15-common > linux-image-6.6.15-amd64 linux-kbuild-6.6.15 > Use 'apt autoremove' to remove them. > The following packages will be REMOVED: <------- PACKAGE TO BE REMOVED > libpcap0.8 > The following NEW packages will be installed: > libpcap0.8t64 > > [snip] > > The following packages will be upgraded: > ppp > 1 upgraded, 1 newly installed, 1 to remove and 22 not upgraded. > Need to get 511 kB of archives. > After this operation, 15.4 kB disk space will be freed. > , > > As you can see here, I'm typing "apt upgrade ppp" and it removes a package > in this case: libpcap0.8 (sometimes more packages are removed). > > Which is good, because libpcap0.8 is replaced by libpcap0.8t64 (as expected > in this t64 migration) but "apt upgrade ppp" is REMOVING a package (which > contradicts the specification). I see. It looks like `apt upgrade <package>' behaves as `apt install <package>'. Which (to me) is unexpected behaviour, as the man page is quite clear on its behaviour (man 8 apt-get): upgrade upgrade is used to install the newest versions of **all** (emphasis mine) packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. It shouldn't accept the arguments you feed it, apt-get has the same "feature". And with an install you do remove packages to satisfy the deps. Cheers, Wesley