Problem with Update Manager

Asked by Michael

I get an error when running the Update Manager on 12.04. It tells me to check my internet connection, which is fine, and has the following under details:

"W:Failed to fetch cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)/dists/natty/main/binary-i386/Packages 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 11.04 _Natty Narwhal_ - Release i386 (20110427.1)/dists/natty/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
, E:Some index files failed to download. They have been ignored, or old ones used instead."

How do we resolve this.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Run:

gksudo gedit /etc/apt./sources.list

Comment out the top 3 or 4 lines by adding a hash character to the left of the text, these reference the CD as a source for packages.

Save the new file, close gedit then run:

sudo apt-get update

Is it smooth?

Revision history for this message
Michael (bradbum) said :
#2

Hi, thanks for the very prompt response. I had to do this slightly differently and am not sure if it is correct. This is what I found:
1 - I ran the first command and it brought up the "sources.list" file but it showed as blank and the terminal showed as being busy.
2 - I found the file by going into the directory and opened it from there but it would not allow me to update saying I dont have permission as it shows that "root" is the owner.
3 - I then copied its contents and pasted it into the blank file opened up via the command and saved as "sources.list" and over wrote the file in the directory. This after I placed "#" on all lines where "Natty" was listed that didnt have the "#" symbol.
4 - Did the update and didnt get the error as listed originally.

Would there be anything else to do and will this have worked?

Thanks

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

If you want to paste the full file, we can advise.

Revision history for this message
Michael (bradbum) said :
#4

Hi, as requested the file contents below:

# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ftp.sun.ac.za/ftp/ubuntu/ precise main restricted
deb-src http://ftp.sun.ac.za/ftp/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ftp.sun.ac.za/ftp/ubuntu/ precise-updates main restricted
deb-src http://ftp.sun.ac.za/ftp/ubuntu/ precise-updates main restricted

## 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://ftp.sun.ac.za/ftp/ubuntu/ precise universe
deb-src http://ftp.sun.ac.za/ftp/ubuntu/ precise universe
deb http://ftp.sun.ac.za/ftp/ubuntu/ precise-updates universe
deb-src http://ftp.sun.ac.za/ftp/ubuntu/ precise-updates 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://ftp.sun.ac.za/ftp/ubuntu/ precise multiverse
deb-src http://ftp.sun.ac.za/ftp/ubuntu/ precise multiverse
deb http://ftp.sun.ac.za/ftp/ubuntu/ precise-updates multiverse
deb-src http://ftp.sun.ac.za/ftp/ubuntu/ precise-updates 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://za.old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://za.old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://ftp.sun.ac.za/ftp/ubuntu/ precise-security main restricted
deb-src http://ftp.sun.ac.za/ftp/ubuntu/ precise-security main restricted
deb http://ftp.sun.ac.za/ftp/ubuntu/ precise-security universe
deb-src http://ftp.sun.ac.za/ftp/ubuntu/ precise-security universe
deb http://ftp.sun.ac.za/ftp/ubuntu/ precise-security multiverse
deb-src http://ftp.sun.ac.za/ftp/ubuntu/ precise-security 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 precise partner
# deb-src http://archive.canonical.com/ubuntu natty partner

## 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 precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://ftp.sun.ac.za/ftp/ubuntu/ precise-proposed restricted main multiverse universe

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

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
Michael (bradbum) said :
#6

Thank you very much - the support you give is right off the top shelf. Excellent