Sudo apt-get update fail: Malformed line 59


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sudo apt-get update fail: Malformed line 59
# 1  
Old 01-12-2013
Sudo apt-get update fail: Malformed line 59

I am trying to update/add a repository. Whenever I try to do a
Code:
sudo apt-get update

I get the message:
Code:
E: Malformed line 59 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

and when I do:

Code:
gksudo gedit /etc/apt/sources.list

I see the following:
Code:
# deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://cz.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://cz.archive.ubuntu.com/ubuntu/ oneiric main restricted

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

## 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 maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick 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://security.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb http://security.ubuntu.com/ubuntu oneiric-security universe
deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb http://archive.canonical.com/natty partner
deb-src http://archive.canonical.com/natty partner
deb http://archive.canonical.com/ oneiric partner
deb-src http://archive.canonical.com/ oneiric partner
deb http://archive.canonical.com/ oneiric partner
deb-src http://archive.canonical.com/ oneiric partner

Can someone please tell me what is wrong and what I need to do to fix it to do updates and install?
# 2  
Old 01-12-2013
Try commenting the lines with natty.
Code:
deb http://archive.canonical.com/natty partner 
deb-src http://archive.canonical.com/natty partner

Why you have Maverick, Oneiric and Natty in the source list?
Three different distros. Is it intentional?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Apt-get update wont run and gives 503 service unavailable error

Hi, I am running on Ubuntu 12 (precise) 64 bit and came to know that i cannot install any packages using apt-get and aptitude. Linux test01 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux But the same /etc/apt/sources.list file is... (20 Replies)
Discussion started by: prash358
20 Replies

2. AIX

Update error - 7.1 migration builddate fail

Hi all, i have just migrate my aix 6.1 to 7.1. After migration my release is: 7100-00-03-1115 now i try to update to 7100-01-00-1140 but i receive lots of BUILD CHECK DATE FAILED on"mcr.rte" and other packets. +-----------------------------------------------------------------------------+ ... (3 Replies)
Discussion started by: Zio Bill
3 Replies

3. Shell Programming and Scripting

Malformed session key while using Facebook API

Hi, I am doing some experiments with facebook API and unable to update the status using the API. My code is as follow as: use WWW::Facebook::API; use JSON::Any; my $query=new CGI; my $j = JSON::Any->new; my $api_key="#MY API KEY#"; my $secret="#MY SECRET KEY#"; my $fb =... (1 Reply)
Discussion started by: pandeesh
1 Replies

4. UNIX for Dummies Questions & Answers

Reinstall sudo apt-get?

I am using ubuntu11.10 and i was trying to do the update to 12.04, i found a post suggesting to use to solve part of the problem: sudo apt-get remove ubuntu-keyring sudo apt-get --yes -q --allow-unauthenticated install ubuntu-keyringI ran the first command but not able to run the second or any... (0 Replies)
Discussion started by: CS_NA
0 Replies

5. UNIX for Dummies Questions & Answers

Error message of sudo apt-get

Hi, I am using ubuntu 12.04 and every time I installed new program or do: sudo apt-get install -f I get the following mesage: Download done. sha256sum mismatch jdk-7u3-linux-x64.tar.gz Oracle JDK 7 is NOT installed. dpkg: error processing oracle-java7-installer (--configure): subprocess... (2 Replies)
Discussion started by: programAngel
2 Replies

6. Shell Programming and Scripting

Banner causes scp to fail from script but not command line.

Hi, We have an interesting issue which is similar to the one in this thread, but that never provided a full answer. - Ohh apparently I can't post URLs till I have 5 posts, sorry. We have a simple script that copies files from one shelf to the other. Both shelves have an ssh banner defined. ... (3 Replies)
Discussion started by: RECrerar
3 Replies

7. Solaris

Sendmail 8.13.8 malformed address

Sending email produces malformed address error. The domain name appears as the active directory name which is not a valid Internet domain thus the malfomred address error. I have: divert(0)dnl VERSIONID(`@(#)sendmail.mc 1.11 (Sun) 06/21/04') OSTYPE(`solaris8')dnl... (0 Replies)
Discussion started by: crowman
0 Replies

8. UNIX for Dummies Questions & Answers

sudo apt-get install build-essential not working

it asks for password and then following is displayed Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package build-essential what should i do to install g++ compiler? (4 Replies)
Discussion started by: sparkle
4 Replies

9. UNIX for Dummies Questions & Answers

apt-get update not working

Hi all, Till now i was able to do apt-get update. but today i started to the following error: # apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory) E: Unable to lock the list directory # Could any one let me know how to solve it. ... (1 Reply)
Discussion started by: gauri
1 Replies
Login or Register to Ask a Question