this is my sourcelist and system doesn't work. what should i do? thank you..
i don't know what i did but i got a serious problem about my source list... there shold be a problem about line 2. and now. i even can't see the line 2. so the error is
E: Type 'and' is not known on line 2 in source list /etc/apt/
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.
W: Ignoring file 'Untitled Document 1' in directory '/etc/apt/
thank you
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
by the way i try to solve the problem for at least 2 days, but couldn't. since i am more or less new on linux, i got no idea..
Revision history for this message
|
#2 |
Open a terminal and type:
gksudo gedit /etc/apt/
copy and paste the file content here...
Revision history for this message
|
#3 |
thanks in advance marco. this is the content;
deb http://
and
deb http://
and
deb-src http://
Revision history for this message
|
#4 |
Please also tell the release of Ubuntu you are yousing... from terminal type:
lsb_release -rd
copy and paste the result back...
You sources.list are not good please restore standard repository generated from here
Revision history for this message
|
#5 |
Description: Ubuntu 12.04 LTS
Release: 12.04
and the repogen result after generated the list
Executing: gpg --ignore-
gpg: requesting key 0624A220 from hkp server keyserver.
gpg: key 0624A220: public key "Launchpad PPA for TualatriX" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
ahathatsright@
Revision history for this message
|
#6 |
The PPA doesn't support Precise
http://
It only goes up to Natty. I suggest you remove the lines you added
Revision history for this message
|
#7 |
actually i didn't add any line it's stupid but i just deleted line 2 which is not seen above and i don't know what it was!
thank you
Revision history for this message
|
#8 |
hi andrew. what should i fo with link and natty?
thank you..
Revision history for this message
|
#9 |
It's no good to you, you are using Precise.
Revision history for this message
|
#10 |
i think that it's getting worse
E: Type 'and' is not known on line 2 in source list /etc/apt/
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.
W: Ignoring file 'Untitled Document 1' in directory '/etc/apt/
W: Ignoring file 'Untitled Document 2' in directory '/etc/apt/
Revision history for this message
|
#11 |
ok, run:
sudo rm /etc/apt/
sudo rm /etc/apt/
Then run:
head -n 3 /etc/apt/
What is output?
Thanks
Revision history for this message
|
#12 |
andrew, this is what i got;
ahathatsright@
[sudo] password for ahathatsright:
ahathatsright@
ahathatsright@
deb http://
and
deb http://
LSB Version: core-2.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
ahathatsright@
Revision history for this message
|
#13 |
ok run:
gksudo gedit /etc/apt/
and delete the 2nd line which simply has the word 'and' on it (No idea why you have that). This is what is causing the issue.
Save the new file, close gedit and run:
sudo apt-get update
Should be smooth
Revision history for this message
|
#14 |
i don't know if it's ok. but finally it started talking to me;
ahathatsright@
ahathatsright@
E: Type 'and' is not known on line 2 in source list /etc/apt/
N: Ignoring file 'Untitled Document 3' in directory '/etc/apt/
E: The list of sources could not be read.
ahathatsright@
ahathatsright@
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Ign http://
Get:5 http://
Get:6 http://
Get:7 http://
Ign http://
Get:8 http://
Get:9 http://
Ign http://
Get:10 http://
Get:11 http://
Ign http://
Get:12 http://
Get:13 http://
Ign http://
Get:14 http://
Ign http://
Get:15 http://
Get:16 http://
Ign http://
Get:17 http://
Get:18 http://
Get:19 http://
Ign http://
Ign http://
Get:20 http://
Get:21 http://
Get:22 http://
Ign http://
Get:23 http://
Get:24 http://
Get:25 http://
Ign http://
Get:26 http://
Get:27 http://
Get:28 http://
Ign http://
Ign http://
Ign http://
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Fetched 89.3 kB in 2s (30.7 kB/s)
N: Ignoring file 'Untitled Document 3' in directory '/etc/apt/
W: GPG error: http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
ahathatsright@
Revision history for this message
|
#15 |
http://
The PPA doesn't support Precise. I suggest you remove it.
Can you give the output of:
grep -R oneiric /etc/apt/*; grep -R maverick /etc/apt/*
Thanks
Revision history for this message
|
#16 |
http://
The PPA doesn't support Precise. I suggest you remove it.
Can you give the output of:
grep -R oneiric /etc/apt/*; grep -R maverick /etc/apt/*
Thanks
Revision history for this message
|
#17 |
output ;
ahathatsright@
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
grep: /etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
grep: /etc/apt/
ahathatsright@
thank you, andrew
Revision history for this message
|
#18 |
thank you, now i can open synaptic app manager but when i wanted it updated, this is the result that i got.
Ignoring file 'Untitled Document 3' in directory '/etc/apt/
Failed to fetch http://
Failed to fetch http://
Failed to fetch http://
Failed to fetch http://
Failed to fetch http://
Some index files failed to download. They have been ignored, or old ones used instead.
btw. how can i take my software center back?
Revision history for this message
|
#19 |
If you run:
gksudo gedit /etc/apt/
Remove the lines you have outputted in #17
Revision history for this message
|
#20 |
this is my list andrew. if i remove the lines output #17, i ll have to clean all.. is this correct? my ubuntu is turning back to life that's whay i'm just scared. thank you.
deb http://
deb http://
deb-src http://
Revision history for this message
|
#21 |
ok lets do it this way:
run:
sudo rm /etc/apt/
Add the below code:
http://
Save the new file, close gedit then run:
sudo apt-get update
Should be ok
Revision history for this message
|
#22 |
i am afraid not;
E: Type 'http://
N: Ignoring file 'Untitled Document 3' in directory '/etc/apt/
E: The list of sources could not be read.
ahathatsright@
Revision history for this message
|
#23 |
sudo rm /etc/apt/
What have you been doing with your system!?
You don't add that url to the file, If you CLICK the link you will find a DEFAULT sources.list file for precise which you can replace your botched file with.
Revision history for this message
|
#24 |
as far as i remember, i was just trying to find a solution to make "wine" work.. but i'm not sure cause for three days, i just fight with this problem..
i copied the list from your link then pasted it to my sources.list...
how can i understand if it's ok? i can reach the synaptic package manager but still, can't see software center..
Revision history for this message
|
#25 |
now, waiting for
sudo apt-get update
to finish
Revision history for this message
|
#26 |
and this is the output;
ahathatsright@
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:1 http://
Get:2 http://
Ign http://
Ign http://
Hit http://
Get:3 http://
Get:4 http://
Get:5 http://
Ign http://
Ign http://
Ign http://
Get:6 http://
Get:7 http://
Hit http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Ign http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Ign http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Ign http://
Hit http://
Get:29 http://
Hit http://
Get:30 http://
Get:31 http://
Hit http://
Ign http://
Get:32 http://
Get:33 http://
Get:34 http://
Hit http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Get:42 http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Ign http://
Get:43 http://
Ign http://
Get:44 http://
Get:45 http://
Ign http://
Get:46 http://
Get:47 http://
Ign http://
Get:48 http://
Ign http://
Err http://
404 Not Found
Err http://
404 Not Found
Err http://
404 Not Found
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:49 http://
Get:50 http://
Ign http://
Ign http://
Ign http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Get:61 http://
Get:62 http://
Get:63 http://
Get:64 http://
Get:65 http://
Get:66 http://
Get:67 http://
Get:68 http://
Get:69 http://
Get:70 http://
Get:71 http://
Get:72 http://
Get:73 http://
Get:74 http://
Get:75 http://
Get:76 http://
Get:77 http://
Get:78 http://
Get:79 http://
Get:80 http://
Get:81 http://
Get:82 http://
Get:83 http://
Get:84 http://
Get:85 http://
Get:86 http://
Get:87 http://
Get:88 http://
Get:89 http://
Get:90 http://
Get:91 http://
Get:92 http://
Get:93 http://
Get:94 http://
Get:95 http://
Get:96 http://
Get:97 http://
Get:98 http://
Get:99 http://
Get:100 http://
Get:101 http://
Get:102 http://
Get:103 http://
Get:104 http://
Get:105 http://
Get:106 http://
Get:107 http://
Fetched 23.5 MB in 3min 14s (121 kB/s)
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
Revision history for this message
|
#27 |
ok run:
grep -R pmcenery /etc/apt/*
What is output?
Revision history for this message
|
#28 |
ahathatsright@
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
grep: /etc/apt/
ahathatsright@
Revision history for this message
|
#29 |
ok run:
sudo rm /etc/apt/
sudo rm /etc/apt/
sudo rm /etc/apt/
sudo rm /etc/apt/
sudo rm /etc/apt/
then run:
sudo apt-get update
Is it smooth?
Revision history for this message
|
#30 |
thank you for your precious time and great help andrew... it's smooth...
Revision history for this message
|
#31 |
Thanks actionparsnip, that solved my question.