The following packages have unmet dependencies

Asked by Deepak Anandani

user1@ubuntucserver:~$ sudo apt-get install clamav-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 clamav-daemon : Depends: clamav-base (= 0.96.3+dfsg-2ubuntu1) but 0.96.5+dfsg-1ubuntu1.10.10.2 is to be installed
E: Broken packages

plzz... provide me with the solution...

Question information

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

This is not a package bug, but a support question.

It looks like you have a mix of packages from maverick and maverick-updates. You need to make sure your package cache is updated (sudo apt-get update on a command line) and try again.

Revision history for this message
Deepak Anandani (deepak-anandani88) said :
#2

thanks.... i did as u instructed.... but the following error is coming plzzzz help me to solve this......

root@ubuntucserver:~# sudo apt-get install clamav-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package clamav-daemon needs to be reinstalled, but I can't find an archive for it.

???? plz tell me how to reinstall clamav-daemon

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Please try

sudo apt-get remove clamav*
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get -f install
sudo apt-get install clamav

Revision history for this message
Deepak Anandani (deepak-anandani88) said :
#4

thankx.... sir...
                           i tried all the 6 commands provided by u.... but still the problem is not solved... sir....
i m providing u with the information how all commaneds worked...

root@ubuntucserver:~# sudo apt-get remove clamav*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package clamav-daemon needs to be reinstalled, but I can't find an archive for it.

root@ubuntucserver:~# sudo apt-get clean

root@ubuntucserver:~# sudo apt-get update
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ lucid/partner Translation-en
Ign http://archive.canonical.com/ lucid/partner Translation-en_US
Hit http://archive.canonical.com maverick Release.gpg
Ign http://archive.canonical.com/ maverick/partner Translation-en
Ign http://archive.canonical.com/ maverick/partner Translation-en_US
Hit http://archive.canonical.com lucid Release
Hit http://archive.canonical.com maverick Release
Hit http://archive.canonical.com lucid/partner Sources
Hit http://archive.canonical.com lucid/partner i386 Packages
Hit http://us.archive.ubuntu.com maverick Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Hit http://archive.canonical.com maverick/partner Sources
Hit http://archive.canonical.com maverick/partner i386 Packages
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick Release
Hit http://us.archive.ubuntu.com maverick/main Sources
Hit http://us.archive.ubuntu.com maverick/restricted Sources
Hit http://us.archive.ubuntu.com maverick/universe Sources
Hit http://us.archive.ubuntu.com maverick/multiverse Sources
Hit http://us.archive.ubuntu.com maverick/main i386 Packages
Hit http://us.archive.ubuntu.com maverick/restricted i386 Packages
Hit http://us.archive.ubuntu.com maverick/universe i386 Packages
Hit http://us.archive.ubuntu.com maverick/multiverse i386 Packages
Reading package lists... Done

root@ubuntucserver:~# sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package clamav-daemon needs to be reinstalled, but I can't find an archive for it.

root@ubuntucserver:~# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package clamav-daemon needs to be reinstalled, but I can't find an archive for it.

root@ubuntucserver:~# sudo apt-get install clamav
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package clamav-daemon needs to be reinstalled, but I can't find an archive for it.
root@ubuntucserver:~#

plzzz.... sir help me out with the error...... i will be very much thankfull to u....

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

You have wrong mixed repositories so this is the cause of your issue...

Please open a terminal and type:

lsb_release -crd

to discover the codename of your Ubuntu, then replace it into the /etc/apt/sources.list file from terminal, to edit the file, type:

gksudo gedit /etc/apt/sources.list

change the wrong name references then save and exit and type:

sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install clamav

Revision history for this message
Deepak Anandani (deepak-anandani88) said :
#6

root@ubuntucserver:~# lsb_release -crd
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick

where and what to change in that file....????
i have got the file ''/etc/apt/sources.list''
but i am totally unaware what to replace in that file..???
i m providing u with the source.list content plzz tell me what to change... and which words r to be replaced....

root@ubuntucserver:~# gksudo gedit /etc/apt/sources.list

(this is the file i got when i entered the above command.....)

#
# deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted

# deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu maverick main
# deb-src http://extras.ubuntu.com/ubuntu maverick main

deb http://archive.canonical.com/ lucid partner
deb-src http://archive.canonical.com/ lucid partner
deb http://archive.canonical.com/ maverick partner
deb-src http://archive.canonical.com/ maverick partner

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

Please remove the rows:

deb http://archive.canonical.com/ lucid partner
deb-src http://archive.canonical.com/ lucid partner

Save and retry...

sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade

sudo apt-get install clamav

Revision history for this message
Deepak Anandani (deepak-anandani88) said :
#8

As instructed by u i have removed those two rows from the ''source.list'' file

(u can see it here)

#
# deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted

# deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu maverick main
# deb-src http://extras.ubuntu.com/ubuntu maverick main

deb http://archive.canonical.com/ maverick partner
deb-src http://archive.canonical.com/ maverick partner

and after saving it i also tried to run the commands... given by u

user1@ubuntucserver:~$ sudo apt-get clean

user1@ubuntucserver:~$ sudo apt-get update
Hit http://archive.canonical.com maverick Release.gpg
Ign http://archive.canonical.com/ maverick/partner Translation-en
Ign http://archive.canonical.com/ maverick/partner Translation-en_US
Hit http://archive.canonical.com maverick Release
Hit http://archive.canonical.com maverick/partner Sources
Hit http://archive.canonical.com maverick/partner i386 Packages
Hit http://us.archive.ubuntu.com maverick Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick Release
Hit http://us.archive.ubuntu.com maverick/main Sources
Hit http://us.archive.ubuntu.com maverick/restricted Sources
Hit http://us.archive.ubuntu.com maverick/universe Sources
Hit http://us.archive.ubuntu.com maverick/multiverse Sources
Hit http://us.archive.ubuntu.com maverick/main i386 Packages
Hit http://us.archive.ubuntu.com maverick/restricted i386 Packages
Hit http://us.archive.ubuntu.com maverick/universe i386 Packages
Hit http://us.archive.ubuntu.com maverick/multiverse i386 Packages
Reading package lists... Done

user1@ubuntucserver:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package clamav-daemon needs to be reinstalled, but I can't find an archive for it.

AND I ALSO TRIED THE COMMAND.... with APTITUDE
(here r the details)

user1@ubuntucserver:~$ sudo aptitude dist-upgrade
The following partially installed packages will be configured:
  clamav-daemon
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
E: I wasn't able to locate file for the clamav-daemon package. This might mean you need to manually fix this package.
E: I wasn't able to locate file for the clamav-daemon package. This might mean you need to manually fix this package.
E: Internal error: couldn't generate list of packages to download

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#9

First try to set your sources server (from update-manager) to use the main server... and retry...

if still don't works please
made a backup copy of your actual sources.list file and then
try to put some as my standard /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu naverick-updates main restricted universe

deb http://archive.ubuntu.com/ubuntu maverick multiverse main universe restricted
deb http://archive.ubuntu.com/ubuntu maverick-updates multiverse

deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner

deb http://archive.ubuntu.com/ubuntu maverick-security main restricted universe
deb http://archive.ubuntu.com/ubuntu maverick-security multiverse

I use Lucid i have clamav coming from:

apt-cache policy clamav
clamav:
  Installato: 0.96.5+dfsg-1ubuntu1.10.04.2
  Candidato: 0.96.5+dfsg-1ubuntu1.10.04.2
  Tabella versione:
 *** 0.96.5+dfsg-1ubuntu1.10.04.2 0
        500 http://archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        500 http://archive.ubuntu.com/ubuntu/ lucid-security/main Packages
        100 /var/lib/dpkg/status
     0.96+dfsg-2ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages

apt-cache policy clamav-daemon
clamav-daemon:
  Installato: (nessuno)
  Candidato: 0.96.5+dfsg-1ubuntu1.10.04.2
  Tabella versione:
     0.96.5+dfsg-1ubuntu1.10.04.2 0
        500 http://archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        500 http://archive.ubuntu.com/ubuntu/ lucid-security/main Packages
     0.96+dfsg-2ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages

Revision history for this message
Deepak Anandani (deepak-anandani88) said :
#10

Thanks marcobra (Marco Braida), that solved my question.