I'm trying to install mtools with apt-get and get this:


Results 1 to 7 of 7

Thread: I'm trying to install mtools with apt-get and get this:

  1. #1
    Join Date
    Oct 2011
    Posts
    27

    I'm trying to install mtools with apt-get and get this:

    root@jk-desktop:/home/jk# apt-get install mtools
    E: Type 'sudo' is not known on line 52 in source list /etc/apt/sources.list
    E: The list of sources could not be read.

    So I went to line 52 of sources.list and took out sudo. No difference. Same error.

    Is there anything i can do?


    Thank you!

  2. #2
    Join Date
    Sep 2000
    Location
    N California
    Posts
    953
    If you have 52 line in your sources.list file there must be a problem.

    Post your file. A decent file only needs 6 or 7 lines.

  3. #3
    Join Date
    Jun 2002
    Location
    Michigan
    Posts
    876
    My guess would be you copied someone else source.list into yours. Edit your source list with nano, pico or what ever you are happy with, count down to line 52 and omit "sudo" from the string. An entry should look something like this.

    Code:
    deb http://mirrors.kernel.org/debian/ stable main
    deb-src http://mirrors.kernel.org/debian/ stable main
    If your entries do not start with deb or deb-src and look like a url after, it will cause a problem. After you edit your source.list save and exit then as root update your source list with command apt-get update


    hope this helps

  4. #4
    Join Date
    Oct 2011
    Posts
    27
    Quote Originally Posted by teeitup View Post
    If you have 52 line in your sources.list file there must be a problem.

    Post your file. A decent file only needs 6 or 7 lines.

    deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release i386 (20080702.1)]/ hardy main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu/ hardy restricted main #Added by software-properties
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.


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

    ## 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
    ## 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.

    ## 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/ hardy-backports main restricted universe multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-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 hardy partner
    # deb-src http://archive.canonical.com/ubuntu hardy partner

    deb http://us.archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse #Added by software-properties
    deb http://us.archive.ubuntu.com/ubuntu/ hardy main universe restricted multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe multiverse #Added by software-properties
    deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
    deb http://packages.medibuntu.org/hardy free non-free
    deb http://deb.opera.com/opera/ etch non-free
    deb http://deb.opera.com/opera/ etch non-free

    deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu hardy main
    deb-src http://ppa.launchpad.net/tualatrix/ppa/ubuntu hardy main
    apt-get update
    sudo apt-get install ubuntu-tweak
    sudo apt-get dist-upgrade

    Based on what I've learned from yous just now, at least the last 3 lines don' t belong.
    And there are duplicates...
    Anything else I should remove?

    Thank you!

  5. #5
    Join Date
    Oct 2011
    Posts
    27
    Closer inspection showed that apparent deplicates were not.

    And in terminal:

    root@jk-desktop:/home/jk# apt-get install mtools
    E: Type 'apt-get' is not known on line 52 in source list /etc/apt/sources.list
    E: The list of sources could not be read.
    root@jk-desktop:/home/jk#

    deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release i386 (20080702.1)]/ hardy main restricted
    deb-src http://us.archive.ubuntu.com/ubuntu/ hardy restricted main #Added by software-properties
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.


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

    ## 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
    ## 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.

    ## 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/ hardy-backports main restricted universe multiverse
    # deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-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 hardy partner
    # deb-src http://archive.canonical.com/ubuntu hardy partner

    deb http://us.archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse #Added by software-properties
    deb http://us.archive.ubuntu.com/ubuntu/ hardy main universe restricted multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe multiverse #Added by software-properties
    deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
    deb http://packages.medibuntu.org/hardy free non-free
    deb http://deb.opera.com/opera/ etch non-free

    deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu hardy main
    deb-src http://ppa.launchpad.net/tualatrix/ppa/ubuntu hardy main


    Copy and paste showed not the line numbers but line 52 is past the last entry by 2 lines.
    ??

  6. #6
    Join Date
    Sep 1999
    Posts
    3,203
    apt-get update
    sudo apt-get install ubuntu-tweak
    sudo apt-get dist-upgrade

    These don't belong.

    Do something like

    Code:
    grep ^deb /etc/apt/sources.list > /etc/apt/sources.list.new
    mv /etc/apt/sources.list /etc/apt/sources.list.broken
    mv /etc/apt/sources.list.new /etc/apt/sources.list
    Then run your apt-get update

  7. #7
    Join Date
    Oct 2011
    Posts
    27

    Re. broken thingy:

    apt-get update
    sudo apt-get install ubuntu-tweak
    sudo apt-get dist-upgrade

    These don't belong.

    Do something like

    Code:

    grep ^deb /etc/apt/sources.list > /etc/apt/sources.list.new
    mv /etc/apt/sources.list /etc/apt/sources.list.broken
    mv /etc/apt/sources.list.new /etc/apt/sources.list

    Then run your apt-get update
    __________________


    That did it, thanks!!!
    Merry Christmas!

Posting Permissions

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