LinuxQuestions.org
Visit Jeremy's Blog.
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 01-02-2019, 05:37 PM   #1
xsabotagex
LQ Newbie
 
Registered: Jan 2019
Distribution: Linux Mint 19 Tara
Posts: 7

Rep: Reputation: Disabled
Software Manager not opening


Software Manager and Synaptic Package Manager aren't working. Software Manager won't open and when I open Synaptic, it tells me
"E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report."

I had tried to download Wine and then this started happening. I'm very new to Linux so maybe I messed the download up?
 
Old 01-02-2019, 08:03 PM   #2
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: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
The error message is telling you that the sources.list file is malformed. The package manager (software manager, software center, etc.) consults it to find out where to go on the internet to find the software repositories. Because the file is malformed, the process stops at that point.

Please post the contents of your /etc/apt/sources.list file, be sure to surround them with "code" tags, which become available when you click the "Go Advanced" button beneath the "compose post" window. The file is a plain text file that can be opened with any text editor.

See man sources.list for more information.
 
Old 01-02-2019, 08:23 PM   #3
xsabotagex
LQ Newbie
 
Registered: Jan 2019
Distribution: Linux Mint 19 Tara
Posts: 7

Original Poster
Rep: Reputation: Disabled
I'm not sure I did this right, but I couldn't figure out exactly what you meant by "post the contents of your /etc/apt/sources.list file" Like I said I'm very new to this. Sorry.

Code:
$ apt-get update
E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
E: The list of sources could not be read.
 
Old 01-02-2019, 09:03 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Please paste the output from the following command:

Code:
for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done
 
Old 01-02-2019, 09:04 PM   #5
xsabotagex
LQ Newbie
 
Registered: Jan 2019
Distribution: Linux Mint 19 Tara
Posts: 7

Original Poster
Rep: Reputation: Disabled
Code:
$ for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done
file: /etc/apt/sources.list
#deb cdrom:[Linux Mint 19 _Tara_ - Release amd64 20180717]/ bionic contrib main non-free
====
file: /etc/apt/sources.list.d/additional-repositories.list
deb https://dl.winehq.org/wine-builds/ubuntu/bionic main
====
file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com tara main upstream import backport 

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ bionic partner
====
file: /etc/apt/sources.list.d/spotify.list
# deb http://repository.spotify.com stable non-free
====
 
Old 01-02-2019, 09:09 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
That was quick.

The file /etc/apt/sources.list.d/additional-repositories.list actually looks good to my eye. Did you copy and paste it from https://wiki.winehq.org/Ubuntu? The only thing I can think of is that there is an unusual non-printing character in there.

Which distro (and version) are you using?

Edit: Correction - there should be a space between ubuntu and bionic on that line.

Last edited by hydrurga; 01-02-2019 at 09:15 PM.
 
Old 01-02-2019, 09:17 PM   #7
xsabotagex
LQ Newbie
 
Registered: Jan 2019
Distribution: Linux Mint 19 Tara
Posts: 7

Original Poster
Rep: Reputation: Disabled
Linux Mint 19 Tara
 
Old 01-02-2019, 09:18 PM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Ok, here is what you do:

Run the following command:

Code:
xed admin:///etc/apt/sources.list.d/additional-repositories.list
Then place a space between ubuntu/ and bionic and save the file.

Run apt update again.
 
Old 01-02-2019, 09:20 PM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by xsabotagex View Post
Linux Mint 19 Tara
I know. I should really turn in for the night. The software sources listing you provide clearly showed that you are using Tara, and I also missed the fact that you had neglected to add a space in the correct position of the relevant file. That's the problem with trying to think when I'm tired!
 
Old 01-02-2019, 09:22 PM   #10
xsabotagex
LQ Newbie
 
Registered: Jan 2019
Distribution: Linux Mint 19 Tara
Posts: 7

Original Poster
Rep: Reputation: Disabled
Code:
Ign:1 http://packages.linuxmint.com tara InRelease
Hit:2 http://archive.canonical.com/ubuntu bionic InRelease                                                              
Get:3 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6,259 B]                                               
Hit:4 http://packages.linuxmint.com tara Release                                                                             
Get:5 https://dl.winehq.org/wine-builds/ubuntu bionic/main i386 Packages [73.9 kB]                                           
Get:7 https://dl.winehq.org/wine-builds/ubuntu bionic/main amd64 Packages [71.5 kB]                                                    
Hit:8 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]       
Get:11 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]          
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [245 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B] 
Get:14 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [14.9 kB]             
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [200 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,816 B]
Fetched 867 kB in 2s (359 kB/s)                                              
Reading package lists... Done
Building dependency tree       
Reading state information... Done
459 packages can be upgraded. Run 'apt list --upgradable' to see them.
 
Old 01-02-2019, 09:26 PM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Ok, that's you up and running again. You can run apt upgrade now.

A couple of notes. Firstly, in future posts, remember to include your distro right from the start - it's often useful in helping folk focus on the answer more quickly. You might also want to edit your profile to add your distro, version and desktop environment (look to the left of this post for an example).

Also, your Spotify repo is commented out. Are you still using Spotify?

Finally, have you installed and are you using TimeShift?
 
  


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] Software-manager not opening Sayan Acharjee Linux Mint 14 09-21-2018 02:28 AM
[SOLVED] Linux 17 Software (Package) Manager Not Opening moshebagelfresser Linux Mint 2 01-18-2017 12:11 AM

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

All times are GMT -5. The time now is 08:39 AM.

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