I'm trying to upgrade Debian stable (Stretch, clean install) to unstable:

apt-get update
apt-get upgrade
apt-get dist-upgrade

But I get this.

I have tried running apt-get -f install and apt-get --fix-broken install, but this also fails.

My /etc/apt/sources.list only has one line:

deb http://ftp.dk.debian.org/debian/ sid main contrib non-free

How do I fix this so I can finish the upgrade? Is there an error in my upgrade procedure?

EDIT: The problem doesn't seem to arise when I install using the nextinst-image instead of the livecd-image.

  • @GeorgeVasiliou I did even though I didn't specify it. – user266553 Jan 26 '18 at 19:32
  • 1
    1. There is no need to run apt-get upgrade before apt-get dist-upgrade. There's no harm in doing so, but it's not necessary. 2. unstable changes constantly and it is not uncommon for there to be specific moments when unstable upgrades don't complete successfully. 3. This is especially true when part of the upgrade involves significant version changes in multiple related packages (like gnome. or kde). 4. Sometimes the "fix" is to wait until the mirror has updated and then try again. Sometimes there will be one or more packages that need to be manually updated (or held. or removed). – cas Jan 27 '18 at 1:26
  • 1
    BTW, I find it best to have sources.list entries for both stable and unstable (and possibly even testing) ,and set the default release in an /etc/apt/apt.conf.d file. e.g. APT::Default-Release "unstable";. apt will use whatever you define there as the default package source unless you override with -t <release>. – cas Jan 27 '18 at 1:29
  • You can manually remove the package which block the system upgrade then install them. – GAD3R Jan 27 '18 at 11:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy