Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would like to erase the following message:
HOW to do so?
W:Failed to fetch cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)/dists/precise/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 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)/dists/precise/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
, W:Failed to fetch http://ppa.launchpad.net/yannubuntu/...-i386/Packages 404 Not Found
, E:Some index files failed to download. They have been ignored, or old ones used instead.W:Failed to fetch cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)/dists/precise/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 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)/dists/precise/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
, W:Failed to fetch http://ppa.launchpad.net/yannubuntu/...-i386/Packages 404 Not Found
, E:Some index files failed to download. They have been ignored, or old ones used instead.
If you really mean "erase the following message" then closing down the application in which the message appeared should get rid of it. If you mean fix the error that occurred then that is another story. Please clarify what you want to do. It seem like your are trying to add new packages from a CD when you should be downloading them from a repository. If this is what you want then post the content of your /etc/apt/sources.list file.
jdk
you should be able to disable the cdrom repo and the ppa in the ubuntu sources app. once the sources are removed, reload your sources and the errors should be gone.
If that doesn't work, try apt-get clean as root in a terminal (assuming Ubuntu still has apt). From the man page:
Code:
clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.
I had a similar issue recently and apt-get clean fixed it.
I have been busy moving to a retirement apartment; and that has been done. I plan to get out the notebook containing Ubuntu OS and will try Frank Bell's approach initially. Hope that will work!
I appreciate the suggestions by dolphin oracle and jdkaye. Thanks to all.
william2@william2-laptop:~$ apt-get clean
E: Could not open lock file /var/cache/apt/archives/lock - open (13: Permission denied)
E: Unable to lock the download directory
Your prompt shows you are running the command as an ordinary user and that won't work. Preface it with sudo and enter your user password when prompted:
Actually, I ran the command as yancek suggested initially. I have rerun the command, entered the password, and received the same response as indicated above. I have also tried repeating the command several times; always the same response. Suggestions appreciated.
1. Did you use your own password (not root's) when using sudo?
2. Are you on the sudoers list?
3. If you don't know 2 then post the output of this command which must be executed as root:
Code:
cat /etc/sudoers
You should see your username in this file or else you can't use sudo until the file is edited.
4. If you can't use sudo then give this command from a terminal:
Code:
su
and give the root password.
Now you can give the command
I attempted to follow your suggestions, however, I am beginning to suspect that the password I used is no longer recognized as such (or I do not know how to know how to execute as root).
When I entered cat /etc/sudoers, the response was: cat: /etc/sudoers: Permission denied
When I entered su, followed by entry of my password, the response was Authentication failure.
If you have a live disc version of linux you can chroot to the ubuntu install and use passwd to set/reset the password. Check to see if the caps lock key is on as passwords are case sensitive in linux. On laptops you can sometimes push the Fn key and set the keyboard into a mode where the numberpad characters are typed instead of the qwerty ones. So that could be a few things that prevent your password from working as expected.
It sounds like you might have had a failure mid-install / update. You can recover from it, but not always simple to do.
$ sudo nano /etc/apt/sources.list
And add a # in front of the cdrom lines to comment them out. If you had a power outage during an upgrade you could have corrupted your apt files.
I attempted to follow your suggestions, however, I am beginning to suspect that the password I used is no longer recognized as such (or I do not know how to know how to execute as root).
When I entered cat /etc/sudoers, the response was: cat: /etc/sudoers: Permission denied
When I entered su, followed by entry of my password, the response was Authentication failure.
What next?
Please remember that your password as a user is different with root's password.
Important note: There is no "root user" in Ubuntu and "su" won't work. Some of the users above have given you excellent advice for non-Ubuntu distros, but please don't try this well-intentioned advice in Ubuntu! Make sure any tutorials you follow come from Ubuntu-specific sources.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.