LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-06-2015, 05:00 PM   #1
Bruno Zero
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Rep: Reputation: Disabled
Question Sources list in Lubuntu 14.04 is lost


Hello everyone,
I had a trouble with my sources list. The trouble was line 56 malformed in sources list, so I couldn't update my prograns or download new ones. I tried one solution I heard of, which consisted in adding to ## at the beginning of the line. As I didn't know which line was 56 I added the ## at various lines to make sure that line 56 was changed. Unfortunately, it didn't work and the message repeated itself again. I accessed the sources list again, but this time I probably forgot to save the changes I made and now the sources list is empty, which it is a much graver problem. Could anyone tell me how to fix it? Will it suffice to send me a copy of the current sources list in Lubuntu/Ubuntu so that I could paste it in the terminal? Thank you so much for any help you could give me.
Bruno Zero
 
Old 01-08-2015, 02:21 AM   #2
sidzen
Member
 
Registered: Feb 2014
Location: Inland PNW
Distribution: slackware & related distros
Posts: 109

Rep: Reputation: Disabled
Get familiar with this site. The example may be apropos to your question and is just one of a multitude of help pages available there. Here's another one, FYI.

Last edited by sidzen; 01-08-2015 at 02:22 AM.
 
Old 01-08-2015, 02:53 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
It might be helpful to post the contents of your current sources list file (use the code tags when doing this). That way it should be easy enough to spot the problems and offer corrections to fix them.
jdk
 
Old 01-08-2015, 10:54 AM   #4
Bruno Zero
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank You very much for your comment jdkaye. Here is the content of my sources list at the moment:

# deb cdrom:[Lubuntu 13.10 _Saucy Salamander_ - Release i386 (20131016.1)]/ sau$

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
## deb http://ca.archive.ubuntu.com/ubuntu/ trusty universe
## deb-src http://ca.archive.ubuntu.com/ubuntu/ trusty universe
## deb http://ca.archive.ubuntu.com/ubuntu/ trusty-updates universe
## deb-src http://ca.archive.ubuntu.com/ubuntu/ trusty-updates universe

As you can see, I have commented the last four lines to try to solve the problem, but it hasn't worked. I have tried to erase this list and get a new one online, but that failed as well (when I tried to get a new list online the same error occurred). Now even the Ubuntu repository in my computer isn't working. I believe I have to somehow import a new list or fix this one in order to go back to normality. By the way, everytime I swicht on my computer a system error announcement appears on the screen, although I'm able to use my computer without problems.

Thank you very much for any advise you can give me.
Bruno Zero
 
Old 01-09-2015, 12:57 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
You really don't need two (2) "#"'s in front of a line. Just the one will comment out the line. So instead of this:
Code:
## deb http://ca.archive.ubuntu.com/ubuntu/ trusty universe
You can use this:
Code:
# deb http://ca.archive.ubuntu.com/ubuntu/ trusty universe
Open a terminal and type the following two commands:
Code:
sudo apt-get update
Post the output for this command.
Code:
sudo apt-get upgrade
Post the output for this command.
jdk
 
Old 01-09-2015, 06:06 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
This is the default Ubuntu 14.04 ``sources.list´´
( Without the 'live-cd', and without the comments.)
Code:
deb http://dk.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://dk.archive.ubuntu.com/ubuntu/ trusty main restricted

deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://dk.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

deb http://dk.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://dk.archive.ubuntu.com/ubuntu/ trusty universe
deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://dk.archive.ubuntu.com/ubuntu/ trusty-updates universe

deb http://dk.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://dk.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://dk.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

deb http://dk.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://dk.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
You can use 'synaptic' to enable / disable a repo :
'synaptic' >> Settings >> Repositories

-
 
Old 01-09-2015, 11:02 AM   #7
Bruno Zero
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you very much jdkaye and knudfl.

The problem has been solved by commenting the right line, which was not the ones that I had commented before. Obviously, the sources list was a lot longer than the one that appears initially on the terminal. The actual line 56 that gave me so much trouble was near the end of it, which I discovered by simple scrolling it down further. This is how the list ends (I added the line numbers myself just to make it clear to other newbies that might have the same problem):

# deb http://repositori.spotify.com non-free (56)
# deb-src http://repositori.spotify.com non-free (57)
deb http://repository.spotify.com stable non-free (58)
# deb-src http://repository.spotify.com stable non-free (59)
# deb-src http://repository.spotify.com stable non-free (60)
deb-src http://extras.ubuntu.com/ubuntu trusty main (61)

Maybe the origin of the malformation on line 56 was my attempt to download spotify on my computer. It is interesting to note that the word «repository» is misspelled on both line 56 and 57. Perhaps this is the malformation, but I have no idea how that happened.

Again, thank you very much to you both.
Bruno Zero
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] ElementaryOS: lost apt-get and sources.list; howto revoke original settings? DenisStgt Ubuntu 10 05-29-2014 06:25 AM
disabling cd sources in apt/sources.list revod_neb Linux - Newbie 4 05-25-2013 01:03 PM
'E:Malformed line 54 in source list /etc/apt/sources.list (dist parse), E:The list of vsssuccess@gmail.com Linux - Desktop 1 11-17-2010 09:17 AM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 02:57 PM
Ubuntu Sources List! I need some great sources lists! Jengo Linux - Newbie 1 06-24-2005 05:50 PM


All times are GMT -5. The time now is 10:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration