LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-23-2014, 01:42 PM   #1
wilwon3
LQ Newbie
 
Registered: Jun 2012
Location: Research Triangle Park/Durham NC
Distribution: Ubuntu
Posts: 5

Rep: Reputation: Disabled
Failed to download repository information


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.
 
Old 03-24-2014, 01:15 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
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

Last edited by jdkaye; 03-24-2014 at 01:18 PM.
 
1 members found this post helpful.
Old 03-24-2014, 01:21 PM   #3
dolphin_oracle
MX Linux
 
Registered: Dec 2013
Posts: 402

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 03-24-2014, 08:32 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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.
 
1 members found this post helpful.
Old 04-01-2014, 08:06 AM   #5
wilwon3
LQ Newbie
 
Registered: Jun 2012
Location: Research Triangle Park/Durham NC
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-21-2014, 09:08 PM   #6
wilwon3
LQ Newbie
 
Registered: Jun 2012
Location: Research Triangle Park/Durham NC
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: Disabled
In reply to Frank Bell's suggestion, I tried:

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

Any suggestions appreciated. Thanks.
 
Old 04-21-2014, 09:17 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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:

Code:
sudo apt-get clean
 
Old 04-21-2014, 09:59 PM   #8
wilwon3
LQ Newbie
 
Registered: Jun 2012
Location: Research Triangle Park/Durham NC
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-21-2014, 11:33 PM   #9
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
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
Code:
apt-get clean
and it should work.
jdk
 
Old 04-22-2014, 09:14 AM   #10
wilwon3
LQ Newbie
 
Registered: Jun 2012
Location: Research Triangle Park/Durham NC
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi jdk,

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?
 
Old 04-22-2014, 11:02 AM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.

$ sudo dpkg --clear-avail
$ sudo dselect update
 
Old 04-22-2014, 12:13 PM   #12
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Quote:
Originally Posted by wilwon3 View Post
Hi jdk,

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.

Enter:

Code:
sudo cat /etc/sudoers
then enter your password as a normal user.

Enter

Code:
su
then enter root's password
 
Old 04-22-2014, 01:13 PM   #13
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Here are easy instructions (with screenshots) to reset a forgotten password in Ubuntu:

http://www.psychocats.net/ubuntu/resetpassword

In the event that "sudo" has stopped working:

http://www.psychocats.net/ubuntu/fixsudo

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.

Last edited by snowday; 04-22-2014 at 10:04 PM.
 
Old 04-23-2014, 02:14 AM   #14
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Quote:
Originally Posted by snowpine View Post
Important note: There is no "root user" in Ubuntu and "su" won't work.
Ohh. Didn't know that. Thanks for pointing that out.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Failed to download repository information herakles_14 Ubuntu 4 10-29-2013 01:33 AM
Failed to download repository information Ken Schafer Linux - Newbie 4 09-11-2012 11:45 AM
...Failed to download repository information.... tonewheelkev Linux - Newbie 4 08-31-2011 04:53 AM
Can not download from repository SteveMK Linux - Newbie 5 02-02-2009 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration