Results 1 to 4 of 4

Thread: E: Malformed line 54 in source list /etc/apt/sources.list (dist parse)

  1. #1
    Join Date
    Jun 2010
    Beans
    15

    E: Malformed line 54 in source list /etc/apt/sources.list (dist parse)

    Hey Guys,

    I have been having some trouble installing the latest version of Firefox (3.6.6). My first command was:
    sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa

    And that went smooth. Then I typed in:
    sudo apt-get update

    This is when I received this error output:

    E: Malformed line 54 in source list /etc/apt/sources.list (dist parse)

    So, I went to the /etc/apt/sources.list file and appended these two line to the end:

    deb http://ppa.launchpad.net/ubuntu-mozi...ily/ppa/ubuntu lucid main
    deb-src http://ppa.launchpad.net/ubuntu-mozi...ily/ppa/ubuntu lucid main

    When I retried the command (sudo apt-get/update), I received the same error message

    Any advice? Thanks in advance! BTW here is the /etc/apt/sources.list file:

    # deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid 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 main restricted

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

    ## 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 main restricted
    deb http://security.ubuntu.com/ubuntu lucid-security universe
    deb-src http://security.ubuntu.com/ubuntu lucid-security universe
    deb http://security.ubuntu.com/ubuntu lucid-security multiverse
    deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
    deb http://archive.canonical.com/lucid partner
    deb http://ppa.launchpad.net/ubuntu-mozi...ily/ppa/ubuntu lucid main
    deb-src http://ppa.launchpad.net/ubuntu-mozi...ily/ppa/ubuntu lucid main


    The red lines are the ones I have appended.




  2. #2
    Join Date
    Jan 2008
    Beans
    7,749

    Re: E: Malformed line 54 in source list /etc/apt/sources.list (dist parse)

    To edit the file:

    Code:
    gksu gedit /etc/apt/sources.list
    Type a # symbol at the beginning of the two malformed lines at the end and save the file. This will "comment out" these lines so Ubuntu skips those repositories and uses the default sources only (which happen to include FF 3.6.6). You should now be able to update your system.
    Last edited by snowpine; July 11th, 2010 at 04:01 PM.

  3. #3
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: E: Malformed line 54 in source list /etc/apt/sources.list (dist parse)

    If you want to keep those lines, make sure the full address is in the line, with no "...".

    deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu lucid main
    deb-src http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu lucid main
    But this is the line with the problem I believe:
    Change it to:
    Last edited by drs305; July 11th, 2010 at 04:04 PM.
    GRUB2

    Retired.

  4. #4
    Join Date
    Jun 2010
    Beans
    15

    Re: E: Malformed line 54 in source list /etc/apt/sources.list (dist parse)

    Worked like a charm! Should of occurred to me to check line 54! Doy!

    Thank you.

Tags for this Thread

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
  •