apt status not updated ubuntu 20 LTS

Bug #2035644 reported by Hartmut Koptein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

is this a cache bug? The packages are installed, but "apt list --upgradable" say's no, the are not installed.

root@minion:~# apt list --upgradable
Listing... Done
uls-client/luxux-standard-ubuntu20-x-amd64-dp-tserver 3.15-7ubuntu20 amd64 [upgradable from: 3.15-7ubuntu20]
venv-salt-minion/ubuntu20-x-amd64-res-suma-dp-tserver 3006.0-2.35.1 amd64 [upgradable from: 3006.0-2.35.1]

root@minion:~# apt install uls-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-153 linux-headers-5.4.0-153-generic linux-image-5.4.0-153-generic linux-modules-5.4.0-153-generic linux-modules-extra-5.4.0-153-generic
Use 'apt autoremove' to remove them.
Recommended packages:
  libncursesw5
The following packages will be upgraded:
  uls-client
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/194 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 177475 files and directories currently installed.)
Preparing to unpack .../uls-client_3.15-7ubuntu20_amd64.deb ...
redirecting to systemd
Unpacking uls-client (3.15-7ubuntu20) over (3.15-7ubuntu20) ...
Setting up uls-client (3.15-7ubuntu20) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.22) ...

root@minion:~# apt list --upgradable
Listing... Done
uls-client/luxux-standard-ubuntu20-x-amd64-dp-tserver 3.15-7ubuntu20 amd64 [upgradable from: 3.15-7ubuntu20]
venv-salt-minion/ubuntu20-x-amd64-res-suma-dp-tserver 3006.0-2.35.1 amd64 [upgradable from: 3006.0-2.35.1]

root@minion:~# apt update
Hit:12 https://SuMa:443/rhn/manager/download ubuntu20-x-amd64-dp-tserver/ Release
Hit:13 https://SuMa:443/rhn/manager/download ubuntu20-x-amd64-main-dp-tserver/ Release
Hit:14 https://SuMa:443/rhn/manager/download ubuntu20-x-amd64-res-suma-dp-tserver/ Release
Hit:15 https://SuMa:443/rhn/manager/download luxux-puppet-ubuntu20-x-amd64-dp-tserver/ Release
Hit:16 https://SuMa:443/rhn/manager/download tvm-standard-ubuntu20-x-amd64-dp-tserver/ Release
Hit:17 https://SuMa:443/rhn/manager/download ubuntu20-x-amd64-main-updates-dp-tserver/ Release
Hit:18 https://SuMa:443/rhn/manager/download ubuntu20-x-amd64-main-security-dp-tserver/ Release
Hit:19 https://SuMa:443/rhn/manager/download ubuntu20-x-amd64-main-universe-dp-tserver/ Release
Hit:20 https://SuMa:443/rhn/manager/download luxux-standard-ubuntu20-x-amd64-dp-tserver/ Release
Hit:21 https://SuMa:443/rhn/manager/download ubuntu20-x-amd64-main-updates-universe-dp-tserver/ Release
Hit:22 https://SuMa:443/rhn/manager/download ubuntu20-x-amd64-main-security-universe-dp-tserver/ Release

Reading package lists... Done
Building dependency tree
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.

root@minion:~# apt list --upgradable
Listing... Done
uls-client/luxux-standard-ubuntu20-x-amd64-dp-tserver 3.15-7ubuntu20 amd64 [upgradable from: 3.15-7ubuntu20]
venv-salt-minion/ubuntu20-x-amd64-res-suma-dp-tserver 3006.0-2.35.1 amd64 [upgradable from: 3006.0-2.35.1]

root@minion:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-153 linux-headers-5.4.0-153-generic linux-image-5.4.0-153-generic linux-modules-5.4.0-153-generic linux-modules-extra-5.4.0-153-generic
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
  uls-client venv-salt-minion
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 22.7 MB/22.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://SuMa:443/rhn/manager/download ubuntu20-x-amd64-res-suma-dp-tserver/ venv-salt-minion 3006.0-2.35.1 [22.7 MB]
Fetched 22.7 MB in 0s (76.8 MB/s)
(Reading database ... 177475 files and directories currently installed.)
Preparing to unpack .../uls-client_3.15-7ubuntu20_amd64.deb ...
redirecting to systemd
Unpacking uls-client (3.15-7ubuntu20) over (3.15-7ubuntu20) ...
Preparing to unpack .../venv-salt-minion_3006.0-2.35.1_amd64.deb ...
Unpacking venv-salt-minion (3006.0-2.35.1) over (3006.0-2.35.1) ...
Setting up venv-salt-minion (3006.0-2.35.1) ...
Setting up uls-client (3.15-7ubuntu20) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.22) ...

root@minion:~# apt list --upgradable
Listing... Done
uls-client/luxux-standard-ubuntu20-x-amd64-dp-tserver 3.15-7ubuntu20 amd64 [upgradable from: 3.15-7ubuntu20]
venv-salt-minion/ubuntu20-x-amd64-res-suma-dp-tserver 3006.0-2.35.1 amd64 [upgradable from: 3006.0-2.35.1]

affects: isc-dhcp (Ubuntu) → apt (Ubuntu)
Revision history for this message
David Kalnischkies (donkult) wrote :

Looks like third-party packages are involved, so details on where to find them would be good.

I presume the formatting of the data is different in dpkg/status vs. the Packages file in the repo as libapt does string comparisons rather than very costly fully parsed, transformed & cleaned comparisons and whatever tool is used to create the Packages file might or might not do the same transformations dpkg does. apt-ftparchive for example mostly doesn't.

dpkg e.g. has the tendency to remove 0-epochs from version numbers which might be included in a dependency. Wild guess only – we would need the actual data to know.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.