Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo apt update does not work #6127

Closed
nd7141 opened this issue Oct 21, 2020 · 3 comments
Closed

sudo apt update does not work #6127

nd7141 opened this issue Oct 21, 2020 · 3 comments

Comments

@nd7141
Copy link

nd7141 commented Oct 21, 2020

The issue is on the image.

image

I first tried to use pip install but it does not work for any packages (with the same error as here). So I tried to follow advice from there and even sudo apt update does not work.

One thing is that my username sivanov on WSL, while s.ivanov in Windows (due to bash prohibiting dots in usernames).

How can I fix the problem and use pip?

@therealkenc
Copy link
Collaborator

What is the output of:

$ cat /proc/version
$ lsb_release -r
$ ip route
$ ip addr show dev eth0
$ cat /etc/resolv.conf

Also the output of nslookup archive.ubuntu.com, although that is sure to fail.

@nd7141
Copy link
Author

nd7141 commented Oct 21, 2020

(base) sivanov@L45TQVT2:~$ cat /proc/version
Linux version 4.4.0-18362-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #1049-Microsoft Thu Aug 14 12:01:00 PST 2020
(base) sivanov@L45TQVT2:~$ lsb_release -r
Release:        20.04
(base) sivanov@L45TQVT2:~$ ip route
none 224.0.0.0/4 dev eth0 proto unspec metric 256
none 255.255.255.255 dev eth0 proto unspec metric 256
none 224.0.0.0/4 dev eth1 proto unspec metric 256
none 255.255.255.255 dev eth1 proto unspec metric 256
none 127.0.0.0/8 dev lo proto unspec metric 256
none 127.0.0.1 dev lo proto unspec metric 256
none 127.255.255.255 dev lo proto unspec metric 256
none 224.0.0.0/4 dev lo proto unspec metric 256
none 255.255.255.255 dev lo proto unspec metric 256
none default via 192.168.0.1 dev wifi0 proto unspec metric 0
none 192.168.0.0/24 dev wifi0 proto unspec metric 256
none 192.168.0.15 dev wifi0 proto unspec metric 256
none 192.168.0.255 dev wifi0 proto unspec metric 256
none 224.0.0.0/4 dev wifi0 proto unspec metric 256
none 255.255.255.255 dev wifi0 proto unspec metric 256
none 224.0.0.0/4 dev wifi1 proto unspec metric 256
none 255.255.255.255 dev wifi1 proto unspec metric 256
none 224.0.0.0/4 dev wifi2 proto unspec metric 256
none 255.255.255.255 dev wifi2 proto unspec metric 256
(base) sivanov@L45TQVT2:~$
(base) sivanov@L45TQVT2:~$ ip addr show dev eth0
18: eth0: <> mtu 1500 group default qlen 1
    link/ether c8:f7:50:41:e6:85
    inet 169.254.75.24/16 brd 169.254.255.255 scope global dynamic
       valid_lft forever preferred_lft forever
    inet6 fe80::7109:832f:5f5a:4b18/64 scope link dynamic
       valid_lft forever preferred_lft forever
(base) sivanov@L45TQVT2:~$ cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 89.2.0.1
nameserver 89.2.0.2
search numericable.fr
(base) sivanov@L45TQVT2:~$ nslookup archive.ubuntu.com
Server:         89.2.0.1
Address:        89.2.0.1#53

Non-authoritative answer:
Name:   archive.ubuntu.com
Address: 91.189.88.152
Name:   archive.ubuntu.com
Address: 91.189.88.142
Name:   archive.ubuntu.com
Address: 2001:67c:1562::18
Name:   archive.ubuntu.com
Address: 2001:67c:1360:8001::23
Name:   archive.ubuntu.com
Address: 2001:67c:1360:8001::24
Name:   archive.ubuntu.com
Address: 2001:67c:1562::15

@nd7141
Copy link
Author

nd7141 commented Oct 22, 2020

My bad, simple reboot worked (probably due to fresh conda installation).

@nd7141 nd7141 closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants