Skip to main content

Thread: error while trying to update package sources


the following error message given when try update package sources:
code:
w:failed fetch cdrom://ubuntu 11.04 _natty narwhal_ - release i386 (20110427)/dists/natty/main/binary-i386/packages  please use apt-cdrom make cd-rom recognized apt. apt-get update cannot used add new cd-roms , w:failed fetch cdrom://ubuntu 11.04 _natty narwhal_ - release i386 (20110427)/dists/natty/restricted/binary-i386/packages  please use apt-cdrom make cd-rom recognized apt. apt-get update cannot used add new cd-roms , w:failed fetch http://ppa.launchpad.net/shawn-p-huang/dev/ubuntu/dists/oneiric/main/source/sources  404  not found , w:failed fetch http://ppa.launchpad.net/shawn-p-huang/dev/ubuntu/dists/oneiric/main/binary-i386/packages  404  not found , w:failed fetch http://ppa.launchpad.net/shawn-p-huang/ppa/ubuntu/dists/oneiric/main/source/sources  404  not found , w:failed fetch http://ppa.launchpad.net/shawn-p-huang/ppa/ubuntu/dists/oneiric/main/binary-i386/packages  404  not found , e:some index files failed download. have been ignored, or old ones used instead.
what do?

hi

open terminal , type (or copy , paste; case important).

code:
grep -lz "shawn-p-huang" /etc/apt/sources.list.d/* | xargs -0 sudo rm
that small l after grep , 0 after xargs. enter password. not echoed screen.

copy , paste

code:
sudo sed -i 's/^deb cdrom*/#deb cdrom/' /etc/apt/sources.list
lastly

code:
sudo apt-get update
kind regards


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] error while trying to update package sources


Ubuntu

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

How to Render a TIFF image sequence with After Effects or Premiere