aptitude %V displays confusing "candidate version or <none>"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptitude (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Assume only standard Ubuntu repositories configured:
apt-get clean all
apt-get update
apt-get upgrade
apt-get install vlc
should clean all repository caches, update the package databases, then upgrade all available non essential packages and finally install vlc.
Now you are working with vlc and something does not work as expected. You are trying the latest nightly packages from the videolan project, by adding their repository, by adding a file to /etc/apt/
deb http://
deb-src http://
after doing
apt-get update
apt-get upgrade
the latest nightly builds of all vlc-packages are installed and you start testing. Next you remove the added repository, by commenting the lines in the above added file out. Then
apt-get clean all
apt-get update
Calling aptitude after will show no updates available. Searching for vlc will show the same version as installed and available in the repositories! This is wrong, since the version installed came from the videolan project nightly build and the repository given was disabled! aptitude shall show the version available now not the one installed!
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: aptitude 0.6.8.2-1ubuntu4
Uname: Linux 3.14.3+ x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
Date: Wed May 7 18:39:10 2014
InstallationDate: Installed on 2011-10-19 (930 days ago)
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: aptitude
UpgradeStatus: Upgraded to trusty on 2014-02-24 (71 days ago)
> Next you remove the added repository, by commenting the lines in the
> above added file out. Then
>
> apt-get clean all
> apt-get update
>
> Calling aptitude after will show no updates available.
Correct. “No updates” means that the current (installed) version is more recent than any other.
> Searching for vlc will show the same version as installed and
> available in the repositories! This is wrong, since the version
> installed came from the videolan project nightly build and the
> repository given was disabled! aptitude shall show the version
> available now not the one installed!
On the screenshots the second number is the candidate version. This is similar but not exactly the same thing as "the latest version available in configured repositories". From the users manual:
[The candidate version is] the version of the package which
would be installed if Package → Install (+) were issued on
the package …
When the currently installed version is more recent than any other that version is also the candidate regardless of what is available in apt repositories.
Does that clarify things for you?