Results 1 to 9 of 9

Thread: cannot populate source list

  1. #1
    Join Date
    Jan 2018
    Beans
    6

    cannot populate source list

    Hello,

    I recently installed Ubuntu 16.04, and during an attempt to install Wine I ran into numerous problems with the apt-get command. I have deleted the /etc/apt/sources.list file, reset the sources in Software & Update Gui, and have no other sources in my gui. Currently when I run sudo apt-get I get the following
    Code:
     sudo apt-get update
    Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease              
      Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) [IP: 2001:67c:1562::16 80]
    Err:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease                     
      Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) [IP: 2001:67c:1562::16 80]
    Err:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
      Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) [IP: 2001:67c:1562::16 80]
    Reading package lists... Done
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) [IP: 2001:67c:1562::16 80]
    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) [IP: 2001:67c:1562::16 80]
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) [IP: 2001:67c:1562::16 80]
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    I have looked around a lot for solutions. I have tried change changing the server in the Software & Update gui, and when I close the window it gives me a notification that it fails to update. when i list sources i receive this

    Code:
    cat /etc/apt/sources.list
    deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe restricted multiverse
    deb http://security.ubuntu.com/ubuntu/ xenial-security multiverse restricted universe main
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse restricted universe main
    deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main universe restricted multiverse #Added by software-properties
    Which is notably better than the first time I opened the file and it was empty, however it still isn't working. I have checked into IPv6 settings, as I have read there has been issues with Ubuntu mirrors and IPv6, however I'm not certain the changes I made were correct or taken. I am working online via a mobile hotspot, and have tried connecting through both 2.4ghz and 5ghz settings with no avail. I'm not sure what to do about this. I am new to Ubuntu.

    Thank you

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,938
    Distro
    Ubuntu

    Re: cannot populate source list

    You and try a force ipv4:
    Code:
    sudo apt-get -o Acquire::ForceIPv4=true update
    if that runs smooth then
    Code:
    sudo apt-get -o Acquire::ForceIPv4=true dist-upgrade
    to apply the updates you most likely have.

    For reference see: https://www.vultr.com/docs/force-apt...untu-or-debian
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Jan 2018
    Beans
    6

    Re: cannot populate source list

    I tried to force IPv4, result below

    Code:
    sudo apt-get -o Acquire::ForceIPv4=true update
    Err:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
      Could not connect to us.archive.ubuntu.com:80 (91.189.91.23). - connect (111: Connection refused) [IP: 91.189.91.23 80]
    Err:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
      Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.23 80]
    Err:3 http://security.ubuntu.com/ubuntu xenial-security InRelease
      Could not connect to security.ubuntu.com:80 (91.189.91.26). - connect (111: Connection refused) [IP: 91.189.91.26 80]
    Reading package lists... Done                         
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...nial/InRelease  Could not connect to us.archive.ubuntu.com:80 (91.189.91.23). - connect (111: Connection refused) [IP: 91.189.91.23 80]
    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...rity/InRelease  Could not connect to security.ubuntu.com:80 (91.189.91.26). - connect (111: Connection refused) [IP: 91.189.91.26 80]
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...ates/InRelease  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.23 80]
    W: Some index files failed to download. They have been ignored, or old ones used instead.

  4. #4
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,938
    Distro
    Ubuntu

    Re: cannot populate source list

    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  5. #5
    Join Date
    Jan 2018
    Beans
    6

    Re: cannot populate source list

    Checking that i get the following
    Code:
    ~$ cat /etc/apt/apt.conf
    cat: /etc/apt/apt.conf: No such file or directory
    I don't know if I need to be in a particular directory for this to work. I ran this both normally and with the sudo prefix and nothing changed. Can I create this file?

    ::Edit::

    I created the file via gedit, but left it blank. It opens with both gedit and nano, however addition of the file did not change anything.
    Last edited by azazelazure; January 26th, 2018 at 10:16 PM.

  6. #6
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,938
    Distro
    Ubuntu

    Re: cannot populate source list

    Look in /etc/apt/apt.conf.d directory for any file which might indicate proxy.
    Post what you see of the files in said directory if you don't know what is what.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  7. #7
    Join Date
    Jan 2018
    Beans
    6

    Re: cannot populate source list

    Nothing looks like a proxy.

    Code:
    /etc/apt/apt.conf.d$ ls
    00aptitude            10periodic       50appstream
    00trustcdrom          15update-stamp   50unattended-upgrades
    01autoremove          20archive        70debconf
    01autoremove-kernels  20auto-upgrades  99update-notifier
    01-vendor-ubuntu      20dbus

  8. #8
    Join Date
    Jan 2018
    Beans
    6

    Re: cannot populate source list

    I decided to check the server lists and add a mirror manually from the mirror list. I ran the test for "Select Best Server" and received a notification saying "No suitable download server was found: Please check your internet connection." I am on the network and PC that I'm testing the servers on, so I know my internet works.

  9. #9
    Join Date
    Jan 2018
    Beans
    6

    Re: cannot populate source list

    Fixed. Issue was not with ubuntu, it was with my hotspot. Reset the phone and ubuntu connected to mirrors. Thanks for the help.

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
  •