LinuxQuestions.org
Visit Jeremy's Blog.
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 07-06-2012, 06:02 AM   #1
kn@cker
LQ Newbie
 
Registered: Jul 2012
Location: right coast
Distribution: ubuntu and SolusOS A5
Posts: 11

Rep: Reputation: 0
newish to linux and brand new to unity and cant update or use apt


help with error message malformed line on 53, will not let me open Update manager or use apt-get

edit: I began learning and using Linux because of the reputation for community support but in every attemt to engage or get a question answered I am met with sarcasm, insults, just outright, I'm better than you N00B attitude. was doing ok on my own with older distros but I am lost here with the error msg. Just want some friendly help. thank you and good morning

Last edited by kn@cker; 07-06-2012 at 06:17 AM. Reason: add info
 
Old 07-06-2012, 06:14 AM   #2
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 15 , ChromeOS
Posts: 4,918
Blog Entries: 19

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
Edit: Double post.

Last edited by rokytnji; 07-06-2012 at 06:17 AM.
 
Old 07-06-2012, 06:16 AM   #3
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 15 , ChromeOS
Posts: 4,918
Blog Entries: 19

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
Open a terminal

Code:
gksu gedit /etc/apt/sources.list
select it and post here in [code] tags
 
Old 07-06-2012, 06:21 AM   #4
kn@cker
LQ Newbie
 
Registered: Jul 2012
Location: right coast
Distribution: ubuntu and SolusOS A5
Posts: 11

Original Poster
Rep: Reputation: 0
thx

I appreciate the help rokynji... I got compromised bad last time I was looking for help and it took a lots of time and effort to get back to where I was comfortable connecting this box so until now have not had any internet access. or chose not to until I cleaned things out. thanks and good morn/night k

Last edited by kn@cker; 07-06-2012 at 06:23 AM. Reason: edit reply to name
 
Old 07-06-2012, 06:25 AM   #5
anshuman84
Member
 
Registered: May 2008
Location: Bangalore
Posts: 31

Rep: Reputation: 6
Quote:
Originally Posted by kn@cker View Post
help with error message malformed line on 53, will not let me open Update manager or use apt-get

edit: I began learning and using Linux because of the reputation for community support but in every attemt to engage or get a question answered I am met with sarcasm, insults, just outright, I'm better than you N00B attitude. was doing ok on my own with older distros but I am lost here with the error msg. Just want some friendly help. thank you and good morning
Please check the line 53 of /etc/apt/sources.list . It might have corrupted. If you still cant find send the full file content here .
 
Old 07-06-2012, 06:48 AM   #6
kn@cker
LQ Newbie
 
Registered: Jul 2012
Location: right coast
Distribution: ubuntu and SolusOS A5
Posts: 11

Original Poster
Rep: Reputation: 0
got it,

below are lines 52 through 56. what you think, I got an idea but.....?


52 deb http://us.archive.ubuntu.com/ubuntu/ oneiric-security universe
53 deb http://us.archive.ubuntu.com/ubuntu/ oneiric-security multiverse
54
55 # Remastersys
56 deb http://www.geekconnection.org/remastersys/repository oneiric

Edit: did i just post links to my system that could lead to me getting compromised...?

Last edited by kn@cker; 07-06-2012 at 06:49 AM. Reason: ??
 
Old 07-06-2012, 06:55 AM   #7
anshuman84
Member
 
Registered: May 2008
Location: Bangalore
Posts: 31

Rep: Reputation: 6
Quote:
Originally Posted by kn@cker View Post
below are lines 52 through 56. what you think, I got an idea but.....?


52 deb http://us.archive.ubuntu.com/ubuntu/ oneiric-security universe
53 deb http://us.archive.ubuntu.com/ubuntu/ oneiric-security multiverse
54
55 # Remastersys
56 deb http://www.geekconnection.org/remastersys/repository oneiric

