The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 16:14:03

deepforest
Member
Registered: 2020-03-24
Posts: 379  

[SOLVED] Upgrade Daedalus to Ceres - error

Did replace daedalus to ceres at sourses.lst

apt full-upgrade

but

Fetched 3,012 MB in 4min 21s (11.5 MB/s)                                                                                                                                                    
Reading changelogs... Done
apt-listchanges: Mailing root: apt-listchanges: news for devuan
Extracting templates from packages: 100%
Preconfiguring packages ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
(Reading database ... 323483 files and directories currently installed.)
Preparing to unpack .../base-files_13.7devuan1_amd64.deb ...

******************************************************************************
*
* The base-files package cannot be installed because
* /bin is a directory, but should be a symbolic link.
*
* Please install the usrmerge package to convert this system to merged-/usr.
*
* For more information please read https://wiki.debian.org/UsrMerge.
*
******************************************************************************

dpkg: error processing archive /var/cache/apt/archives/base-files_13.7devuan1_amd64.deb (--unpack):
 new base-files package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/base-files_13.7devuan1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@devuan:/home/freeartist-devuan# apt full-upgrade

and

root@devuan:/home/freeartist-devuan# apt install usrmerge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-gtk-2.0 libgtk2.0-dev
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  usrmerge
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 13.3 kB of archives.
After this operation, 41.0 kB of additional disk space will be used.
Get:1 http://deb.devuan.org/merged daedalus/main amd64 usrmerge all 37~deb12u1 [13.3 kB]
Fetched 13.3 kB in 0s (34.3 kB/s)   
Selecting previously unselected package usrmerge.
(Reading database ... 323483 files and directories currently installed.)
Preparing to unpack .../usrmerge_37~deb12u1_all.deb ...
Unpacking usrmerge (37~deb12u1) ...
Setting up usrmerge (37~deb12u1) ...

FATAL ERROR:
Both /bin/xdotool and /usr/bin/xdotool exist.

You can try correcting the errors reported and running again
/usr/lib/usrmerge/convert-usrmerge until it will complete without errors.
Do not install or update other Debian packages until the program
has been run successfully.

E: usrmerge failed.
dpkg: error processing package usrmerge (--configure):
 installed usrmerge package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 usrmerge
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@devuan:/home/freeartist-devuan# 

linux/bsd at desktop its sadomazo toy for geeks or nerds with absolutely no warranty and antifool protection © smile

Offline

#2 Yesterday 22:55:42

RedGreen925
Member
Registered: 2024-12-07
Posts: 111  

Re: [SOLVED] Upgrade Daedalus to Ceres - error

I have both and it works fine.

root@9600k:~# ll /bin/xdotool
84 -rwxr-xr-x 1 root root 85376 Apr  6 12:26 /bin/xdotool*
root@9600k:~# ll /usr/bin/xdotool
84 -rwxr-xr-x 1 root root 85376 Apr  6 12:26 /usr/bin/xdotool*

That said it appears only the /usr/bin/xdotool is listed in the package.

root@9600k:~# dpkg -L xdotool
/.
/usr
/usr/bin
/usr/bin/xdotool
/usr/share
/usr/share/doc
/usr/share/doc/xdotool
/usr/share/doc/xdotool/README
/usr/share/doc/xdotool/changelog.Debian.gz
/usr/share/doc/xdotool/changelog.gz
/usr/share/doc/xdotool/copyright
/usr/share/doc/xdotool/examples
/usr/share/doc/xdotool/examples/ffsp.sh
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/xdotool.1.gz

So I would use rm /bin/xdotool as root and see if it will complete once you use the /usr/lib/usrmerge/convert-usrmerge as it suggests after removing the file it complains about.

Once done do the apt autoremove to get rid of the usrmerge it is not needed once done.

root@9600k:~# apt policy usrmerge
usrmerge:
  Installed: (none)
  Candidate: 39+nmu2
  Version table:
     39+nmu2 950
        950 http://de.deb.devuan.org/merged excalibur/main amd64 Packages
        600 http://de.deb.devuan.org/merged unstable/main amd64 Packages

Edit: Though now reading it again and checking it appears it completed almost three years ago for me and the /bin is now the symbolic link it is supposed to be, never seen that problem in my install notes when I check those.

root@9600k:~# ll /
total 2097236
      0 lrwxrwxrwx   1 root root          7 Aug 28  2022 bin -> usr/bin/
snip....

Last edited by RedGreen925 (Yesterday 23:05:33)

Online

#3 Yesterday 23:18:57

greenjeans
Member
Registered: 2017-04-07
Posts: 854  
Website

Re: [SOLVED] Upgrade Daedalus to Ceres - error

Yep.

Best policy: Install usrmerge first before you do anything else. And best to reboot too.

Then switch sources.list to excalibur, update, then upgrade and just let it run, it's gonna be 900+ packages.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded April 2025!
Vuu-do GNU/Linux, minimal Devuan-based Openbox and Mate systems to build on. Also a max version for OB.
Devuan 5 mate-mini iso, pure Devuan, 100% no-vuu-do. wink Devuan 6 version also available for testing.
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#4 Today 03:13:18

deepforest
Member
Registered: 2020-03-24
Posts: 379  

Re: [SOLVED] Upgrade Daedalus to Ceres - error

So I would use rm /bin/xdotool as root and see if it will complete once you use the /usr/lib/usrmerge/convert-usrmerge as it suggests after removing the file it complains about.

Its works!
Thanks a lot to you @RedGreen925 @greenjeans all kind mans:)


linux/bsd at desktop its sadomazo toy for geeks or nerds with absolutely no warranty and antifool protection © smile

Offline

#5 Today 04:09:08

RedGreen925
Member
Registered: 2024-12-07
Posts: 111  

Re: [SOLVED] Upgrade Daedalus to Ceres - error

You are welcome good to see you got it sorted.

Online

#6 Today 16:24:33

chris2be8
Member
Registered: 2018-08-11
Posts: 324  

Re: [SOLVED] Upgrade Daedalus to Ceres - error

I would have started with ls -li /bin/xdotool /usr/bin/xdotool and checked the inode numbers were different. If two files in the same filesystem have the same inode number they are really the same file, possibly hard linked, possibly one part of one path is a link to part of the other path.

Eg if /bin is a symlink to /usr/bin then everthing in one is really the same file as in the other.

I'd also have moved /bin/xdotool to somewhere else in case it really turned out to be needed. Probably after diff /bin/xdotool /usr/bin/xdotool as well.

Online

Board footer