2
I know I'm not supposed to run do-release-upgrade
in WSL, but I did it anyway. The upgrade itself went without errors, but any attempt to run sudo returns:
sudo: no tty present and no askpass program specified
The output of ls -l /dev
as a regular user:
ls: cannot access 'lxss': Operation not permitted
ls: random: Invalid argument
ls: tty: Invalid argument
ls: tty0: Invalid argument
total 0
drwxr-xr-x 2 root root 0 Aug 15 19:27 block
lrwxrwxrwx 1 root root 13 Aug 15 19:27 fd -> /proc/self/fd
crw------- 1 root root 0, 0 Aug 15 19:32 kmsg
c????????? ? ? ? ? ? lxss
crw-rw-rw- 1 root root 1, 3 Dec 31 1969 null
crw-rw-rw- 0 root tty 5, 2 Aug 15 19:28 ptmx
drwxr-xr-x 0 root root 0 Aug 15 19:27 pts
crw-rw-rw- 1 root root 1, 8 Aug 15 19:32 random
lrwxrwxrwx 1 root root 8 Aug 15 19:27 shm -> /run/shm
lrwxrwxrwx 1 root root 15 Aug 15 19:27 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Aug 15 19:27 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Aug 15 19:27 stdout -> /proc/self/fd/1
crw--w---- 0 me tty 136, 0 Dec 31 1969 tty
crw-rw-rw- 1 root tty 4, 0 Aug 15 2016 tty0
crw------- 1 me tty 4, 1 Aug 15 2016 tty1
crw-rw-rw- 1 root root 1, 9 Aug 15 19:32 urandom
crw-rw-rw- 1 root root 0, 0 Aug 15 19:32 zero
Running as root(using lxrun.exe/setdefaultuser) returns the same thing.
I know I can just reinstall Ubuntu, but I'm still curious as to what might be causing the problem and if there's an easy fix.
Oh- and date
returns Mon Aug 15 19:45:49 DST 2016
, like it should.
Nearly 1 year later: +1, but the above is the best and easiest answer. – Fabby – 2017-10-18T01:53:47.623
Wow. I forgot that I had even asked this. A year later, I'm using OpenSUSE as my main OS with a Windows installation running in KVM for those occasional use cases. However, this answer is what I would've done now had I still been struggling with that problem. – Anton Liakhovitch – 2017-12-21T04:30:24.423