The best practice update Debian 10 to 11/12?

Hello,

I believe it is rather straightforward. Upgrade Debian one release at a time using the official way and documentation from Debian, then re-compile every software in DirectAdmin with

Code:
da build all

Should you have question, you know where to find us)
 
I ran through this yesterday as I'm moving my fleet from CentOS 7 to Debian and can confirm that the usual Debian upgrade + step mentioned above was enough to move from 11 to 12.

This was a fresh install with very little cruft and no external apt repos, so take that what you will.
 
BTW, is DA nowadays auto detecting the current OS or has it to be configured in the Client Area?
 
Ok, now what?

Installing new version of config file /etc/logcheck/ignore.d.server/rsyslog ...
Installing new version of config file /etc/logrotate.d/rsyslog ...

Configuration file '/etc/rsyslog.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.
*** rsyslog.conf (Y/I/N/O/D/Z) [default=N] ?


Went with the default = [Enter] The default action is to keep your current version
 
Last edited:
Great! All sorts of issues, like..

Code:
php: error while loading shared libraries: libicuio.so.63: cannot open shared object file: No such file or directory

and

Code:
checking if we're at 64-bit platform... yes
checking for iconv support... yes
configure: error: Please reinstall the iconv library.



Command

$ da build list_removals

gives this:

Code:
old libiconv in /usr/local: custom library might mask system libraries, not needed anymore
    da build remove_old_local libiconv

If you want to remove all the suggested programs above, run: da build remove_items
 
Last edited:
After the removal:
...
Roundcube 1.6.7 has been installed successfully.
php: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
###################################################################################################################
 

Thanks!

Tried the commands but the issue still persist.

I think the issue is the old gcc version still on the system..

Code:
$ lsb_release -d
Description:    Debian GNU/Linux 11 (bullseye)

Code:
$ cat /etc/debian_version
11.9

Code:
$ gcc --version
gcc (Debian 10.2.1-6) 10.2.1 20210110

How to proceed safely with the gcc upgrade?

Should I run: apt-get purge gcc ?

Code:
The following packages will be REMOVED:
  build-essential* g++* gcc*
 
Last edited:
Code:
apt-get upgrade
apt-get update
ldconfig -v
apt-get install build-essential
apt-get update build-essential
/usr/local/directadmin/custombuild/build all

should fixed all possible problem
 
Code:
apt-get upgrade
apt-get update
ldconfig -v
apt-get install build-essential
apt-get update build-essential
/usr/local/directadmin/custombuild/build all

should fixed all possible problem

Thank you!


This seems finally fix all the issues!!
 
Back
Top