Results 1 to 6 of 6

Thread: Microsoft WSL problems

  1. #1
    Join Date
    Feb 2017
    Beans
    4

    Question Microsoft WSL problems

    Has anyone heard of any problems with updating Microsoft's BASH on Ubuntu on Windows in the past few days? The apt-get is trying to go to archive(or security).ubuntu.com for Xenial updates and it keeps coming back like this:

    Err:1 https://cerebrate.github.io/wsl-translinux xenial InRelease
    Could not resolve host: cerebrate.github.io
    Err:2 http://archive.ubuntu.com/ubuntu xenial InRelease
    Temporary failure resolving 'archive.ubuntu.com'
    Err:3 http://security.ubuntu.com/ubuntu xenial-security InRelease
    Temporary failure resolving 'security.ubuntu.com'
    Err:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
    Temporary failure resolving 'archive.ubuntu.com'
    Err:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
    Temporary failure resolving 'archive.ubuntu.com'
    Reading package lists... Done
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'archive.ubuntu.com'
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dis...ates/InRelease Temporary failure resolving 'archive.ubuntu.com'
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dis...orts/InRelease Temporary failure resolving 'archive.ubuntu.com'
    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...rity/InRelease Temporary failure resolving 'security.ubuntu.com'
    W: Failed to fetch https://cerebrate.github.io/wsl-tran...nial/InRelease Could not resolve host: cerebrate.github.io
    W: Some index files failed to download. They have been ignored, or old ones used instead.

    The thing is I'm on that same pc using Chrome to do this message! This is confusing me badly, so if anyone has a clue please send it to me.

  2. #2
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Microsoft WSL problems

    I have just run sudo apt-get update && sudo apt-get upgrade on WSL
    without errors if that helps.

  3. #3
    Join Date
    Feb 2017
    Beans
    4

    Re: Microsoft WSL problems

    That's what I've been doing. Except that what I showed above is the response I'm getting when I try. I've checked the hosts, host.allow and host.deny files, but they are all empty except for the standard comments on how to use them. What is weird is Windows itself has no problem going there. I can open Chrome and go to http://archive.ubuntu.com and get a page that says "Index of /" and has a ubuntu link on it. So Windows has no problem with it. I open WSL Ubuntu and run the update/upgrade command and "no dice, I can't get there from here". I am seriously confused by this. So if anyone can help by pointing anything out to me, please do!

  4. #4
    Join Date
    Oct 2006
    Beans
    58,286

    Re: Microsoft WSL problems

    Thread moved to the "Windows" forum.

  5. #5
    Join Date
    Feb 2017
    Beans
    4

    Re: Microsoft WSL problems

    Still no luck so I tried doing a wget to mosquitto.org to get a gpg.key. It won't talk to the Internet at all. I uninstalled Ubuntu, turned off WSL, rebooted and did a disk cleanup, turned WSL back on, rebooted and reinstalled Ubuntu. It still won't talk to the Internet. Windows 10 has no problems going anywhere on the Internet but WSL won't work. Is there anyone who has any clue at all as to what's going on? Please?

  6. #6
    Join Date
    Jan 2018
    Beans
    1

    Re: Microsoft WSL problems

    Hi truephoenyx,

    I was able to resolve this issue by going into /etc/resolv.conf [e.g. sudo nano /etc/resolv.conf ] and making sure it had proper nameservers; it should read like:
    nameserver 8.8.8.8
    nameserver 8.8.4.4

    as described in this StackOverflow thread: https://askubuntu.com/questions/8925.../907569#907569

    After that, I was able to apt-get update and apt-get upgrade just fine.
    Last edited by ryandammrose; January 18th, 2018 at 08:06 AM.

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
  •