Can't update or remove ClamAV. PkgMgr reports errors.

Asked by Tony Wood

Ubuntu 11.10 (64 bit)

Trying to update ClamAV (clamtk 4.32-1) which reported as out-of-date and new version available.

Tried to remove ClamAV using Software Package Manager, intending to reinstall later version.

PkgMgr reported dependency problems.

Tried Synaptic Package Manager to fix dependencies.

This failed.

Tried sudo apt-get autoremove and sudo apt-get install -f

Computer reports:

'E:Error.pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'

Clicking on 'no entry' icon on top line gives error message: 'Error:broken count >0'. This usually means your installed packages have unmet dependencies.'

Now I'm stuck. d:-(

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu clamav Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please try from terminal

sudo apt-get remove clamav clamav-base clamav-freshclam clamtk

then

sudo apt-get install clamav clamav-base clamav-freshclam clamtk

Revision history for this message
Belenos (belenos) said :
#2

Open Terminal (Ctrl+Alt+T) and paste the lines one by one:

sudo apt-get remove clamav clamav-base clamav-freshclam clamtk
sudo add-apt-repository ppa:ubuntu-clamav/ppa
sudo apt-get update
sudo apt-get install clamav clamtk -y

Don't forget to give us a feedback!

Revision history for this message
Tony Wood (tonywoodtw) said :
#3

Thank you both! After entering 1st line in Terminal, I got response:
"reading packag elists. Done.
  ... snip ...
dpkg: error: parsing file '/var/lib/dpkg/status near line 19396 package 'python-vte':
'Depends' field, reference to 'libvte9': version contains ')'
E: Subprocess /usr/bin/dpkg/ returned an error code (2)

Again, my thanks.

Tony Wood

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#4

sudo fuser -vvv /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get --fix-missing install
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade

Revision history for this message
Tony Wood (tonywoodtw) said :
#5

Thank you 'actionparsnip'. I got a few error messages along the way but followed on-screen suggestions. It seemed to sort itself out Ok so I went into Update Manager, got a list of security and other updates, then a message: 'The Package System is broken.0
I ran sudo apt-get install -f and it sorted itself out.
ALL IS NOW WELL.
I have to say, as a relative newcomer to Linux, that compared with problems I suffered over the years with MS OSs, that this is a revelation: the generous helpfulness given by such as yourselves; the sensible on-screen suggestions that WORK! ; the lack of the awful BSD!! ; and the general 'feel' of the process from alarm to resolution - it's brilliant!
Here is a very happy bunny.
Thank you, all three, for taking the trouble and for fixing my problem for me.

Revision history for this message
Tony Wood (tonywoodtw) said :
#6

Here is a very happy bunny.
Thank you, all three, for taking the trouble and for fixing my problem for me.
Tony Wood

Revision history for this message
Tony Wood (tonywoodtw) said :
#7

Thanks actionparsnip, that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

I have it i a script called 'fixpackage' and it helps a lot. This sort of thing is one of the massive weaknesses in package based distros