Results 1 to 5 of 5

Thread: E:Malformed line 52 in source list /etc/apt/sources.list (URI), E:The list of sources

  1. #1
    Join Date
    Aug 2009
    Beans
    3
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    E:Malformed line 52 in source list /etc/apt/sources.list (URI), E:The list of sources

    I am trying to update but when I try to open the Update Manager I get the following error:

    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 52 in source list /etc/apt/sources.list (URI), E:The list of sources could not be read.'

    Please help...

  2. #2
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,479
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: E:Malformed line 52 in source list /etc/apt/sources.list (URI), E:The list of sou

    Looks like you've added something to line 52 of the file '/etc/apt/sources.list' that isn't formed correctly.

    Open up that file as root (put this into the terminal):

    Code:
    gksudo gedit /etc/apt/sources.list
    There's a mistake on or around line 52. All lines must start with "deb", "deb-src" or "#". If you can't see the problem, then copy and paste the contents of the file into a message here and we'll take a look at it.

    If you remove the offending line, you need to save your changes by clicking the Save button at the top of the window and then running this terminal command:

    Code:
    sudo apt-get update
    Then everything will work again properly, assuming the bad line has been removed.

    In future, if you want to add repositories to your system, go into Software Center. Go to the Edit menu and then Software Sources. Use this program to add repositories - it doesn't let you add any malformed lines.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  3. #3
    Join Date
    Aug 2009
    Beans
    3
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: E:Malformed line 52 in source list /etc/apt/sources.list (URI), E:The list of sou

    It looks like I only have 45 lines. What am I missing? Here's the list...

    deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty 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/ lucid main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu/ lucid 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/ lucid-updates main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-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/ lucid universe
    deb http://us.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://us.archive.ubuntu.com/ubuntu/ lucid multiverse
    deb http://us.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
    ## 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/ lucid-backports main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-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 lucid partner
    deb-src http://archive.canonical.com/ubuntu lucid partner

    deb http://security.ubuntu.com/ubuntu lucid-security main restricted
    deb-src http://security.ubuntu.com/ubuntu lucid-security restricted main multiverse universe #Added by software-properties
    deb http://security.ubuntu.com/ubuntu lucid-security universe
    deb http://security.ubuntu.com/ubuntu lucid-security multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ lucid-proposed restricted main multiverse universe
    deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-proposed restricted main multiverse universe #Added by software-properties
    deb http://wine.budgetdedicated.com/apt karmic main #WineHQ - Ubuntu 9.04 "Jaunty Jackalope" disabled on upgrade to karmic
    # Fingerprint reader support (fprint)
    deb
    http://ppa.launchpad.vet/madman2k/ubuntu hardy main restricted universe
    multiverse

  4. #4
    Join Date
    May 2010
    Location
    South Gloucestershire, UK
    Beans
    1,753
    Distro
    Kubuntu 14.10 Utopic Unicorn

    Re: E:Malformed line 52 in source list /etc/apt/sources.list (URI), E:The list of sou

    You have 54 lines if you count the blank ones.

    The following should all be one one line.

    Code:
    deb
    http://ppa.launchpad.vet/madman2k/ubuntu hardy main restricted universe
    multiverse
    Regular contributor to the Ubuntu Weekly Newsletter. Want to help?

  5. #5
    Join Date
    Aug 2009
    Beans
    3
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: E:Malformed line 52 in source list /etc/apt/sources.list (URI), E:The list of sou

    It's working. Thank you for the help!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •