The officially official Devuan Forum!

You are not logged in.

#1 2016-12-02 16:36:39

chillfan
Member
Registered: 2016-12-01
Posts: 31

Devuan migration how to

This guide will take you through what is required to upgrade to Devuan. Many of you may be familiar with this already, the only changes here are formatting changes to make it more suitable for posting here.

If you need to install Devuan from a bootable CD, DVD or USB drive please see this page.

Upgrading to Devuan

This document describes how to upgrade to Devuan Jessie from a Debian Wheezy install or migrate from a Debian Jessie install, including installing the new default desktop environment XFCE. It is possible to upgrade as if it was simply the next release of Debian.

Please note that I do not recommend upgrades to the testing or unstable branches at this time. If you decide to migrate one of those branches anyway you should know what you're doing and be prepared to fix any issues that arise.

Supported architectures

At time of writing you can upgrade from the following architectures.

  • amd64

  • armhf

  • armel

  • i386

Target branches

All branches are supported for upgrades and migrations from Debian Wheezy and above.

  • Jessie  (stable)

  • Ascii  (testing)

  • Ceres  (unstable)

Upgrading to Devuan

We need to configure the Devuan repository as the source for packages.

root@debian:~# nano /etc/apt/sources.list

Comment out all lines (everything you have) in the sources.list configuration file and add the Devuan repository. I do not recommend using the jessie-backports repo as they are not Devuanized yet. Substitute jessie for ascii or ceres if you want to migrate to those branches instead.

#deb http://ftp.us.debian.org/debian/ wheezy main
#deb http://ftp.us.debian.org/debian/wheezy-updates main
#deb http://security.debian.org/ wheezy/updates main

deb http://pkgmaster.devuan.org/merged jessie main
deb http://pkgmaster.devuan.org/merged jessie-updates main
deb http://pkgmaster.devuan.org/merged jessie-security main

In order to fetch packages from the devuan repository for upgrades we need to update the package cache using apt-get, and install the Devuan keyring.

root@debian:~# apt-get update && apt-get install devuan-keyring -y --allow-unauthenticated

Now we need to update the package cache once more so that packages will be authenticated from here on in.

root@debian:~# apt-get update -y

It's time to complete the upgrade.

root@debian:~# apt-get dist-upgrade

Installing the desktop environment

I now recommend that you install xfce - the default desktop environment for Devuan.

root@devuan:~# apt-get install xfce4

Installing the slim display manager is also recommended.

root@devuan:~# apt-get install slim

If there are any remaining systemd components you can safely remove these now. If you are a desktop environment that depends on systemd the display manager may be removed as a result and disrupt your x session, so you should pay attention to the next set of instructions before doing this.

root@devuan:~# apt-get purge systemd-shim libsystemd0

If you installed the slim display manager it will start at boot, but you can start it now after logging in as root at a console.

root@devuan:~# /etc/init.d/slim start

Cleaning up

Now that the upgrade is complete and you've installed your new desktop I recommend purging any unused packages left over from your previous Debian install.

root@devuan:~# apt-get autoremove --purge

It's a good time to reclaim some disk space by removing any cached packages that are not installed on the current system.

root@devuan:~# apt-get autoclean

This work is released under the Creative Commons Attribution-ShareAlike 4.0 International [CC BY-SA 4.0]. This documentation is provided "AS IS" and comes with absolutely NO warranty. All trademarks are the property of their respective owners.

Last edited by chillfan (2017-12-02 07:17:34)

Offline

#2 2017-04-15 02:57:41

golinux
Administrator
Registered: 2016-11-25
Posts: 684

Re: Devuan migration how to

Additional information as well as translations from dev1fanboy's (aka chillfan) wiki can now be found at https://devuan.org/os/documentation/dev1fanboy/

Offline

#3 2017-06-03 21:00:12

msi
Member
Registered: 2017-02-04
Posts: 37

Re: Devuan migration how to

chillfan wrote:

This guide will take you through what is required to upgrade to Devuan. Many of you may be familiar with this already, the only changes here are formatting changes to make it more suitable for posting here.

So, where can the original document be found? I'm asking this, so I can link to it on the Howto page of the Devuan documentation outline I've put together at http://wiki.friendsofdevuan.org/doku.ph … n_doc:root.

chillfan wrote:

At time of writing Devuan Jessie has not yet been announced stable, nonetheless it is in a very usable state and it is possible to upgrade now as if it was simply the next release of Debian.

This should be updated (as well as the list of supported architectures?).

chillfan wrote:

First you will need to gain root access at a terminal. Enter your user password when asked.

user@debian:~$ sudo -s

This implies sudo being installed which will not necessarily be the case (I don't have it.). I assume, sudo -s is equivalent to su anyway, so it's probably better to use that.

++ UPDATE ++

golinux pointed me to the source on gitlab. I've now copied that into the wiki and begun to make adjustments: http://wiki.friendsofdevuan.org/doku.ph … rom_debian

Last edited by msi (2017-06-03 23:34:02)

Offline

#4 2017-06-30 02:38:01

rdav
Member
Registered: 2017-06-30
Posts: 2

Re: Devuan migration how to

Hi,

Its not as easy as it seems to migrate from Ubuntu 14.04 to Devuan Jessie.

I followed these steps and got stuck at the step:

root@devuan:~# apt-get install xfce4

when the libstdc++6 and gcc version was stuck on Ubuntu and wouldn't upgrade.

Depends: libstdc++6 (>= 4.9) but 4.8.4-2ubuntu1~14.04.3 is to be installed

So I mounted the install CD, updated sources with apt-cdrom, located the libstdc++6 debs and used dpkg to force the upgrade.

 sudo dpkg --force-depends -r gcc:amd64 gcc-4.8:amd64 gcc-4.8-base:amd64 gcc-4.9-base:i386 lib32gcc1:amd64 libgcc-4.8-dev libgcc1:i386

Did a few cycles of

# apt-get -f install

and

# apt-get dist-upgrade

to clear the errors and was able to install xfce4 and slim.
However, wasn't able to start X and while system booted, was very unusable.
Using apt-show-versions was able to locate 186 debs from Ubuntu which were still in the system.

$ apt-show-versions | grep ubuntu | wc -l 

So used Knoppix to restore from backup.
I'll have another go over the next few days with a different approach.

Maybe some extra steps are required to allow this to go smoothly?

Your advice is appreciated!

Last edited by rdav (2017-06-30 04:23:32)

Offline

#5 2017-06-30 03:44:21

golinux
Administrator
Registered: 2016-11-25
Posts: 684

Re: Devuan migration how to

Ubuntu is NOT Debian. The guide specifically says:

This document describes how to upgrade to Devuan Jessie from a Debian Wheezy install or migrate from a Debian Jessie install . . .

Mixing distros/repos, even those based on Debian, can really screw up a Debian/Devuan install and create a Frankende**an.

Backup your data, do a clean install and import your files.

Offline

#6 2017-07-01 04:05:20

rdav
Member
Registered: 2017-06-30
Posts: 2

Re: Devuan migration how to

golinux

Thanks for the tips, will do as suggested!

cheers

Offline

#7 2017-07-01 04:37:33

golinux
Administrator
Registered: 2016-11-25
Posts: 684

Re: Devuan migration how to

Good luck!  And for others who may want to go down that road . . . here's a quote from the Debian Wiki. The same goes for Devuan, of course:

Don't make a FrankenDebian

Debian Stable should not be combined with other releases. If you're trying to install software that isn't available in the current Debian Stable release, it's not a good idea to add repositories for other Debian releases. The problems might not happen right away, but the next time you install updates.

The reason things can break is because the software packaged for one Debian release is built to be compatible with the rest of the software for that release. For example, installing packages from Jessie on a Wheezy system will also install newer versions of core libraries including glibc. This results in a system that is not Wheezy or Jessie but a broken mix of the two.

Repositories that can create a FrankenDebian if used with Debian Stable:

    Debian testing release (currently stretch)

    Debian unstable release (also known as sid)

    Ubuntu, Mint or other derivative repositories are not compatible with Debian!

    Ubuntu PPAs

Offline

#8 2017-12-02 07:18:30

chillfan
Member
Registered: 2016-12-01
Posts: 31

Re: Devuan migration how to

This should be roughly up to date with the latest version of this on my wiki.

Offline

Board footer