Results 1 to 6 of 6

Thread: Can't apt-get update

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Beans
    571
    Distro
    Ubuntu 14.04 Trusty Tahr

    Question Can't apt-get update

    Hi, all-

    It's been so long since I've had any trouble with Ubuntu that I can't figure out how to get around this one...

    When I try to update everything (sudo apt-get update), I get the usual pings, followed by the following messages:

    Code:
    Reading package lists... Done
    W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
    W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages)
    W: You may want to run apt-get update to correct these problems
    Any idea how to fix this? I can't find the good old "Software Sources", the Software Center is no help, and peeking at /etc/apt/sources.list, there's no mention of these PPAs anywhere, just the stock Ubuntu sources.

    Thanks in advance for any light you can shed!

    -Mark

  2. #2
    Join Date
    Jul 2011
    Beans
    3,037
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Can't apt-get update


  3. #3
    Join Date
    Jun 2007
    Location
    K-o-T,
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Can't apt-get update

    Open Software Updater and select the System Settings button should open Software Sources

    Good luck
    Hypertension = Take with a pinch of salt
    | Psychocats | Ubuntu Documentation | Howto [Solved] | BBcode list | Brother Website |

  4. #4
    Join Date
    Mar 2012
    Beans
    49

    Re: Can't apt-get update

    Hi, type
    Code:
    sudo editor /etc/apt/sources.list
    , then find the line that's duplicated in you case it should be :
    Code:
    W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
    W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages)
    Delete one of them, depend what release you have. If you using 32bit then delete this one
    Code:
    http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)

  5. #5
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Can't apt-get update

    If it's not in sources.list, it's likely an individual file in the sources.list.d directory.

  6. #6
    Join Date
    Jan 2007
    Location
    Berkshire, UK
    Beans
    30
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Can't apt-get update

    I had the same problem, had installed chrome by doing the following:

    Code:
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
    sudo apt-get update
    sudo apt-get install google-chrome-stable
    After getting the same error I could see that there were 2 files created:

    ll /etc/apt/sources.list.d/google*
    -rw-r--r-- 1 root root 176 Nov 29 11:27 /etc/apt/sources.list.d/google-chrome.list
    -rw-r--r-- 1 root root 55 Nov 29 11:23 /etc/apt/sources.list.d/google.list

    Seemed to both contain the same entry:

    cat /etc/apt/sources.list.d/google-chrome.list
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost.
    deb http://dl.google.com/linux/chrome/deb/ stable main


    cat /etc/apt/sources.list.d/google.list
    deb http://dl.google.com/linux/chrome/deb/ stable main

    Commented out the line as follows and now seems to work okay:
    cat /etc/apt/sources.list.d/google-chrome.list
    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost.
    #deb http://dl.google.com/linux/chrome/deb/ stable main

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
  •