could not update, install anything with syntax error 'clamav' statoverride problem

Asked by glenn anthony dulla

gad@gad-laptop:~$ sudo fuser -vvv /var/lib/dpkg/lock
gad@gad-laptop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS"
gad@gad-laptop:~$ uname -a
Linux gad-laptop 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux
gad@gad-laptop:~$ sudo rm /var/lib/apt/lists/lock
gad@gad-laptop:~$ 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
gad@gad-laptop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
gad@gad-laptop:~$
gad@gad-laptop:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
gad@gad-laptop:~$ sudo rm -rf /var/lib/dpkg/updates/*
gad@gad-laptop:~$ sudo rm -rf /var/lib/apt/lists
gad@gad-laptop:~$ sudo rm /var/cache/apt/*.bin
gad@gad-laptop:~$ sudo mkdir /var/lib/apt/lists
gad@gad-laptop:~$ sudo mkdir /var/lib/apt/lists/partial
gad@gad-laptop:~$ LANG=C;sudo apt-get clean
gad@gad-laptop:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
gad@gad-laptop:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gad@gad-laptop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic Release.gpg
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic Release
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
Err cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Get:1 http://archive.canonical.com lucid Release.gpg [198B]
Get:2 http://ph.archive.ubuntu.com lucid Release.gpg [189B]
Get:3 http://ph.archive.ubuntu.com lucid-updates Release.gpg [198B]
Get:4 http://deb.opera.com stable Release.gpg [189B]
Get:5 http://deb.opera.com stable Release.gpg [189B]
Get:6 http://ppa.launchpad.net lucid Release.gpg [316B]
Get:7 http://ppa.launchpad.net lucid Release.gpg [316B]
Get:8 http://ppa.launchpad.net lucid Release.gpg [307B]
Get:9 http://ph.archive.ubuntu.com karmic-backports Release.gpg [198B]
Get:10 http://archive.canonical.com lucid Release [8215B]
Get:11 http://ph.archive.ubuntu.com lucid Release [57.2kB]
Get:12 http://deb.opera.com stable Release [1063B]
Get:13 http://ppa.launchpad.net lucid Release.gpg [316B]
Get:14 http://ppa.launchpad.net lucid Release.gpg [316B]
Ign http://ppa.launchpad.net lucid Release.gpg
Get:15 http://ppa.launchpad.net lucid Release [57.2kB]
Get:16 http://packages.medibuntu.org lucid Release.gpg [197B]
Get:17 http://deb.opera.com stable Release [1063B]
Ign http://deb.opera.com stable/non-free Packages
Get:18 http://archive.canonical.com lucid/partner Packages [12.5kB]
Get:19 http://packages.medibuntu.org lucid Release [6854B]
Ign http://deb.opera.com stable/non-free Packages
Get:20 http://ph.archive.ubuntu.com lucid-updates Release [44.7kB]
Get:21 http://ppa.launchpad.net lucid Release [14.0kB]
Get:22 http://ppa.launchpad.net lucid Release [57.3kB]
Ign http://deb.opera.com stable/non-free Packages
Ign http://deb.opera.com stable/non-free Packages
Get:23 http://packages.medibuntu.org lucid/free Packages [3269B]
Get:24 http://ph.archive.ubuntu.com karmic-backports Release [44.1kB]
Get:25 http://deb.opera.com stable/non-free Packages [721B]
Get:26 http://ph.archive.ubuntu.com lucid/main Packages [1386kB]
Get:27 http://deb.opera.com stable/non-free Packages [721B]
Get:28 http://ppa.launchpad.net lucid Release [14.0kB]
Get:29 http://ppa.launchpad.net lucid Release [14.0kB]
Get:30 http://packages.medibuntu.org lucid/non-free Packages [8621B]
Ign http://ppa.launchpad.net lucid Release
Get:31 http://ppa.launchpad.net lucid/main Packages [1236B]
Get:32 http://ppa.launchpad.net lucid/main Packages [3696B]
Get:33 http://ppa.launchpad.net lucid/main Packages [489B]
Get:34 http://security.ubuntu.com lucid-security Release.gpg [198B]
Get:35 http://ppa.launchpad.net lucid/main Packages [11.1kB]
Get:36 http://packages.medibuntu.org lucid/free Sources [3283B]
Get:37 http://security.ubuntu.com lucid-security Release [44.7kB]
Ign http://ppa.launchpad.net lucid/main Packages
Get:38 http://ppa.launchpad.net lucid/main Packages [7494B]
Get:39 http://packages.medibuntu.org lucid/non-free Sources [5660B]
Ign http://ppa.launchpad.net lucid/main Packages
Err http://ppa.launchpad.net lucid/main Packages
  404 Not Found
Get:40 http://security.ubuntu.com lucid-security/main Packages [147kB]
Get:41 http://ph.archive.ubuntu.com lucid/restricted Packages [6208B]
Get:42 http://ph.archive.ubuntu.com lucid/restricted Sources [3775B]
Get:43 http://ph.archive.ubuntu.com lucid/main Sources [659kB]
Get:44 http://security.ubuntu.com lucid-security/restricted Packages [14B]
Get:45 http://security.ubuntu.com lucid-security/restricted Sources [14B]
Get:46 http://security.ubuntu.com lucid-security/main Sources [46.7kB]
Get:47 http://security.ubuntu.com lucid-security/multiverse Sources [651B]
Get:48 http://security.ubuntu.com lucid-security/universe Sources [19.3kB]
Get:49 http://security.ubuntu.com lucid-security/universe Packages [64.8kB]
Get:50 http://ph.archive.ubuntu.com lucid/multiverse Sources [119kB]
Get:51 http://ph.archive.ubuntu.com lucid/universe Sources [3165kB]
Get:52 http://security.ubuntu.com lucid-security/multiverse Packages [1995B]
Get:53 http://ph.archive.ubuntu.com lucid/universe Packages [5448kB]
Get:54 http://ph.archive.ubuntu.com lucid/multiverse Packages [180kB]
Get:55 http://ph.archive.ubuntu.com lucid-updates/main Packages [452kB]
Get:56 http://ph.archive.ubuntu.com lucid-updates/restricted Packages [3240B]
Get:57 http://ph.archive.ubuntu.com lucid-updates/restricted Sources [1443B]
Get:58 http://ph.archive.ubuntu.com lucid-updates/main Sources [182kB]
Get:59 http://ph.archive.ubuntu.com lucid-updates/multiverse Sources [4369B]
Get:60 http://ph.archive.ubuntu.com lucid-updates/universe Sources [68.2kB]
Get:61 http://ph.archive.ubuntu.com lucid-updates/universe Packages [190kB]
Get:62 http://ph.archive.ubuntu.com lucid-updates/multiverse Packages [8427B]
Get:63 http://ph.archive.ubuntu.com karmic-backports/main Packages [70.1kB]
Get:64 http://ph.archive.ubuntu.com karmic-backports/restricted Packages [14B]
Get:65 http://ph.archive.ubuntu.com karmic-backports/universe Packages [28.5kB]
Get:66 http://ph.archive.ubuntu.com karmic-backports/multiverse Packages [14B]
Get:67 http://ph.archive.ubuntu.com karmic-backports/main Sources [30.9kB]
Get:68 http://ph.archive.ubuntu.com karmic-backports/restricted Sources [14B]
Get:69 http://ph.archive.ubuntu.com karmic-backports/universe Sources [8267B]
Get:70 http://ph.archive.ubuntu.com karmic-backports/multiverse Sources [14B]
Fetched 12.7MB in 1min 55s (110kB/s)
W: Failed to fetch cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)/dists/karmic/main/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)/dists/karmic/restricted/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch http://ppa.launchpad.net/user/ppa-name/ubuntu/dists/lucid/main/binary-i386/Packages.gz 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.
gad@gad-laptop:~$ sudo dpkg --clear-avail
gad@gad-laptop:~$ sudo dpkg --configure -a
gad@gad-laptop:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
gad@gad-laptop:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
gad@gad-laptop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic Release.gpg
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic Release
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
Err cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit http://packages.medibuntu.org lucid Release.gpg
Hit http://deb.opera.com stable Release.gpg
Hit http://deb.opera.com stable Release.gpg
Hit http://archive.canonical.com lucid Release.gpg
Hit http://security.ubuntu.com lucid-security Release.gpg
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://deb.opera.com stable Release
Hit http://archive.canonical.com lucid Release
Hit http://packages.medibuntu.org lucid Release
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net lucid Release.gpg
Hit http://ppa.launchpad.net lucid Release
Hit http://security.ubuntu.com lucid-security Release
Hit http://deb.opera.com stable Release
Hit http://archive.canonical.com lucid/partner Packages
Hit http://ppa.launchpad.net lucid Release
Hit http://ppa.launchpad.net lucid Release
Hit http://ppa.launchpad.net lucid Release
Hit http://ppa.launchpad.net lucid Release
Ign http://deb.opera.com stable/non-free Packages
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://packages.medibuntu.org lucid/free Packages
Ign http://ppa.launchpad.net lucid Release
Ign http://deb.opera.com stable/non-free Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://ppa.launchpad.net lucid/main Packages
Ign http://deb.opera.com stable/non-free Packages
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://packages.medibuntu.org lucid/non-free Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Ign http://deb.opera.com stable/non-free Packages
Ign http://ppa.launchpad.net lucid/main Packages
Hit http://deb.opera.com stable/non-free Packages
Hit http://packages.medibuntu.org lucid/free Sources
Hit http://ph.archive.ubuntu.com lucid Release.gpg
Hit http://ph.archive.ubuntu.com lucid-updates Release.gpg
Hit http://ph.archive.ubuntu.com karmic-backports Release.gpg
Ign http://ppa.launchpad.net lucid/main Packages
Hit http://deb.opera.com stable/non-free Packages
Hit http://ph.archive.ubuntu.com lucid Release
Err http://ppa.launchpad.net lucid/main Packages
  404 Not Found
Hit http://packages.medibuntu.org lucid/non-free Sources
Hit http://ph.archive.ubuntu.com lucid-updates Release
Hit http://ph.archive.ubuntu.com karmic-backports Release
Hit http://ph.archive.ubuntu.com lucid/main Packages
Hit http://ph.archive.ubuntu.com lucid/restricted Packages
Hit http://ph.archive.ubuntu.com lucid/restricted Sources
Hit http://ph.archive.ubuntu.com lucid/main Sources
Hit http://ph.archive.ubuntu.com lucid/multiverse Sources
Hit http://ph.archive.ubuntu.com lucid/universe Sources
Hit http://ph.archive.ubuntu.com lucid/universe Packages
Hit http://ph.archive.ubuntu.com lucid/multiverse Packages
Hit http://ph.archive.ubuntu.com lucid-updates/main Packages
Hit http://ph.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://ph.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://ph.archive.ubuntu.com lucid-updates/main Sources
Hit http://ph.archive.ubuntu.com lucid-updates/multiverse Sources
Hit http://ph.archive.ubuntu.com lucid-updates/universe Sources
Hit http://ph.archive.ubuntu.com lucid-updates/universe Packages
Hit http://ph.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://ph.archive.ubuntu.com karmic-backports/main Packages
Hit http://ph.archive.ubuntu.com karmic-backports/restricted Packages
Hit http://ph.archive.ubuntu.com karmic-backports/universe Packages
Hit http://ph.archive.ubuntu.com karmic-backports/multiverse Packages
Hit http://ph.archive.ubuntu.com karmic-backports/main Sources
Hit http://ph.archive.ubuntu.com karmic-backports/restricted Sources
Hit http://ph.archive.ubuntu.com karmic-backports/universe Sources
Hit http://ph.archive.ubuntu.com karmic-backports/multiverse Sources
W: Failed to fetch cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)/dists/karmic/main/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)/dists/karmic/restricted/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch http://ppa.launchpad.net/user/ppa-name/ubuntu/dists/lucid/main/binary-i386/Packages.gz 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.
gad@gad-laptop:~$

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
glenn anthony dulla (glenn-ad) said :
#1

please help. i'm a ubuntu newbie. was amazed by it at first, now starting to hate it, but not quite there yet. please help me out. thanks

Revision history for this message
mycae (mycae) said :
#2

Uncheck the CD source from your update sources
System->Administration->Software sources

go to the Other software tab

uncheck the CD.

then close.

you will be prompted to update

Revision history for this message
mycae (mycae) said :
#3

Oh, that only gets you half way there.

you have also made an error in adding a PPA -- you will need to remove the "user/ppa-name" PPA source. Which PPA were you trying to add?

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#4

There is also another problem with your /etc/apt/sources.list file. It contains a mix of karmic (Ubuntu 9.10) and lucid (Ubuntu 10.04) repositories.

Mixing repositories from different versions of Ubuntu can and will break your installation of Ubuntu and so it should never be done.

If you installed Ubuntu 10.04, then you need to remove all references to karmic.
If you installed Ubuntu 9.10, then you need to remove all references to lucid.

Can you help with this problem?

Provide an answer of your own, or ask glenn anthony dulla for more information if necessary.

To post a message you must log in.