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

do-release-upgrade fails (trusty->xenial) #927

Closed
ghost opened this issue Aug 18, 2016 · 21 comments
Closed

do-release-upgrade fails (trusty->xenial) #927

ghost opened this issue Aug 18, 2016 · 21 comments

Comments

@ghost
Copy link

ghost commented Aug 18, 2016

I completely understand that this is most likely unsupported.
Perhaps there should be an lxss upgrade command instead?

  • A brief description
    do-release-upgrade fails - screen instance exits
  • Expected results
    Ubuntu version inside WSL is upgraded
  • Actual results (with terminal output if applicable)
    [screen is terminating]
  • Your Windows build number
    10.0.14393
  • Steps / commands required to reproduce the error
    sudo do-release-upgrade
  • Strace of the failing command
    do-release-upgrade.strace.gz
  • Required packages and commands to install
    None
@ghost
Copy link
Author

ghost commented Aug 18, 2016

Note that editing /etc/sources.list and running sudo apt-get update && sudo apt-get -y dist-upgrade works as expected breaks sudo!

$ sudo -s
sudo: no tty present and no askpass program specified

@onomatopellan
Copy link

discussion about upgrading to Xenial is here #482 (comment)

The sudo problem was already fixed on latest insider build 14901.

@benhillis
Copy link
Member

We've added support for screen which should be coming in a Insider build soon.

@ConnorVG
Copy link

@benhillis I love you so much for that... ❤️ screen

@ghost
Copy link
Author

ghost commented Aug 18, 2016

Ah, still have to run Insider builds to get new WSL bits... guess that can't be helped. Is this issue a dupe then, @benhillis?

@fpqc
Copy link

fpqc commented Aug 19, 2016

@SRGOM Nope, he said explicitly in another thread that we will not be seeing additional features released to the stable win10 stream. New features (syscalls, more socket support, fixing of bugs related to unimplemented of partially implemented syscalls) will only be available with Windows Insider updates (partly because these updates to the lxss and lxcore drivers can often require corresponding changes to the kernel, which does not generally receive updates from Windows update except during yearly upgrades like the anniversary build).

He did say that bugfixes relating to security and system stability (in many ways related to security) will be pushed with Windows updates to the stable stream.

@dreyks
Copy link

dreyks commented Sep 1, 2016

I've just successfully upgraded to 16.04.1 on build 14915.

Several slightly related remarks:

  • Initially screen did not work for non-root user due to '/var/run/screen': Permission denied. This does not prevent do-release-upgrade as it has to be run as root anyway, but to fix this I used sudo /etc/init.d/screen-cleanup start which hepled
  • How do I reboot ubuntu without rebooting the host machine?

@aseering
Copy link
Contributor

aseering commented Sep 1, 2016

You have to close all windows that are open, but yeah, that should restart it.

@disoardi
Copy link

disoardi commented Oct 5, 2016

I have the same issue with screen program. When I launch the screen command the shell is auto-terminated.
If I have installed screenand I run do-release-upgrade the shell is terminated.
If I uninstall screen I don't have any problem of auto-terminated shell.

@fpqc
Copy link

fpqc commented Oct 5, 2016

@disoardi Did you read the thread? You need to be on the fast-ring insider builds (14936).

@badvision
Copy link

apt uninstall screen

Yeah that worked for me for now. Hate being on the slow ring but can't get out from underneath the heavy group policies on this computer unless I detach it from the company's domain first. Tempting but probably not a good idea. After I upgrade I'll reinstall screen again.

@fpqc
Copy link

fpqc commented Oct 13, 2016

@badvision If you're the admin, just open up gpmc and make a special policy that applies only to your user, then set it to "enforcing".

@jerrydw
Copy link

jerrydw commented Oct 14, 2016

Anyone can explain why the screen is started during the upgrade? Thanks a lot.

@fpqc
Copy link

fpqc commented Oct 14, 2016

@zrdw No idea, Ubuntu is weird. It's probably because if you close the terminal window in (actual) Ubuntu, it will continue to run in the background? I think tmux will work like that, not sure about screen.

@jerrydw
Copy link

jerrydw commented Oct 14, 2016

@fpqc so the win10 ubuntu bash is actually running the screen from the startup(and get killed on upgrade)?

@fpqc
Copy link

fpqc commented Oct 14, 2016

@zrdw No, Screen is like an ancient version of tmux. I'm saying in real ubuntu, if you were doing do-release upgrade , and you accidentally closed your terminal window, it would still continue the upgrade, that is my guess. It would not work like this in Windows.

@danbuche
Copy link

So, essentially, to perform the upgrade on 14393, the easiest steps would be to

  1. sudo apt-get remove screen
  2. sudo do-release-upgrade
  3. (post-upgrade) sudo apt-get install screen

Would that be a fair summary? Outside of the then slightly redundant question of "at what point will we have a fixed up version of lxss that supports screen fully?"?

Sounds like an FAQ item to me - can this be added somewhere?

Trying that out now :)

@bugchecker
Copy link

bugchecker commented Jan 28, 2017

@danbuche There is environment variable which disable using screen without uninstalling it.

# RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade
$ sudo -S RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade

screen will be supported in Creators Update (#774 (comment))

@siran
Copy link

siran commented Apr 21, 2017

@disoardi comment did it for me... I did apt-get purge screen and then could do sudo do-release-upgrade

@arisboch
Copy link

Uninstall snapd, that helps, too (and cleans up the system, as well, because who needs snapd, anyway, right?).

@mnbarinov
Copy link

So, essentially, to perform the upgrade on 14393, the easiest steps would be to

  1. sudo apt-get remove screen
  2. sudo do-release-upgrade
  3. (post-upgrade) sudo apt-get install screen

Would that be a fair summary? Outside of the then slightly redundant question of "at what point will we have a fixed up version of lxss that supports screen fully?"?

Sounds like an FAQ item to me - can this be added somewhere?

Trying that out now :)

sudo apt-get purge snapd

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