Duvuan Pi – First Try

This is my first trial of an “update” from a Raspbian Jessie image to a Devuan image on the Pi Model 3.

It was in my “drafts” folder for about a year, and in that time a production release of Devuan for the Raspberry Pi has been made. So now we can just download and install that build. Still, it’s an interesting thing to see what the “Upgrade” from Raspbian process had been.

I’m following directions here:

https://git.devuan.org/dev1fanboy/Upgrade-Install-Devuan/wikis/Upgrade-to-Devuan-and-minimalism

This is a blow by blow:

Edit the /etc/apt config file to point at Devuan Jessie:

root@RaPi_Devuan:/home/pi# cat /etc/debian_version 
8.0
root@RaPi_Devuan:/home/pi# vi /etc/apt/sources.list

The 7.x batch are Wheezy that is SystemD Free and also supposedly can be upgraded to Devuan Jessie.
The 8.x batch is Jessie, and for Debian Jessie, is SystemD afflicted.

You can use any editor you like. I’m “old school” and use vi (vim) some folks like nano… whatever.

After the edit, I’m pointing at devuan.org.

root@RaPi_Devuan:/home/pi# cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi

deb http://packages.devuan.org/merged jessie main

root@RaPi_Devuan:/home/pi# 
root@RaPi_Devuan:/home/pi# apt-get update
Get:1 http://archive.raspberrypi.org jessie InRelease [13.2 kB]
Get:2 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]                                            
Get:3 http://archive.raspberrypi.org jessie/main armhf Packages [117 kB]                                              
Get:4 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,981 kB]
Get:5 http://packages.devuan.org jessie InRelease [108 kB]                    
Ign http://packages.devuan.org jessie InRelease                                                         
Get:6 http://archive.raspberrypi.org jessie/ui armhf Packages [53.6 kB]           
Get:7 http://packages.devuan.org jessie/main armhf Packages [6,648 kB]                   
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB                               
Ign http://archive.raspberrypi.org jessie/main Translation-en                                  
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB                                 
Ign http://archive.raspberrypi.org jessie/ui Translation-en                                    
Ign http://packages.devuan.org jessie/main Translation-en_GB                                                                     
Ign http://packages.devuan.org jessie/main Translation-en                                                                        
Get:8 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]                                                                                   
Get:9 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]                                                                                  
Get:10 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]                                                                                      
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB                                                                                            
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en                                                                                               
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB                                                                                               
Ign http://mirrordirector.raspbian.org jessie/main Translation-en                                                                                                  
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB                                                                                           
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en                                                                                              
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB                                                                                                
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en                                                                                                   
Fetched 16.0 MB in 37s (424 kB/s)                                                                                                                                  
Reading package lists... Done
W: GPG error: http://packages.devuan.org jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 94532124541922FB

Then we install the Devuan key ring:

root@RaPi_Devuan:/home/pi# apt-get install devuan-keyring 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  devuan-keyring
0 upgraded, 1 newly installed, 0 to remove and 338 not upgraded.
Need to get 33.2 kB of archives.
After this operation, 81.9 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  devuan-keyring
Install these packages without verification? [y/N] y
Get:1 http://packages.devuan.org/merged/ jessie/main devuan-keyring all 2016.11.22 [33.2 kB]
Fetched 33.2 kB in 0s (48.9 kB/s)   
Selecting previously unselected package devuan-keyring.
(Reading database ... 130583 files and directories currently installed.)
Preparing to unpack .../devuan-keyring_2016.11.22_all.deb ...
Unpacking devuan-keyring (2016.11.22) ...
Setting up devuan-keyring (2016.11.22) ...
root@RaPi_Devuan:/home/pi#

Now SystemV Init core (who knows if this is a succeed or a fail, it has odd messages, but nothing to compare with at the moment):

root@RaPi_Devuan:/home/pi# apt-get install sysvinit-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  cgmanager libcgmanager0 libpam-systemd libsystemd0 systemd systemd-shim
Suggested packages:
  systemd-ui pm-utils
The following packages will be REMOVED:
  systemd-sysv
The following NEW packages will be installed:
  cgmanager libcgmanager0 systemd-shim sysvinit-core
The following packages will be upgraded:
  libpam-systemd libsystemd0 systemd
3 upgraded, 4 newly installed, 1 to remove and 334 not upgraded.
Need to get 2,668 kB of archives.
After this operation, 690 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
  sysvinit-core
Install these packages without verification? [y/N] y
Get:1 http://packages.devuan.org/merged/ jessie/main sysvinit-core armhf 2.88dsf-59.2+devuan2 [129 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libcgmanager0 armhf 0.33-2+deb8u2 [42.5 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main cgmanager armhf 0.33-2+deb8u2 [71.7 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main systemd-shim armhf 9-1 [16.1 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main libpam-systemd armhf 215-17+deb8u5 [112 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main systemd armhf 215-17+deb8u5 [2,211 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main libsystemd0 armhf 215-17+deb8u5 [84.8 kB]
Fetched 2,668 kB in 3s (877 kB/s)     
Preconfiguring packages ...
Selecting previously unselected package libcgmanager0:armhf.
(Reading database ... 130591 files and directories currently installed.)
Preparing to unpack .../libcgmanager0_0.33-2+deb8u2_armhf.deb ...
Unpacking libcgmanager0:armhf (0.33-2+deb8u2) ...
Selecting previously unselected package cgmanager.
Preparing to unpack .../cgmanager_0.33-2+deb8u2_armhf.deb ...
Unpacking cgmanager (0.33-2+deb8u2) ...
Selecting previously unselected package systemd-shim.
Preparing to unpack .../systemd-shim_9-1_armhf.deb ...
Adding 'diversion of /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd by systemd-shim'
Unpacking systemd-shim (9-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u3) ...
Processing triggers for dbus (1.8.20-0+deb8u1) ...
dpkg: systemd-sysv: dependency problems, but removing anyway as you requested:
 init depends on systemd-sysv | sysvinit-core | upstart; however:
  Package systemd-sysv is to be removed.
  Package sysvinit-core is not installed.
  Package upstart is not installed.
 libpam-systemd:armhf depends on systemd-shim (>= 8-2) | systemd-sysv; however:
  Package systemd-shim is not configured yet.
  Package systemd-sysv is to be removed.

(Reading database ... 130622 files and directories currently installed.)
Removing systemd-sysv (215-17+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Selecting previously unselected package sysvinit-core.
(Reading database ... 130605 files and directories currently installed.)
Preparing to unpack .../sysvinit-core_2.88dsf-59.2+devuan2_armhf.deb ...
Unpacking sysvinit-core (2.88dsf-59.2+devuan2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up sysvinit-core (2.88dsf-59.2+devuan2) ...
Not restarting sysvinit
(Reading database ... 130630 files and directories currently installed.)
Preparing to unpack .../libpam-systemd_215-17+deb8u5_armhf.deb ...
Unpacking libpam-systemd:armhf (215-17+deb8u5) over (215-17+deb8u3) ...
Preparing to unpack .../systemd_215-17+deb8u5_armhf.deb ...
Unpacking systemd (215-17+deb8u5) over (215-17+deb8u3) ...
Preparing to unpack .../libsystemd0_215-17+deb8u5_armhf.deb ...
Unpacking libsystemd0:armhf (215-17+deb8u5) over (215-17+deb8u3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for dbus (1.8.20-0+deb8u1) ...
Setting up libsystemd0:armhf (215-17+deb8u5) ...
Setting up libcgmanager0:armhf (0.33-2+deb8u2) ...
Setting up cgmanager (0.33-2+deb8u2) ...
Setting up systemd-shim (9-1) ...
Setting up systemd (215-17+deb8u5) ...
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
Failed to execute operation: File exists
Setting up libpam-systemd:armhf (215-17+deb8u5) ...
Processing triggers for libc-bin (2.19-18+deb8u3) ...
root@RaPi_Devuan:/home/pi# 

The recipe has us do ‘base files’ yet it finds the newest already there. This is a mild concern:

root@RaPi_Devuan:/home/pi# apt-get install base-files
Reading package lists... Done
Building dependency tree       
Reading state information... Done
base-files is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 334 not upgraded.
root@RaPi_Devuan:/home/pi# 

So it is an insurance step, not usually needed? A changed behaviour of prior steps? A lack of actually getting Devuan? We’ll know when done, maybe…

On the 1 PM hour, starting the ‘dist upgrade’ that they say can take a while. We’ll see on that, too.

365 packages, about 1/3 MB, 1 hour and 20 minutes later, we have:

Setting up libreoffice-sdbc-hsqldb (1:4.3.3-2+rpi4) ...
Setting up libservlet2.5-java (6.0.45+dfsg-1~deb8u1) ...
Setting up libwpd-0.10-10 (0.10.0-2+b1) ...
Setting up lightdm (1.10.3-3+rpi) ...

Configuration file '/etc/lightdm/lightdm.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** lightdm.conf (Y/I/N/O/D/Z) [default=N] ? 
Setting up lsb-release (4.1+devuan2) ...
Setting up lxinput (0.3.4-1+rpi6) ...

I’m skipping the ‘cleanup’ stage for now (since I can do it later and want to know if this worked).

Depending on your connection speed it could take a while, grab yourself a drink.

Once finished you will be using Devuan GNU/Linux 1.

Do some optional cleaning up:

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

root@devuan:~# apt-get autoclean

The first command will remove any ‘orphaned’ dependencies from your previous install including unwanted configurations for those packages. I highly recommend this because it’s good security practice. The second command clears up all cached packages except for those that are installed on the running system, reclaiming a little disk space.

Now you should simply reboot so that you are using the kernel shipped with Devuan:

After that I did a reboot and all was good.

In Conclusion

Now that Debuan has shipped a 1.0 production release for the Pi this is more of historical interest than practical. Still, it is useful for conversions of some other releases on other boards that do not yet have a supported release and it documents what was the process at the start.

Subscribe to feed

Advertisements

About E.M.Smith

A technical managerial sort interested in things from Stonehenge to computer science. My present "hot buttons' are the mythology of Climate Change and ancient metrology; but things change...
This entry was posted in Tech Bits and tagged , , , , . Bookmark the permalink.

Anything to say?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s