'E:Malformed line 5 in source list /etc/apt/sources.list (URI parse), E:The list of sources could not be read.'

Asked by erickmchaki

Binary package hint: update-manager

An unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

'E:Malformed line 5 in source list /etc/apt/sources.list (URI parse), E:The list of sources could not be read.'

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jean-Baptiste Lallement (jibel) said :
#1

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs#When%20not%20to%20file%20a%20bug.

Revision history for this message
Jean-Baptiste Lallement (jibel) said :
#2

Could you please paste the content of the file /etc/apt/sources.list there seems to be a syntax error on line 5

Revision history for this message
erickmchaki (erickmchaki) said :
#3

--- On Fri, 8/13/10, Jean-Baptiste Lallement <email address hidden> wrote:

From: Jean-Baptiste Lallement <email address hidden>
Subject: Re: [Question #120944]: 'E:Malformed line 5 in source list /etc/apt/sources.list (URI parse), E:The list of sources could not be read.'
To: <email address hidden>
Date: Friday, August 13, 2010, 7:06 AM

        # deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See ht        tp://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions         of the distribution.

deb http        ://tz.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://t        z.archive.ubuntu.com/ubuntu/ lucid main restricted

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

Revision history for this message
erickmchaki (erickmchaki) said :
#4

--- On Fri, 8/13/10, Jean-Baptiste Lallement <email address hidden> wrote:

From: Jean-Baptiste Lallement <email address hidden>
Subject: Re: [Question #120944]: 'E:Malformed line 5 in source list /etc/apt/sources.list (URI parse), E:The list of sources could not be read.'
To: <email address hidden>
Date: Friday, August 13, 2010, 7:06 AM

        # deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See ht        tp://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions         of the distribution.

deb http        ://tz.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://t        z.archive.ubuntu.com/ubuntu/ lucid main restricted

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

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

Please open a Terminal from the menu Applications → Accessories → Terminal and type or copy and paste, one row a time then press enter:

gedit /etc/apt/sources.list

select all file content copy and paste here...

Note: please always use the browser to manage your question do not reply to Launchpad mail messages.

Revision history for this message
Jean-Baptiste Lallement (jibel) said :
#6

The following lines are wrong:

deb http ://tz.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://t z.archive.ubuntu.com/ubuntu/ lucid main restricted

and should be

deb http://tz.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://tz.archive.ubuntu.com/ubuntu/ lucid main restricted

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

So to dress that line...

please open a Terminal from the menu Applications → Accessories → Terminal and type or copy and paste, the row below and press enter:

gksudo gedit /etc/apt/sources.list

the content of the /etc/apt/sources.list file will appear in front of you, modify the content save and exit.

Note: please always use the browser to manage your question do not reply to Launchpad mail messages.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

You cannot add spaces because the fancy takes you. Run:

gksudo gedit /etc/apt/sources.list

and change:

deb http ://tz.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://t z.archive.ubuntu.com/ubuntu/ lucid main restricted

to:

deb http://tz.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://tz.archive.ubuntu.com/ubuntu/ lucid main restricted

Save the file and run:

sudo apt-get update

Revision history for this message
stoiloff (stoiloff-dimitar) said :
#9

Could not initialize the package information

An unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

'E:Malformed line 5 in source list /etc/apt/sources.list (dist)'

stoiloff@stoiloff-TECRA-A9:~$ sudo apt-get update
E: Malformed line 5 in source list /etc/apt/sources.list (dist)
E: The list of sources could not be read.
stoiloff@stoiloff-TECRA-A9:~$

please help me :( - <email address hidden>

Revision history for this message
stoiloff (stoiloff-dimitar) said :
#10

source list

deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ubuntu.linux-bg.org/ubuntu/dists/natty/main/dist-upgrader-all/current/
deb-src http://ubuntu.linux-bg.org/ubuntu/dists/natty/main/debian-installer/binary-i386/

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

deb http://ubuntu.linux-bg.org/ubuntu/natty-security/main/restricted
deb-src http://ubuntu.linux-bg.org/ubuntu/natty-security/main/restricted
deb http://ubuntu.linux-bg.org/ubuntu/natty-security/universe
deb-src http://ubuntu.linux-bg.org/ubuntu/natty-security/universe
deb http://ubuntu.linux-bg.org/ubuntu/natty-security/multiverse
deb-src http://ubuntu.linux-bg.org/ubuntu/natty-security/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/natty/partner
deb-src http://archive.canonical.com/ubuntu/natty/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/dists/natty/main/
deb-src http://extras.ubuntu.com/ubuntu/dists/natty/main/
deb http://www.openfoam.com/download/ubuntu/main
deb http://www.openfoam.com/download/ubuntu/natty/main
deb http://archive.ubuntu.com/ubuntu natty main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu natty universe main multiverse restricted #Added by software-properties
deb http://security.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted
deb-src http://security.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu natty-updates universe main multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu natty-updates universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu natty-proposed universe main multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu natty-proposed universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu natty-backports universe main multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu natty-backports universe main multiverse restricted

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

Can you give the output of:

head -n 5 /etc/apt/sources.list | tail -n 1

Thanks

Revision history for this message
stoiloff (stoiloff-dimitar) said :
#12

i started terminal

paste head -n 5 /etc/apt/sources.list | tail -n 1

- result down

stoiloff@stoiloff-TECRA-A9:~$ head -n 5 /etc/apt/sources.list | tail -n 1
# newer versions of the distribution.
stoiloff@stoiloff-TECRA-A9:~$

best regards

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

Well that's a comment, if you run:

sudo apt-get update

Does it still moan about line 5?

Revision history for this message
stoiloff (stoiloff-dimitar) said :
#14

stoiloff@stoiloff-TECRA-A9:~$ sudo apt-get update
[sudo] password for stoiloff:
E: Malformed line 6 in source list /etc/apt/sources.list (dist)
E: The list of sources could not be read.
stoiloff@stoiloff-TECRA-A9:~$

Revision history for this message
stoiloff (stoiloff-dimitar) said :
#15

stoiloff@stoiloff-TECRA-A9:~$ sudo apt-get update
[sudo] password for stoiloff:
E: Malformed line 6 in source list /etc/apt/sources.list (dist)
E: The list of sources could not be read.
stoiloff@stoiloff-TECRA-A9:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#16

ok what is the output of:

head -n 6 /etc/apt/sources.list | tail -n 1

Thanks

Revision history for this message
stoiloff (stoiloff-dimitar) said :
#17

update manager report:

Could not initialize the package information

An unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

'E:Malformed line 6 in source list /etc/apt/sources.list (dist)'

Can it be reinstalled update manager or synaptic package manager

Ubuntu software center stop working :(

pls help

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#18

Can you give the output of the command I gave please...

Revision history for this message
stoiloff (stoiloff-dimitar) said :
#19
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#20

ok then run;
gksudo gedit /etc/apt/sources.list

Find:
deb http://ubuntu.linux-bg.org/ubuntu/dists/natty/main/dist-upgrader-all/current/

Change it to:
deb http://ubuntu.linux-bg.org/ubuntu/dists/ natty main

Save the new file, close gedit and run:

sudo apt-get update

Is it smooth?

Revision history for this message
stoiloff (stoiloff-dimitar) said :
#21

stoiloff@stoiloff-TECRA-A9:~$ gksudo gedit /etc/apt/sources.list

(gedit:7001): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:7001): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.JU9KXV': No such file or directory

(gedit:7001): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:7001): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.SV3VXV': No such file or directory

(gedit:7001): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
stoiloff@stoiloff-TECRA-A9:~$ sudo apt-get update
E: Malformed line 7 in source list /etc/apt/sources.list (dist)
E: The list of sources could not be read.
stoiloff@stoiloff-TECRA-A9:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#22

head -n 7 /etc/apt/sources.list | tail -n 1

What is output?

Thanks

Can you help with this problem?

Provide an answer of your own, or ask erickmchaki for more information if necessary.

To post a message you must log in.