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

Upgrading from 14.04 to 16.04 on 14951 #1247

Closed
HotelCalifornia opened this issue Oct 21, 2016 · 11 comments
Closed

Upgrading from 14.04 to 16.04 on 14951 #1247

HotelCalifornia opened this issue Oct 21, 2016 · 11 comments

Comments

@HotelCalifornia
Copy link

Running sudo do-release-upgrade on build 14951 to upgrade from Ubuntu 14.04 => 16.04 fails

I know this is supposed to work with clean LXSS installs, but I was also under the impression that I should be able to upgrade from within the terminal as well.

The command validates everything, then gets to this stage:

To continue please press [ENTER]

Hit http://archive.ubuntu.com xenial InRelease
Get:1 http://security.ubuntu.com xenial-security InRelease [94.5 kB]
Get:2 http://archive.ubuntu.com xenial-updates InRelease [95.7 kB]
Get:3 http://security.ubuntu.com xenial-security/main amd64 Packages [158 kB]
Hit http://archive.ubuntu.com xenial/main amd64 Packages
Hit http://archive.ubuntu.com xenial/restricted amd64 Packages
Hit http://archive.ubuntu.com xenial/universe amd64 Packages
Hit http://archive.ubuntu.com xenial/multiverse amd64 Packages
Hit http://archive.ubuntu.com xenial/main Translation-en
Hit http://archive.ubuntu.com xenial/multiverse Translation-en
Hit http://archive.ubuntu.com xenial/restricted Translation-en
Hit http://archive.ubuntu.com xenial/universe Translation-en
Get:4 http://archive.ubuntu.com xenial-updates/main amd64 Packages [410 kB]
Get:5 http://security.ubuntu.com xenial-security/restricted amd64 Packages [64 B]
Get:6 http://security.ubuntu.com xenial-security/universe amd64 Packages [51.9 kB]
Get:7 http://security.ubuntu.com xenial-security/multiverse amd64 Packages [1,176 B]
Hit http://security.ubuntu.com xenial-security/main Translation-en
Hit http://security.ubuntu.com xenial-security/multiverse Translation-en
Hit http://security.ubuntu.com xenial-security/restricted Translation-en
Hit http://security.ubuntu.com xenial-security/universe Translation-en
Get:8 http://archive.ubuntu.com xenial-updates/restricted amd64 Packages [64 B]
Get:9 http://archive.ubuntu.com xenial-updates/universe amd64 Packages [345 kB]
Get:10 http://archive.ubuntu.com xenial-updates/multiverse amd64 Packages [5,492 B]
Hit http://archive.ubuntu.com xenial-updates/main Translation-en
Hit http://archive.ubuntu.com xenial-updates/multiverse Translation-en
Hit http://archive.ubuntu.com xenial-updates/restricted Translation-en
Hit http://archive.ubuntu.com xenial-updates/universe Translation-en
Fetched 1,162 kB in 6s (13.1 MB/s)

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done

Calculating the changes

Calculating the changes

Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu

If none of this applies, then please report this bug using the
command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.


Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
=== Command terminated with exit status 1 (Fri Oct 21 13:22:45 2016) ===

lsb_release -a confirms that I am currently running 14.04

What's going on here?

@fpqc
Copy link

fpqc commented Oct 21, 2016

Gotta ask on the Ubuntu forums to see how you can find the package conflicts. Try re-running with verbose enabled, or just do a clean install? You can do lxrun /uninstall without doing /full and it won't delete your user profile.

@HotelCalifornia
Copy link
Author

Doesn't look like there is a verbose mode (yeah really). I'd prefer not to have to do a clean install because then I'd have to make copies of all my configuration files and whatnot, and that's slightly more effort than running a command and waiting ;-)

@fpqc
Copy link

fpqc commented Oct 21, 2016

@HotelCalifornia Idk homie. I'd classify this as an ubuntu problem rather than a WSL problem.

@HotelCalifornia
Copy link
Author

Where do you see there being package conflicts, incidentally?

@fpqc
Copy link

fpqc commented Oct 21, 2016

@HotelCalifornia

An unresolvable problem occurred while calculating the upgrade.

This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu

At least when you break Arch Linux, it has the courtesy to die horribly and spit out logs =O

@therealkenc
Copy link
Collaborator

therealkenc commented Oct 21, 2016

This is a big hammer, but you might try the following. Move your current /etc/sources.list out of the way and replace with below (which I generated with the sources list generator). Then do an update and dist-upgrade (sic). If you run into problems hit it with sudo dpkg --configure -a.

Curious that it didn't take out of the box though. This isn't a package conflict per-se. do-release-upgrade isn't letting you get far enough to cause an actual package conflict.

Or just wipe and start from scratch. Which I'd recommend anyway, because in my experience it takes longer for ubuntu-desktop etc to sort itself out than to just reinstall.

#------------------------------------------------------------------------------#
#                            OFFICIAL UBUNTU REPOS                             #
#------------------------------------------------------------------------------#


###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 
deb http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse 
deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

@HotelCalifornia
Copy link
Author

Thanks, will try that later and report back

@HotelCalifornia
Copy link
Author

I ended up doing a clean reinstall, and to my surprise, the home directory was kept intact.
Thanks everyone!

@sundhaug92
Copy link

sundhaug92 commented Oct 25, 2016 via email

@HotelCalifornia
Copy link
Author

@sundhaug92 This issue was resolved by using a fresh LXSS install. Also, the apt upgrade command doesn't handle distro upgrades.

@alllohaaa
Copy link

I've run into this with 16 to 18 Ubuntu upgrade. sudo apt remove snapd helped me. Solution source

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

5 participants