Edit: did i just post links to my system that could lead to me getting compromised...?
Hay

Have you tried with the command
apt-get update (it shd be in root mode)

please go through these links :

https://help.ubuntu.com/community/SourcesList
https://help.ubuntu.com/community/Re...es/CommandLine
 
Old 07-06-2012, 06:59 AM   #8
kn@cker
LQ Newbie
 
Registered: Jul 2012
Location: right coast
Distribution: ubuntu and SolusOS A5
Posts: 11

Original Poster
Rep: Reputation: 0
kb1@kb1-VPCEG37FM:~$ sudo apt-get update
[sudo] password for kb1:
E: Malformed line 56 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

guess 56 too
 
Old 07-06-2012, 07:03 AM   #9
anshuman84
Member
 
Registered: May 2008
Location: Bangalore
Posts: 31

Rep: Reputation: 6
Quote:
Originally Posted by kn@cker View Post
kb1@kb1-VPCEG37FM:~$ sudo apt-get update
[sudo] password for kb1:
E: Malformed line 56 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

guess 56 too
Dont be angry . I am just trying to help you. If you behave like this then you will get response also badly from somebody.

Now you do one thing copy the contents of the file and create another source.list file in Vim editor and paste there. Dont copy pate the file.

Or better you take the source.lst file from Ubuntu site paste it.
It should work .
 
Old 07-06-2012, 07:04 AM   #10
kn@cker
LQ Newbie
 
Registered: Jul 2012
Location: right coast
Distribution: ubuntu and SolusOS A5
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks guys,gonna look at some of the links you guys gave me and re-read a few books. thanks for trying, got a long way to go.
 
Old 07-06-2012, 07:08 AM   #11
kn@cker
LQ Newbie
 
Registered: Jul 2012
Location: right coast
Distribution: ubuntu and SolusOS A5
Posts: 11

Original Poster
Rep: Reputation: 0
Question not mad

hey anshuman84, I appreciate the help and am not one bit angry. can I ask what in my copy and pasted post made you think i was upset. You said I sounded rude, if so it was not my intention. i'm grateful for the help

edit:the links and advice in your last two posts were very helpful, think I may be able to get it done with that advice.

Last edited by kn@cker; 07-06-2012 at 07:12 AM. Reason: comment
 
Old 07-06-2012, 09:22 AM   #12
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 15 , ChromeOS
Posts: 4,918
Blog Entries: 19

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
Line 54 under line 53 is empty for starters.

So delete that empty line 54. Line 56. Comment out (comment out=putting a # in front of )
Code:
deb http://www.geekconnection.org/remastersys/repository oneiric
Since you are new to Linux and Ubuntu. I don't see you using remastersys to make your own Ubuntu spinoff distro.

Save and close the file in gedit.

Then do

Code:
sudo apt-get update
again.

I kinda wished you would have posted the complete /etc/apt/sources.list in case there are any more mistakes in your apt list (seems to be a ubuntu thing lately IMO).


I keep my sources.list in AntiX pretty lean and clean

Code:
harry@Biker:/mnt/sdb1/home/harry$ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://ftp.us.debian.org/debian/ testing main contrib non-free
           deb http://security.debian.org/ testing/updates main contrib non-free
I only enable multimedia and nonfree and liqourix repos when I need to install something from there and then comment them back out again during

Code:
apt-get update && apt-get dist-upgrades
less headaches that way.

Quote:
create another source.list file in Vim editor
I can probably guarantee the OP has no clue on how to use vim. If I am wrong. I apologize. Hence my recommendation for using a gui editor like gedit.

If wanting to make a backup of /ect/apt/sources.list before editing (I highly recommend doing this first before editing any file in "/" like /etc/fstab,/etc/apt/sources.list or whatever.) That way you have a fallback original file you can use again in case you really screw up with typo edit mistakes.

Code:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
Edit: Just noticed your

Quote:
Edit: did i just post links to my system that could lead to me getting compromised...?
No. You did not. These links are public on the net at Ubuntu's site.
I have a problem though with Ubuntu users adding private PPA's willy nilly and then wondering why their system broke.

Last edited by rokytnji; 07-06-2012 at 09:27 AM.
 
Old 07-06-2012, 11:02 AM   #13
kn@cker
LQ Newbie
 
Registered: Jul 2012
Location: right coast
Distribution: ubuntu and SolusOS A5
Posts: 11

Original Poster
Rep: Reputation: 0
Thumbs up spot on

"I can probably guarantee the OP has no clue on how to use vim. If I am wrong. I apologize. Hence my recommendation for using a gui editor like gedit."

No offense taken and you are correct. I have played around a bit with vim and emacs but have almost no skills... yet

thank you for the very detailed reply, i had something come up so i have not even touched anything yet and now that i see your post I am glad. I will give it a shot, if you think i would get more accurate help if I had posted the complete etc/apt/sources.list. I still can. Oh, and spot on again: "Since you are new to Linux and Ubuntu. I don't see you using remastersys to make your own Ubuntu spinoff distro." . I'm working on it. thx again.

at 35 and coming from a Windows background(wasn't very skilled either) the file system and configuration differences/options are a real big change.
 
Old 07-06-2012, 11:17 AM   #14
kn@cker
LQ Newbie
 
Registered: Jul 2012
Location: right coast
Distribution: ubuntu and SolusOS A5
Posts: 11

Original Poster
Rep: Reputation: 0
EDIT: here is the complete file. are things as screwed up as I think? thanks.

# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main restricted
# deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release amd64 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric restricted main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates restricted main multiverse universe #Added by software-properties

## 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://us.archive.ubuntu.com/ubuntu/ oneiric universe
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse #Added by software-properties

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu oneiric partner
deb-src http://archive.canonical.com/ubuntu oneiric partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu oneiric main
deb-src http://extras.ubuntu.com/ubuntu oneiric main

deb http://us.archive.ubuntu.com/ubuntu/ oneiric-security main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-security restricted main multiverse universe #Added by software-properties
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-security universe
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-security multiverse
# Remastersys
deb http://www.geekconnection.org/remastersys/repository oneiric

# Tor Project
deb-src http://deb.torproject.org/torproject.org oneiric main
deb http://deb.torproject.org/torproject.org oneiric main

# Inundator
deb http://inundator.sourceforge.net/repo/ oneiric

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates 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.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-backports restricted multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-backports restricted multiverse

deb http://us.archive.ubuntu.com/ubuntu/ oneiric-security restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-security restricted

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu oneiric partner
# deb-src http://archive.canonical.com/ubuntu oneiric partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.

Last edited by kn@cker; 07-06-2012 at 11:21 AM. Reason: comment
 
Old 07-06-2012, 11:31 AM   #15
kn@cker
LQ Newbie
 
Registered: Jul 2012
Location: right coast
Distribution: ubuntu and SolusOS A5
Posts: 11

Original Poster
Rep: Reputation: 0
removed empty line
commented out line 56
ran "sudo apt-get update" and got the same error mssg.

I don't want to drive you nuts but if you get a chance to look at the complete etc/apt/sources.list any help would be appreciated. No rush. email is fine too.
 
  


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
Newish to Linux Marie Townes LinuxQuestions.org Member Intro 0 11-12-2011 09:23 PM
Newish member/Linux Noob - hi to a great gang! bberrign LinuxQuestions.org Member Intro 2 04-26-2006 11:33 PM
Newish to Linux, and to here - Stultiloquent Stultiloquent LinuxQuestions.org Member Intro 4 04-09-2006 06:37 AM
Building newish system for Linux! AMD64 worth it? ChivalricRonin Linux - Hardware 14 12-19-2004 01:35 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 02:27 AM


All times are GMT -5. The time now is 05:44 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