Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running sudo update-manager -d and start the upgrade process. I select upgrade option and when then manager enters Setting new software channels it throws an error.

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.

I have disabled all unofficial and third party packages, I am not running a pre-release version since I am at 13.04 and I am trying to update to beta 2 which is not a pre-release. Before I fill a bug report, since its happening to both of my systems I would like to figure out if anyone else had same issues.

EDIT: added output for comment.

sudo dpkg -l | grep -w "rc"

rc google-chrome-beta 31.0.1650.16-1 amd64 The web browser from Google
ii sysv-rc 2.88dsf-13.10ubuntu15 all System-V-like runlevel change mechanism

cat /etc/apt/sources.list

deb http://dk.archive.ubuntu.com/ubuntu/ raring main restricted
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring main restricted

deb http://dk.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring-updates main restricted

deb http://dk.archive.ubuntu.com/ubuntu/ raring universe
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring universe
deb http://dk.archive.ubuntu.com/ubuntu/ raring-updates universe
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring-updates universe

deb http://dk.archive.ubuntu.com/ubuntu/ raring multiverse
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring multiverse
deb http://dk.archive.ubuntu.com/ubuntu/ raring-updates multiverse
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring-updates multiverse

deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
deb-src http://security.ubuntu.com/ubuntu raring-security multiverse

deb http://extras.ubuntu.com/ubuntu raring main
deb-src http://extras.ubuntu.com/ubuntu raring main
deb http://dk.archive.ubuntu.com/ubuntu/ raring-proposed multiverse universe restricted main

lsb_release -c

Codename: raring

sudo apt-get -y install aptitude && sudo rename 's/\.list$/.list.disable/' /etc/apt/sources.list.d/*.list && sudo aptitude update && aptitude search '?narrow(?installed, !?archive(raring))'

i   dropbox                                                               - cloud synchronization engine - CLI and Nautilus extension                      
i   google-chrome-stable                                                  - The web browser from Google                                                    
i   google-talkplugin                                                     - Google Talk Plugin                                                             
i   libdrm-intel1                                                         - Userspace interface to intel-specific kernel DRM services -- runtime           
i   libdrm-nouveau2                                                       - Userspace interface to nouveau-specific kernel DRM services -- runtime         
i   libdrm-radeon1                                                        - Userspace interface to radeon-specific kernel DRM services -- runtime          
i   libdrm2                                                               - Userspace interface to kernel DRM services -- runtime                          
i   libegl1-mesa                                                          - free implementation of the EGL API -- runtime                                  
i   libegl1-mesa-drivers                                                  - free implementation of the EGL API -- hardware drivers                         
i   libgbm1                                                               - generic buffer management API -- runtime                                       
i   libgl1-mesa-dri                                                       - free implementation of the OpenGL API -- DRI modules                           
i   libgl1-mesa-glx                                                       - free implementation of the OpenGL API -- GLX runtime                           
i   libglapi-mesa                                                         - free implementation of the GL API -- shared library                            
i A libgles2-mesa                                                         - free implementation of the OpenGL|ES 2.x API -- runtime                        
i   libllvm3.3                                                            - Low-Level Virtual Machine (LLVM), runtime library                              
i   libopenvg1-mesa                                                       - free implementation of the OpenVG API -- runtime                               
i   libxatracker1                                                         - X acceleration library -- runtime                                              
i   nodejs                                                                - Node.js event-based server-side javascript engine                              
id  nvidia-persistenced                                                   - Load the NVIDIA kernel driver and create device files                          
id  nvidia-settings-331                                                   - Tool for configuring the NVIDIA graphics driver                                
i   simplescreenrecorder                                                  - A feature-rich screen recorder that supports X11 and OpenGL.                   
i A simplescreenrecorder-lib                                              - A feature-rich screen recorder that supports X11 and OpenGL.                   
i   sublime-text                                                          - Sublime Text is a sophisticated text editor for code, markup and prose         
i   vokoscreen                                                            - easy to use screencast creator                                                 
i   xserver-common                                                        - common files used by various X servers                                         
i   xserver-xorg-core                                                     - Xorg X server - core server                                                    
i   xserver-xorg-input-synaptics                                          - Synaptics TouchPad driver for X.Org server                                     
i   xserver-xorg-video-ati                                                - X.Org X server -- AMD/ATI display driver wrapper                               
i   xserver-xorg-video-cirrus                                             - X.Org X server -- Cirrus display driver                                        
i   xserver-xorg-video-intel                                              - X.Org X server -- Intel i8xx, i9xx display driver                              
i   xserver-xorg-video-mach64                                             - X.Org X server -- ATI Mach64 display driver                                    
i   xserver-xorg-video-nouveau                                            - X.Org X server -- Nouveau display driver                                       
i   xserver-xorg-video-r128                                               - X.Org X server -- ATI r128 display driver                                      
i   xserver-xorg-video-radeon                                             - X.Org X server -- AMD/ATI Radeon display driver                                
i   xserver-xorg-video-vmware                                             - X.Org X server -- VMware display driver        
share|improve this question
I am having the same issue –  zvikara Oct 17 '13 at 18:53
I did have the same issues. I'm actually past that now and in the process of installing on both of my computers too. –  DaShaun Oct 17 '13 at 19:14
It looks like its being caused by propriety video drivers. –  topless Oct 18 '13 at 12:29
Run this command and post the output in your answer after editing: sudo dpkg -l | grep -w "rc" –  Saurav Kumar Oct 18 '13 at 19:17
How it can be duplicate of a question that was asked 2 days later? Its the other way around. –  topless Oct 28 '13 at 9:58
show 5 more comments

9 Answers

This is the command I used to get over my issues:

grep Broken /var/log/dist-upgrade/apt.log

From there you can see which package(s) prevent(s) the upgrade.

share|improve this answer
It looks that I have a big list of xserver-xorg-video-* pacakges that are broken. I am not really sure but I feel like if I start removing them my system will break. Did you manage to remove them successfully? What kind of packages were causing you trouble? –  topless Oct 18 '13 at 12:28
I had to remove the same. The "good" versions came back when the upgrade completed. My upgrade was a success. –  DaShaun Oct 18 '13 at 19:18
add comment

After your system fails to upgrade, check the file /var/log/dist-upgrade/main.log

I found the line:

2013-10-17 15:00:30,543 ERROR Dist-upgrade failed: 'The package 'xubuntu-desktop' is marked for removal but it is in the removal blacklist.'

I manually removed xubuntu-desktop. The upgrade then continued without issue.

share|improve this answer
Is there any way I keep this package and still update? I have postgresql-9.2 and I dont want to remove it. –  asattar Oct 23 '13 at 6:42
you could just re-install it after the upgrade is complete. –  ImaginaryRobots Oct 25 '13 at 16:52
add comment

In my case, the problem was caused by a package that was in hold state. Putting it back to install state resolved the problem.

A possible way to put or remove a package in hold state is using dpkg. First, you get the current state of all packages, and put it into a file:

dpkg --get-selections > myselection

Then, you edit the file and replace install by hold, or vice-versa. Finally, you set the new selection:

sudo dpkg --set-selections < myselection
sudo apt-get update
sudo apt-get upgrade

Other ways are described in How to hold a package back from being upgraded?

share|improve this answer
why don't you tell us how you did it? This is not a complete answer, try describing your steps. How did you find the package and the actions you took. –  topless Oct 22 '13 at 8:43
add comment

Similar issue here. Last few lines in the "main.log" file indicated in the previous post were:

2013-10-17 23:44:38,233 DEBUG blacklist expr 'unity$' matches 'unity'
2013-10-17 23:44:38,233 DEBUG The package 'unity' is marked for removal but it's in the removal blacklist
2013-10-17 23:44:43,585 ERROR Dist-upgrade failed: 'The package 'unity' is marked for removal but it is in the removal blacklist.'
2013-10-17 23:44:43,586 DEBUG abort called
2013-10-17 23:44:43,592 DEBUG openCache()
2013-10-17 23:44:43,592 DEBUG failed to SystemUnLock() (E:Not locked) 
2013-10-17 23:44:46,786 DEBUG /openCache(), new cache size 41453
2013-10-17 23:44:46,786 DEBUG enabling apt cron job

Manually de-installed unity and upgrade now proceeds. Not quite sure what causes this issue in the first place and whether this is truly a good "solution" but I guess I'll find out after the update is completed?!?

share|improve this answer
add comment

Apparently there is a easy way, just add /raring to each package name, like this:

sudo apt-get install dropbox/raring google-chrome-stable/raring google-talkplugin/raring libdrm-intel1/raring libdrm-nouveau2/raring libdrm-radeon1/raring libdrm2/raring libegl1-mesa/raring libegl1-mesa-drivers/raring libgbm1/raring libgl1-mesa-dri/raring libgl1-mesa-glx/raring libglapi-mesa/raring libllvm3.3/raring libopenvg1-mesa/raring libxatracker1/raring nodejsnvidia-persistencednvidia-settings-331/raring simplescreenrecorder/raring sublime-text/raring vokoscreen/raring xserver-common/raring xserver-xorg-core/raring xserver-xorg-input-synaptics/raring xserver-xorg-video-ati/raring xserver-xorg-video-cirrus/raring xserver-xorg-video-intel/raring xserver-xorg-video-mach64/raring xserver-xorg-video-nouveau/raring xserver-xorg-video-r128/raring xserver-xorg-video-radeon/raring xserver-xorg-video-vmware/raring

If it doesn't work, then try the method below.

That was expected, you have several packages that are not from the Ubuntu repositories that are critical for the installation. You should downgrade them, one by one (I haven't found a efficient way to do this) and then attempt the upgrade. I will make one as example:

$ apt-cache policy libdrm2
  Installed: 2.4.43-0ubuntu1.1
  Candidate: 2.4.43-0ubuntu1.1
  Version table:
 *** 2.4.43-0ubuntu1.1 0
        100 /var/lib/dpkg/status
     2.4.43-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ raring/main amd64 Packages

In your case, something like this should appear. You should take note of the version that has a url, in this case 2.4.43-0ubuntu1 that has http://archive.ubuntu.com/ubuntu/, save the pair for later in a text file using the format <package>=<version>.

If you see something like:

  Installed: 1.1.8
  Candidate: 1.1.8
  Version table:
 *** 1.1.8 0
        100 /var/lib/dpkg/status

notice that doesn't have a url, then that package can be removed:

sudo apt-get remove fluxgui

Then you finish your list should looks like:

libdrm2=2.4.43-0ubuntu1 libdrm2=2.4.43-0ubuntu1 libdrm2=2.4.43-0ubuntu1 libdrm2=2.4.43-0ubuntu1 libdrm2=2.4.43-0ubuntu1 libdrm2=2.4.43-0ubuntu1

(again and example, but you might be have an idea)

Once you have your list complete, type sudo apt-get -f install and paste your complete list, so it should looks like:

sudo apt-get -f install libdrm2=2.4.43-0ubuntu1 libdrm2=2.4.43-0ubuntu1 libdrm2=2.4.43-0ubuntu1 libdrm2=2.4.43-0ubuntu1 libdrm2=2.4.43-0ubuntu1 libdrm2=2.4.43-0ubuntu1

If you want to do it somewhat faster, you could use apt-cache policy libdrm2 libgbm1 with several package names.

share|improve this answer
well the first approach didn't resolve the issue, today I will have some time to go through the one by one steps you suggest. It would be nice to provide the command though for reverting the first changes since now it cannot actually apt-get update. –  topless Oct 30 '13 at 10:41
@topless if the first command fail, it means that nothing was done. If apt-get update doesn't work, it means another thing. –  Braiam Oct 30 '13 at 12:24
on apt-get update I get this kind of errors N: Ignoring file 'xorg-edgers-ppa-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension –  topless Oct 30 '13 at 14:02
That's an info/warning, can be ignored, and is expected since we don't want PPA's in the way. –  Braiam Oct 30 '13 at 14:07
add comment

This is the command I used to get over my issues:

grep Broken /var/log/dist-upgrade/apt.log

From there you can see which package(s) prevent(s) the upgrade.

I tried to do the update from 13.04 to 13.10 as well, but I get the following error

2013-10-18 10:23:17,475 ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.'

After running grep Broken /var/log/dist-upgrade/apt.log | wc -l I got 990 lines back (i.e. TONS of broken packages). I tried to remove the broken packages on Synpatic, but it doesn't see them. I tried to restart the computer multiple times after sudo apt-get clean, sudo apt-get autoclean and sudo apt-get purge, but it doesn't help. I tried to run sudo ppa-purge in a loop for all the repositories, but the terminal says those packages don't exist. I even tried to remove all the third-party repositories from the source list, but that doesn't help either.

It may be worth mentioning I'm using AMD binary Xorg driver and kernel module from fglrx-12 (proprietary) for two screens, and I had a bunch of issues before with the fglrx which caused me to install secondary distributions (Gnome and Kubuntu).

Does anyone have any ideas?

share|improve this answer
add comment

If you are using the proprietary AMD/ATI fglrx video drivers, removing the fglrx packages and the xorg video driver will likely fix it:

sudo apt-get remove fglrx fglrx-amdcccle-updates
sudo apt-get remove xserver-xorg-video-ati:amd64

In my case, I had the fglrx drivers installed from the xorg-edgers PPA, and removing those packages cleared up my upgrade. Once the upgrade is complete, you can go through the process of setting up the proprietary drivers again.

share|improve this answer
add comment

I had the same issue but was easily overcome by running the following in terminal:

sudo apt-get remove
sudo apt-get autoremove
share|improve this answer
sudo apt-get remove doesn't do anything. –  guntbert Oct 19 '13 at 19:35
Ahh, but it does list the packages that could be removed with auto remove. :) there is madness to my method. –  seyDoggy Oct 20 '13 at 11:11
So does sudo apt-get autoremove too. –  guntbert Oct 20 '13 at 15:46
add comment

I already answered this a while back if you had done a simple search here before posting the question.

sudo mv /etc/apt/sources.list.d/ /etc/apt/sources.list.d.bak; sudo sed -i 's/raring/saucy/g' /etc/apt/sources.list; sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y; sudo apt-get install -f; sudo aptitude upgrade -y; sudo aptitude dist-upgrade -y; sudo mv /etc/apt/sources.list.d.bak /etc/apt/sources.list.d; sudo sed -i 's/raring/saucy/g' /etc/apt/sources.list.d/*; sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y; sudo apt-get install ubuntu-desktop -y

Done, resolves all issues

share|improve this answer
Please, don't just throw this kind of answers. That procedure is potentially dangerous done without care. –  Braiam Oct 28 '13 at 10:21
Actually no it's not. It's not dangerous at all. The fact that you think it is dangerous means you don't know much about it. I've run it many times in the past and with many people. If you actually read the entire command you can see I have accounted for all possible issues. All the user needs to do is just watch the output of the command. Ubuntu 13.10 has a lot of issues with upgrading, but this fixes everything neatly and conveniently in one long command. I advise you to look into documentation of how 'do-release-upgrade' works, because it is precisely what this command does. –  mmstick Oct 28 '13 at 12:49
@mmstick You can elaborate a bit more on your long command and the issues it resolves, as long as the actual problem and how it tackles it. I see that you are calling multiple times apt-get upgrade and the rest of commands, so maybe again you can split it in line by line, and explain your process and why its working. I don't have the luxury to experiment with high risk, irreversible commands. Thanks for the effort though. We are all here to learn.. –  topless Oct 28 '13 at 14:52
@mmstick, I am looking for your answer, you mentioned a while back and it looks its after my question, so you could have looked a bit better before replying in rude fashion to me and Braiam. –  topless Oct 28 '13 at 14:54
@topless: No, I have just answered many questions like yours, dating as far back as a week BEFORE 13.10 came out, which your question is not that early. –  mmstick Oct 28 '13 at 16:49
show 2 more comments

protected by Community Nov 2 '13 at 8:00

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.