Results 1 to 7 of 7

Thread: Problems with repos and apt-get on Ubuntu 12.04.5 CLI

  1. #1
    Join Date
    Dec 2014
    Beans
    17
    Distro
    Ubuntu 12.04 Precise Pangolin

    Post Problems with repos and apt-get on Ubuntu 12.04.5 CLI

    Hello, I have installed Ubuntu 12.04.5 (command line only) on my 2006 Intel Core 2 Duo iMac. I am hoping to run a Plex media server from this machine, but I'm running into problems with my fresh install.

    When I run:
    Code:
    sudo apt-get update
    I get this:

    Code:
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/main/sources/Sources Hash Sum mismatch W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/restricted/source/Sources Hash Sum mismatch W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources Hash Sum mismatch W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/multiverse/source/Sources Hash Sum mismatch W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/main/binary-i386/Packages Hash Sum mismatch* W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages Hash Sum mismatch W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages Hash Sum mismatch* W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-i386/Packages Hash Sum mismatch* E: Some index files failed to download. They have been ignored, or old ones used instead.
    Any idea what is happening and how to fix it?
    Last edited by Irrationalis; December 29th, 2014 at 12:58 AM. Reason: parsing fail

  2. #2
    Join Date
    Feb 2008
    Location
    Land of fire and drought
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Problems with repos and apt-get on Ubuntu 12.04.5 CLI

    Welcome. Please copy the output from the terminal and then put it in code tags. One long line is a little confusing and hard to diagnose.

    The valuable bit of the info is any errors you encounter, which are probably at the end of the output. Thanks.

  3. #3
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Problems with repos and apt-get on Ubuntu 12.04.5 CLI

    There is a sum mismatch on a few of the repositories. What happens when you run

    Code:
    sudo apt-get upgrade
    Do you get a list of packages that will be upgraded? Can the upgrade take place. I have found that the message

    E: Some index files failed to download. They have been ignored, or old ones used instead.
    does not stop an update - upgrade from completing. I run the development release and I see that particular message all the time because the development release does not have all the usual repositories open.

    A "sum mismatch" is another matter. I have never seen that. For how long has this been happening?

    http://ubuntuforums.org/showthread.php?t=2243249

    http://www.linuxquestions.org/questi...ch-4175497785/

    Regards.
    Last edited by grahammechanical; December 28th, 2014 at 11:58 AM.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  4. #4
    Join Date
    Dec 2014
    Beans
    17
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Problems with repos and apt-get on Ubuntu 12.04.5 CLI

    When I run
    Code:
    sudo apt-get upgrade
    I get:
    Code:
    The following packages have been kept back:
    linux-headers-generic-its-trusty linux-image-generic-its-trusty
    0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
    This seems normal, because I'm not running trusty, but when I try to run:
    Code:
    sudo apt-get install openssh-server
    I get:
    Code:
    Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or moved out of Incoming. 
    The following packages have unmet dependencies:
    openssh-server: Depends libwrap0 (>= 7.6-4~) but it is not installable
    Reccomends: ssh-import-id but it is not installable
    E: Unable to correct problems, you have held broken packages.
    This is my second fresh install, this has happened both times from the get-go.

    EDIT: This solved my problem:
    Code:
    apt-get clean
    rm -rf /var/lib/apt/lists/*
    rm -rf /var/lib/apt/lists/partial/*
    apt-get clean
    apt-get update
    apt-get upgrade
    Thanks, Graham!
    Last edited by Irrationalis; December 29th, 2014 at 02:20 AM. Reason: SOLVED!

  5. #5
    Join Date
    Feb 2008
    Location
    Land of fire and drought
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Problems with repos and apt-get on Ubuntu 12.04.5 CLI

    After

    Code:
    sudo apt-get update
    sudo apt-get upgrade
    run

    Code:
    sudo apt-get dist-upgrade

  6. #6
    Join Date
    Feb 2015
    Beans
    1

    Re: Problems with repos and apt-get on Ubuntu 12.04.5 CLI

    thx slove this my problem

  7. #7
    Join Date
    Mar 2015
    Beans
    1

    Re: Problems with repos and apt-get on Ubuntu 12.04.5 CLI

    This problem would go away if the timestamp on the repository for these two files are changed to a date after Jun 23 2014
    ubuntu/
    dists/precise/Release
    ubuntu/dists/precise/Release.gpg


    https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1430648

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
  •