[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: clamav won't upgrade using aptitude dist-upgrade



Stephen Gran wrote:
This one time, at band camp, Chris Purves said:
I am having a problem where I can't get the latest version of clamav from volatile to upgrade using aptitude dist-upgrade. apt-get dist-upgrade and aptitude upgrade both offer to upgrade the files. Can anyone explain why?

Relevant information is below.  Any help is appreciated.

# aptitude dist-upgrade
0 packages upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

#apt-get dist-upgrade
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

# aptitude upgrade
5 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

# apt-cache policy clamav
clamav:
  Installed: 0.88-0volatile1
  Candidate: 0.88.1-0volatile2

(Only important bits kept for context).

What does apt-get upgrade (no dist-) want to do?  To me, this looks like
a bug in aptitude, rather than a configuration problem, but I want to
make sure that apt-get upgrade does the right thing first.  It may also
be that aptitude thinks you have these packages held for some reason -
IIRC it uses a separate state database than apt.


Out of the four combinations of apt-get/aptitude upgrade/dist-upgrade only aptitude dist-upgrade gives unexpected results. You can see below. If I run the aptitude GUI, it wants to remove libclamav1 for dependency errors, but doesn't list any errors. The remaining clamav packages are to be removed ultimately because libclamav1 is removed.

If I manually select clamav and clamav-daemon to upgrade using the GUI, aptitude no longer wants to remove any packages. If I exit and run aptitude dist-upgrade from the command line things are back to normal. I don't think I have ever used the GUI on this system before. Strange. I'll hold off on actually upgrading the packages in case anyone is interested in investigating further, but I'm satisfied that it's a peculiarity to aptitude.


aurora:/home/chris# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
  clamav clamav-base clamav-daemon clamav-freshclam libclamav1
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 4164kB of archives.
After unpacking 1061kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.



--
Good day, eh.
Chris



Reply to: