2

I do this to upgrade 15.10 to 16.04:


    $ sudo apt-get update
    $ sudo apt-get dist-upgrade
    $ sudo do-release-upgrade

and after download from xenial repositories, show me this:

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... 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
=== Command detached from window (Sun Apr 24 23:59:43 2016) ===
=== Command terminated with exit status 1 (Sun Apr 24 23:59:53 2016) ===
I reported the bug to ubuntu wbsite.
Any idea to fix this problem and upgrade to 16.04?

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I found this and my problem is solved now :) Try executing:


grep ERROR /var/log/dist-upgrade/main.log

Hopefully this will show you the names of conflicting packages. For me it was (I broken long line to be easier to read):

2014-10-25 18:15:05,915 ERROR Dist-upgrade failed: 
    'The package 'postgresql-9.3-postgis-2.1' 
    is marked for removal but it is in the removal blacklist.

postgresql-9.3-postgis-2.1 is conflicting package here. It will probably be different one or some for you. You can then remove it/them by:

sudo apt-get remove conflicting-package-1 conflicting-package-2 ...

Then just restart distribution upgrade.

inhere

  • Type in lsb_release and uname -a in a terminal and post the output. – ForceMagic Apr 24 '16 at 21:55
  • it show me :ThinkPad-Edge-E540:~$ lsb_release No LSB modules are available.andThinkPad-Edge-E540:~$ uname -a Linux sam-ThinkPad-Edge-E540 4.2.0-36-generic #41-Ubuntu SMP Mon Apr 18 15:49:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux – majid mohamadi Apr 24 '16 at 22:01
  • ...that's weird, it should work! Anyways, just wait for someone cleverer than me cause I'm out of ideas :c – ForceMagic Apr 24 '16 at 22:04
  • The above command doesn't help in my case. I just get: $ grep ERROR /var/log/dist-upgrade/main.log 2016-05-05 10:23:56,869 ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.'

    Hopefully someone can provide more info. Synaptic shows no entries under the 'broken' heading.

    – TenLeftFingers May 05 '16 at 09:39
  • I think you can fix broken packages in "synaptic package manager". – majid mohamadi May 06 '16 at 21:20
  • or use "sudo apt-get install -f" in terminal – majid mohamadi May 07 '16 at 14:40

0 Answers0