apt status not updated ubuntu 20 LTS
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/
venv-salt-
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-
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-
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/
venv-salt-
root@minion:~# apt update
Hit:12 https:/
Hit:13 https:/
Hit:14 https:/
Hit:15 https:/
Hit:16 https:/
Hit:17 https:/
Hit:18 https:/
Hit:19 https:/
Hit:20 https:/
Hit:21 https:/
Hit:22 https:/
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/
venv-salt-
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-
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:/
Fetched 22.7 MB in 0s (76.8 MB/s)
(Reading database ... 177475 files and directories currently installed.)
Preparing to unpack .../uls-
redirecting to systemd
Unpacking uls-client (3.15-7ubuntu20) over (3.15-7ubuntu20) ...
Preparing to unpack .../venv-
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/
venv-salt-
affects: | isc-dhcp (Ubuntu) → apt (Ubuntu) |
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.