Synaptic and Repos produce errors (Solved)

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Chrisnz
Level 2
Level 2
Posts: 66
Joined: Sun May 20, 2012 6:08 am
Location: New Zealand

Synaptic and Repos produce errors (Solved)

Post by Chrisnz »

Running LM17 with 'mate'

I have had a few updates but then they stopped and when I tried to add some software from Synaptics I get the following

E: Type 'chris/home/download' is not known on line 1 in source list /etc/apt/sources.list.d/additional-repositories.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.

Only option is to "Close"

when I use terminal command, inxi -r I get the following

Repos: Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
chris/home/download
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner

If you can assist please advise...

Thanks
Last edited by Chrisnz on Sat Sep 27, 2014 4:55 pm, edited 1 time in total.
User avatar
PatH57
Level 13
Level 13
Posts: 4572
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: Synaptic and Repos produce errors

Post by PatH57 »

Hi,

let's try to clear the local cache first

Code: Select all

sudo rm /var/lib/apt/lists/* -vf
then

Code: Select all

sudo apt-get update
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
nomko

Re: Synaptic and Repos produce errors

Post by nomko »

PatH57 wrote: let's try to clear the local cache first

Code: Select all

sudo rm /var/lib/apt/lists/* -vf
then

Code: Select all

sudo apt-get update
This won't fix anything. After running the last command he will still get error message. You didn't read the output of inxi -r carefully. The line that causes the problem is fixed in the source list.

@ Chrisnz:
E: Type 'chris/home/download' is not known on line 1 in source list /etc/apt/sources.list.d/additional-repositories.list
How did this get in your source list? This causes your problem. Remove this line from your source list and then run the sudo apt-get update command in a terminal.

Repos: Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
chris/home/download <<== REMOVE THIS LINE
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
User avatar
PatH57
Level 13
Level 13
Posts: 4572
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: Synaptic and Repos produce errors

Post by PatH57 »

sorry didn't read it correctly.
you probably did try to manually or using gedit install a deb you downloaded (witch explains the chris/home/download ) that's why the line was added by mistake to your additional-repositories.list
just remove it and do a

Code: Select all

sudo apt-get update
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
philliegp
Level 1
Level 1
Posts: 17
Joined: Wed Jan 07, 2009 7:06 pm

Re: Synaptic and Repos produce errors

Post by philliegp »

I have i same problem and i think this will fix it but I don't know how to delete it. Can you give me the command to be able to edit the line?

Thanks
User avatar
PatH57
Level 13
Level 13
Posts: 4572
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: Synaptic and Repos produce errors

Post by PatH57 »

better would be to post the error to make sure as you don't seem to have a lot of experience with linux.
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
philliegp
Level 1
Level 1
Posts: 17
Joined: Wed Jan 07, 2009 7:06 pm

Re: Synaptic and Repos produce errors

Post by philliegp »

E: Type 'olive' is not known on line 1 in source list /etc/apt/sources.list.d/additional-repositories.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.

This is the error I'm getting. I have no problem opening a terminal as long as I have good instructions.

Thanks
User avatar
gtsfer
Level 7
Level 7
Posts: 1912
Joined: Mon May 27, 2013 9:15 am
Location: Bucks County PA, USA

Re: Synaptic and Repos produce errors

Post by gtsfer »

Chrisnz wrote:E: Type 'chris/home/download' is not known on line 1 in source list /etc/apt/sources.list.d/additional-repositories.list
With LM 17 Mate you can open the file with Pluma editor using this command in Terminal...

Code: Select all

sudo pluma /etc/apt/sources.list.d/additional-repositories.list
Edit that line out, save the file and execute this command...

Code: Select all

sudo apt-get update
After that Synaptic Package Manager etc should be ok.
"There is no gravity, the earth sucks." - Issac Newton @ 75
KDE & Cinnamon 18.1 & Win 10 - ASUS M5A99FX PRO MB, AMD FX-8370 Octo-Core CPU, 16GB RAM, AMD Radeon R7 240
philliegp
Level 1
Level 1
Posts: 17
Joined: Wed Jan 07, 2009 7:06 pm

Re: Synaptic and Repos produce errors

Post by philliegp »

I'm running LM17 Cinnamon, same instructions?
User avatar
PatH57
Level 13
Level 13
Posts: 4572
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: Synaptic and Repos produce errors

Post by PatH57 »

same instructions if it doesn't open a text editor change pluma for leafpad or gedit (all are text editors)
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
philliegp
Level 1
Level 1
Posts: 17
Joined: Wed Jan 07, 2009 7:06 pm

Re: Synaptic and Repos produce errors

Post by philliegp »

WORKED!!!!!! Thank you so much.
Chrisnz
Level 2
Level 2
Posts: 66
Joined: Sun May 20, 2012 6:08 am
Location: New Zealand

Re: Synaptic and Repos produce errors

Post by Chrisnz »

@ Chrisnz:
E: Type 'chris/home/download' is not known on line 1 in source list /etc/apt/sources.list.d/additional-repositories.list
How did this get in your source list? This causes your problem. Remove this line from your source list and then run the sudo apt-get update command in a terminal.

Repos: Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
chris/home/download <<== REMOVE THIS LINE
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner[/quote]

Yes I agree - and ... no idea how the download folder got into the source lists!!

Will try your fix and post asap.
Thanks
Chrisnz
Level 2
Level 2
Posts: 66
Joined: Sun May 20, 2012 6:08 am
Location: New Zealand

Re: Synaptic and Repos produce errors

Post by Chrisnz »

Thanks everyone.

to Gtsfer
Yes - edited the first file, the 2nd file was ok, updating with out any error messages.

Solved with thanks.
User avatar
PatH57
Level 13
Level 13
Posts: 4572
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: Synaptic and Repos produce errors

Post by PatH57 »

no idea how the download folder got into the source lists!!
happens only if you try to add ppa without using synaptic and doing a "how to" found somewhere with google. (and of course being in your home folder)
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
User avatar
gtsfer
Level 7
Level 7
Posts: 1912
Joined: Mon May 27, 2013 9:15 am
Location: Bucks County PA, USA

Re: Synaptic and Repos produce errors

Post by gtsfer »

Chrisnz wrote:Solved with thanks.
No problem, glad it worked. Can you edit you first post and add SOLVED in the subject line?
"There is no gravity, the earth sucks." - Issac Newton @ 75
KDE & Cinnamon 18.1 & Win 10 - ASUS M5A99FX PRO MB, AMD FX-8370 Octo-Core CPU, 16GB RAM, AMD Radeon R7 240
Post Reply

Return to “Software & Applications”