User Tools

Site Tools


informatica:servidor_internet_2009_debian_10_part_1

This is an old revision of the document!


Servidor web/dades

Actualització a Debian 10.12 "buster" - Part 1 - Agost de 2022

Debian 10.12 es va publicar el 26 de març de 2022. Debian 10.0 es va publicar inicialment el 6 de juliol de 2019.

Aquesta pàgina conté la descripció detallada del procés d'actualització a Debian 10.12 “buster”.

Les instruccions i recomanacions per instal·lar Debian 9 “stretch” estan disponibles a:

i les instruccions i recomanacions per actualitzar Debian 9 “stretch” a Debian 10 “buster” estan disponibles a:

Comprovació de l'espai de disc disponible

Comprovo l'espai de disc disponible i veig que la partició root està al 35% i té 1,2 GB disponibles, i que la partició “/usr” està al 31% i té 13 GB disponibles.

# df -hl
Filesystem      Size  Used Avail Use% Mounted on
udev             10M     0   10M   0% /dev
tmpfs           1.6G  108M  1.5G   7% /run
/dev/sda1       1.9G  604M  1.2G  35% /
/dev/sda5        19G  5.2G   13G  31% /usr
tmpfs           3.9G  248K  3.9G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda8       9.1G  4.4G  4.2G  52% /tmp
/dev/sda6       184G  165G  9.1G  95% /var
/dev/sdb1       459G  366G   70G  84% /var/lib/pydio/data
/dev/sda9       237G  206G   19G  92% /home
tmpfs           787M     0  787M   0% /run/user/1001
tmpfs           787M   16K  787M   1% /run/user/1000

Còpies de seguretat

Guardo a /home/sermnadmin/Documents/Upgrade-from-Debian9-to-Debian10 una còpia de seguretat de les següents carpetes i fitxers:

  • /etc → etc
  • /var/lib/dpkg → var-lib-dpkg
  • /var/lib/apt/extended_states → var-lib-apt-extended_states
$ cd Documents/
$ mkdir -p Upgrade-Debian9-to-Debian10/backups
$ cd Upgrade-Debian9-to-Debian10/backups
$ sudo rsync -Hvax /etc .                           
[sudo] password for sermnadmin:                                                           
sending incremental file list                                                                                      
etc/                                                                                                          
etc/.cifs_adminpass_a250auto                                                              
etc/.cifs_adminpass_a250robot                                                                   
etc/.cifs_adminpass_a360                                                                                       
...
etc/xml/xml-core.xml.old
etc/xml/resolver/
etc/xml/resolver/CatalogManager.properties

sent 9,054,899 bytes  received 43,719 bytes  158,236.83 bytes/sec
total size is 8,852,605  speedup is 0.97


$ sudo rsync -Hvax /var/lib/dpkg ./var-lib-dpkg
sending incremental file list
created directory ./var-lib-dpkg
dpkg/
dpkg/available
dpkg/available-old
...
dpkg/triggers/update-initramfs
dpkg/triggers/update-sgmlcatalog
dpkg/updates/

sent 55,211,159 bytes  received 179,654 bytes  1,075,549.77 bytes/sec
total size is 54,469,861  speedup is 0.98


$ cp /var/lib/apt/extended_states ./var-lib-apt-extended_states


$ cd ..
$ dpkg --get-selections "*" > ./dpkg--get-selections.txt

apt-get update

Modifico els fitxers a /etc/apto/sources.d i substitueixo stretch per buster per tal d'emprar els magatzems de la versió 10.

Llavors executo la comanda apt update,

$ sudo apt update
[sudo] password for sermnadmin:
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://ftp.es.debian.org/debian buster InRelease         
Hit:3 http://ftp.es.debian.org/debian buster-updates InRelease
Hit:4 http://ftp.es.debian.org/debian buster-backports InRelease
Reading package lists... Done                     
Building dependency tree       
Reading state information... Done
1739 packages can be upgraded. Run 'apt list --upgradable' to see them.

$ apt list --upgradable                          
Listing... Done                                                                                                       
accountsservice/oldstable 0.6.45-2 amd64 [upgradable from: 0.6.43-1]                                                 
acl/oldstable 2.2.53-4 amd64 [upgradable from: 2.2.52-3+b1]                                         
acpi/oldstable 1.7-1.1 amd64 [upgradable from: 1.7-1+b1]                                     
...
zenity/oldstable 3.30.0-2 amd64 [upgradable from: 3.22.0-1+b1]
zenity-common/oldstable 3.30.0-2 all [upgradable from: 3.22.0-1]
zlib1g/oldstable 1:1.2.11.dfsg-1+deb10u1 amd64 [upgradable from: 1:1.2.8.dfsg-5+deb9u1]

apt-get upgrade

Llavors executo primer la comanda apt-get upgrade per fer una actualització mínima abans de fer la gran actualització de Debian amb la comanda apt full-upgrade.

Primer faig una simulació,

$ apt-get -s upgrade                                                                                                                             
NOTE: This is only a simulation!                                                                                                                                                                                
      apt-get needs root privileges for real execution.                                                                                                                                                      
      Keep also in mind that locking is deactivated,                                                                                                                                                          
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  alsa-base gnupg-l10n gvfs-bin libfile-copy-recursive-perl libgcab-1.0-0 libgcr-3-common libgnome-autoar-common libgom-1.0-common libjavascriptcoregtk-3.0-0 libsane-extras libsane-extras-common
  libwebkitgtk-3.0-0 libxfont1 openbios-ppc openbios-sparc openhackware qemu-efi qemu-slof qemu-system qemu-system-arm qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-user
  qemu-user-binfmt
Use 'apt autoremove' to remove them.
The following packages have been kept back:
  acpid aisleriot alsa-utils apache2 apache2-bin apache2-data apache2-utils apachetop appstream apt apt-listchanges apt-transport-https apt-utils aptitude aptitude-common argyll aspell at atop avahi-daemon
  bash bc bind9-host binutils bluez bluez-obexd bogofilter bogofilter-bdb bogofilter-common brasero brasero-cdrkit brasero-common bsd-mailx bsdmainutils build-essential busybox ca-certificates
  ...
  xfonts-base xfonts-utils xinit xkb-data xml-core xorg-docs-core xserver-common xserver-xorg-input-evdev xserver-xorg-input-libinput xserver-xorg-input-mouse xserver-xorg-input-synaptics                    
  xserver-xorg-input-wacom xserver-xorg-legacy xxd xz-utils yelp-xsl zeitgeist-core zenity zenity-common zlib1g                                                                                                  
975 upgraded, 0 newly installed, 0 to remove and 764 not upgraded.                                                                                                                                          
Inst base-files [9.9+deb9u13] (10.3+deb10u12 Debian:10.12/oldstable [amd64])                                                                                                                                 
Conf base-files (10.3+deb10u12 Debian:10.12/oldstable [amd64])   
...
Conf gnupg-l10n (2.2.12-1+deb10u2 Debian-Security:10/oldstable [all])
Conf intel-microcode (3.20220510.1~deb10u1 Debian-Security:10/oldstable [amd64])
Conf xserver-xorg-legacy (2:1.20.4-1+deb10u5 Debian-Security:10/oldstable [amd64])

i llavors executo la comanda,

$ sudo apt-get upgrade                                                                                                         
Reading package lists... Done                                                                                                                                                                             
Building dependency tree                                                                                                                                                                                      
Reading state information... Done                                                                                                                                                                                
Calculating upgrade... Done                                                                                                                                                                                   
The following packages were automatically installed and are no longer required:                                                                                                                                
  alsa-base gnupg-l10n gvfs-bin libfile-copy-recursive-perl libgcab-1.0-0 libgcr-3-common libgnome-autoar-common libgom-1.0-common libjavascriptcoregtk-3.0-0 libsane-extras libsane-extras-common               
  libwebkitgtk-3.0-0 libxfont1 openbios-ppc openbios-sparc openhackware qemu-efi qemu-slof qemu-system qemu-system-arm qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-user            
  qemu-user-binfmt                                                                                                                                                                                             
Use 'sudo apt autoremove' to remove them.                                                                                                                                                                     
The following packages have been kept back:                                                                                                                                                                  
  acpid aisleriot alsa-utils apache2 apache2-bin apache2-data apache2-utils apachetop appstream apt apt-listchanges apt-transport-https apt-utils aptitude aptitude-common argyll aspell at atop avahi-daemon   
  bash bc bind9-host binutils bluez bluez-obexd bogofilter bogofilter-bdb bogofilter-common brasero brasero-cdrkit brasero-common bsd-mailx bsdmainutils build-essential busybox ca-certificates               
  ...
  xserver-xorg-video-mach64 xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-nouveau xserver-xorg-video-openchrome xserver-xorg-video-qxl xserver-xorg-video-r128 xserver-xorg-video-radeon
  xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-vesa xserver-xorg-video-vmware xterm xwayland yelp
The following packages will be upgraded:                                                                                                                                                                      
  accountsservice acl acpi adduser adwaita-icon-theme alacarte amd64-microcode anacron ant ant-optional apache2-doc apg apt-file apt-show-source apt-show-versions argyll-ref aspell-en at-spi2-core attr
  augeas-lenses autoconf automake automysqlbackup autopoint autotools-dev baobab base-files base-passwd bash-completion bash-doc binfmt-support blt bootlogd bridge-utils bsdutils byobu bzip2                
  ...
  xfonts-base xfonts-utils xinit xkb-data xml-core xorg-docs-core xserver-common xserver-xorg-input-evdev xserver-xorg-input-libinput xserver-xorg-input-mouse xserver-xorg-input-synaptics                    
  xserver-xorg-input-wacom xserver-xorg-legacy xxd xz-utils yelp-xsl zeitgeist-core zenity zenity-common zlib1g                                                                                                  
975 upgraded, 0 newly installed, 0 to remove and 764 not upgraded.                                                                                                                                        
Need to get 304 MB of archives.                                                                                                                                                                              
After this operation, 24.1 MB of additional disk space will be used.                                                                                                                                             
Do you want to continue? [Y/n]             
Get:1 http://security.debian.org buster/updates/main amd64 gzip amd64 1.9-3+deb10u1 [128 kB]
Get:2 http://security.debian.org buster/updates/main amd64 zlib1g amd64 1:1.2.11.dfsg-1+deb10u1 [90.8 kB]
Get:3 http://security.debian.org buster/updates/main amd64 liblzma5 amd64 5.2.4-1+deb10u1 [153 kB]
...
Get:974 http://ftp.es.debian.org/debian buster/main amd64 zenity amd64 3.30.0-2 [275 kB]
Get:975 http://ftp.es.debian.org/debian buster/main amd64 zenity-common all 3.30.0-2 [4,150 kB]
Fetched 304 MB in 2min 28s (2,043 kB/s)
Reading changelogs... Done
apt-listchanges: Mailing root: apt-listchanges: news for sermnserver
Extracting templates from packages: 100%
Preconfiguring packages ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
(Reading database ... 208484 files and directories currently installed.)
Preparing to unpack .../base-files_10.3+deb10u12_amd64.deb ...
Unpacking base-files (10.3+deb10u12) over (9.9+deb9u13) ...
Setting up base-files (10.3+deb10u12) ...
...
Preparing to unpack .../debian-archive-keyring_2019.1+deb10u1_all.deb ...
Unpacking debian-archive-keyring (2019.1+deb10u1) over (2017.5+deb9u2) ...
Setting up debian-archive-keyring (2019.1+deb10u1) ...

Configuration file '/etc/apt/trusted.gpg.d/debian-archive-bullseye-automatic.gpg'
 ==> 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.
*** debian-archive-bullseye-automatic.gpg (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/apt/trusted.gpg.d/debian-archive-bullseye-automatic.gpg ...
Installing new version of config file /etc/apt/trusted.gpg.d/debian-archive-bullseye-security-automatic.gpg ...
Installing new version of config file /etc/apt/trusted.gpg.d/debian-archive-bullseye-stable.gpg ...

Configuration file '/etc/apt/trusted.gpg.d/debian-archive-buster-automatic.gpg'
 ==> 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.
*** debian-archive-buster-automatic.gpg (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/apt/trusted.gpg.d/debian-archive-buster-automatic.gpg ...

Configuration file '/etc/apt/trusted.gpg.d/debian-archive-buster-security-automatic.gpg'
 ==> 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.
*** debian-archive-buster-security-automatic.gpg (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/apt/trusted.gpg.d/debian-archive-buster-security-automatic.gpg ...
Installing new version of config file /etc/apt/trusted.gpg.d/debian-archive-buster-stable.gpg ...
Installing new version of config file /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg ...
Installing new version of config file /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg ...
Installing new version of config file /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg ...
Removing obsolete conffile /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg ...
Removing obsolete conffile /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg ...
...
W: Operation was interrupted before it could finish                                                                                                                                                                
W: APT had planned for dpkg to do more than it reported back (355 vs 4878).                                                                                                                                        
   Affected packages: accountsservice:amd64 acl:amd64 acpi:amd64 adwaita-icon-theme:amd64 alacarte:amd64 amd64-microcode:amd64 anacron:amd64 ant-optional:amd64 ant:amd64 apache2-doc:amd64 apg:amd64 apt-file:amd6
4 apt-show-source:amd64 apt-show-versions:amd64 argyll-ref:amd64 aspell-en:amd64 at-spi2-core:amd64 attr:amd64 augeas-lenses:amd64 autoconf:amd64 automake:amd64 automysqlbackup:amd64 autopoint:amd64 autotools-de

Per algun motiu s'ha interromput la instal·lació, la reinicio de nou:

$ sudo apt-get upgrade                                                                                                         
Reading package lists... Done    
[sudo] password for sermnadmin:                                                                                                                                                                                 
Reading package lists... Done                                                                                                                                                                                   
Building dependency tree                                                                                                                                                                                      
Reading state information... Done                                                                                                                                                                          
Calculating upgrade... Done                                                                                                                                                                                   
The following packages were automatically installed and are no longer required:                                                                                                                                
  alsa-base gnupg-l10n gvfs-bin libfile-copy-recursive-perl libgcab-1.0-0 libgcr-3-common libgnome-autoar-common libgom-1.0-common libjavascriptcoregtk-3.0-0 libsane-extras libsane-extras-common              
  libwebkitgtk-3.0-0 libxfont1 openbios-ppc openbios-sparc openhackware qemu-efi qemu-slof qemu-system qemu-system-arm qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-user            
  qemu-user-binfmt                                                                                                                                                                                         
Use 'sudo apt autoremove' to remove them.                                                                                                                                                                     
The following packages have been kept back:                                                                                                                                                                
  acpid aisleriot alsa-utils apache2 apache2-bin apache2-data apache2-utils apachetop appstream apt apt-listchanges apt-transport-https apt-utils aptitude aptitude-common argyll aspell at atop avahi-daemon   
  bash bc bind9-host binutils bluez bluez-obexd bogofilter bogofilter-bdb bogofilter-common brasero brasero-cdrkit brasero-common bsd-mailx bsdmainutils build-essential busybox ca-certificates               
  ...
  xserver-xorg-video-mach64 xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-nouveau xserver-xorg-video-openchrome xserver-xorg-video-qxl xserver-xorg-video-r128 xserver-xorg-video-radeon
  xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-vesa xserver-xorg-video-vmware xterm xwayland yelp
The following packages will be upgraded:
  accountsservice acpi adwaita-icon-theme alacarte amd64-microcode anacron ant ant-optional apache2-doc apg apt-file apt-show-source apt-show-versions argyll-ref aspell-en at-spi2-core augeas-lenses autoconf
  automake automysqlbackup autopoint autotools-dev baobab bash-completion bash-doc binfmt-support blt bootlogd bridge-utils byobu ca-certificates-java caribou cifs-utils cli-common colord colord-data cpio
  ...
  x11-session-utils x11-xkb-utils xauth xdg-user-dirs xdg-user-dirs-gtk xdg-utils xfonts-base xfonts-utils xinit xml-core xorg-docs-core xserver-common xserver-xorg-input-evdev xserver-xorg-input-libinput
  xserver-xorg-input-mouse xserver-xorg-input-synaptics xserver-xorg-input-wacom xserver-xorg-legacy xxd xz-utils yelp-xsl zeitgeist-core zenity zenity-common
880 upgraded, 0 newly installed, 0 to remove and 764 not upgraded.
60 not fully installed or removed.
Need to get 0 B/281 MB of archives.
After this operation, 23.7 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Reading changelogs... Done
Extracting templates from packages: 100%
Preconfiguring packages ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
(Reading database ... 208379 files and directories currently installed.)
Preparing to unpack .../libdb5.3_5.3.28+dfsg1-0.5_amd64.deb ...
Unpacking libdb5.3:amd64 (5.3.28+dfsg1-0.5) over (5.3.28-12+deb9u1) ...
Setting up libdb5.3:amd64 (5.3.28+dfsg1-0.5) ...
...
Configuration file '/etc/init.d/bootlogd'
 ==> Deleted (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.
*** bootlogd (Y/I/N/O/D/Z) [default=N] ?

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

Configuration file '/etc/init.d/stop-bootlogd-single'
 ==> Deleted (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.
*** stop-bootlogd-single (Y/I/N/O/D/Z) [default=N] ?
...
Setting up cups-browsed (1.21.6-5) ...

Configuration file '/etc/cups/cups-browsed.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.
*** cups-browsed.conf (Y/I/N/O/D/Z) [default=N] ?
...
aspell-autobuildhash: processing: en [en_US-w_accents-only].
aspell-autobuildhash: processing: en [en_US-wo_accents-only].
Processing triggers for systemd (232-25+deb9u14) ...
Processing triggers for ca-certificates (20200601~deb9u2) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
Updating Mono key store
Linux Cert Store Sync - version 4.6.2.0
Synchronize local certs with certs from local Linux trust store.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

I already trust 137, your new list has 137
Import process completed.
Done
done.
Processing triggers for dbus (1.12.20-0+deb10u1) ...
Error org.freedesktop.DBus.Error.FileNotFound: Failed to open "/etc/dbus-1/system.conf": No such file or directory
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.36.5-2+deb9u2) ...
sermnadmin@sermnserver:~/Documents/Upgrade-Debian9-to-Debian10$ ^C

No sé si aquest nou missatge d'error indica que s'ha interromput l'actualització o si ha sorgit un cop completada. Per sortir de dubtes torno a executar la comanda sudo apt-get upgrade.

$ sudo apt-get upgrade
[sudo] password for sermnadmin:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  alsa-base gnupg-l10n gvfs-bin libfile-copy-recursive-perl libgcab-1.0-0 libgcr-3-common libgnome-autoar-common libgom-1.0-common libjavascriptcoregtk-3.0-0 libsane-extras libsane-extras-common
  libwebkitgtk-3.0-0 libxfont1 openbios-ppc openbios-sparc openhackware qemu-efi qemu-slof qemu-system qemu-system-arm qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-user
  qemu-user-binfmt
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  acpid aisleriot alsa-utils apache2 apache2-bin apache2-data apache2-utils apachetop appstream apt apt-listchanges apt-transport-https apt-utils aptitude aptitude-common argyll aspell at atop avahi-daemon
  bash bc bind9-host binutils bluez bluez-obexd bogofilter bogofilter-bdb bogofilter-common brasero brasero-cdrkit brasero-common bsd-mailx bsdmainutils build-essential busybox ca-certificates
  ...
  xserver-xorg-video-mach64 xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-nouveau xserver-xorg-video-openchrome xserver-xorg-video-qxl xserver-xorg-video-r128 xserver-xorg-video-radeon
  xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-vesa xserver-xorg-video-vmware xterm xwayland yelp
0 upgraded, 0 newly installed, 0 to remove and 764 not upgraded.

i el missatge indica que s'ha completat aquesta fase de l'actualització.

Comprovar els nous fitxers de configuració:

  • MiniSSDP
  • Manual restart of display manager
  • bootlogd
  • stop-bootlogd
  • stop-bootlogd-single
  • cups-browsed.conf

i els de l'actualització a Debian 9 “stretch”:

  • nanorc
  • bootlogd
  • stop-bootlogd
  • stop-bootlogd-single
  • sysstat
  • apt.conf.d/50-unattended-upgrades
  • init.d/unattended-upgrades

apt full-upgrade

Finalment executo la comanda apt full-upgrade per actualitzar la resta de paquets i completar la instal·lació de 10.12 “buster”.

Primer faig una simulació:

$ sudo apt-get upgrade                                                                                                                        
[sudo] password for sermnadmin:                                                                                                                                                                                 
Reading package lists... Done                                                                                                                                                                                    
Building dependency tree                                                                                                                                                                                      
Reading state information... Done                                                                                                                                                                              
Calculating upgrade... Done                                                                                                                                                                                      
The following packages were automatically installed and are no longer required:                                                                                                                                
  alsa-base gnupg-l10n gvfs-bin libfile-copy-recursive-perl libgcab-1.0-0 libgcr-3-common libgnome-autoar-common libgom-1.0-common libjavascriptcoregtk-3.0-0 libsane-extras libsane-extras-common              
  libwebkitgtk-3.0-0 libxfont1 openbios-ppc openbios-sparc openhackware qemu-efi qemu-slof qemu-system qemu-system-arm qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-user               
  qemu-user-binfmt                                                                                                                                                                                               
Use 'sudo apt autoremove' to remove them.                                                                                                                                                                     
The following packages have been kept back:                                                                                                                                                                    
  acpid aisleriot alsa-utils apache2 apache2-bin apache2-data apache2-utils apachetop appstream apt apt-listchanges apt-transport-https apt-utils aptitude aptitude-common argyll aspell at atop avahi-daemon   
  bash bc bind9-host binutils bluez bluez-obexd bogofilter bogofilter-bdb bogofilter-common brasero brasero-cdrkit brasero-common bsd-mailx bsdmainutils build-essential busybox ca-certificates               
  ...
  xserver-xorg-video-mach64 xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-nouveau xserver-xorg-video-openchrome xserver-xorg-video-qxl xserver-xorg-video-r128 xserver-xorg-video-radeon
  xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-vesa xserver-xorg-video-vmware xterm xwayland yelp
0 upgraded, 0 newly installed, 0 to remove and 764 not upgraded.

$ sudo apt -s full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  alsa-base bluez-obexd bridge-utils cgmanager cryptsetup-bin dh-python ebtables freerdp-x11 g++-6 gir1.2-gepub-0.4 gir1.2-gnomekeyring-1.0 gir1.2-panelapplet-5.0 gir1.2-tracker-1.0 gir1.2-zeitgeist-2.0
  gnome-bluetooth gnome-themes-standard-data gnome-user-guide gnupg-agent gvfs-bin hamster-applet iputils-arping libart-2.0-2 libass5 libavfilter6 libbind9-140 libblas-common libbonoboui2-0 libbonoboui2-common
  ...
  openhackware php5-mcrypt php7.0-mysql python-gconf python-gnome2 python-ipaddr python-libvirt python-libxml2 python-notify python-pyasn1 python-pyorbit python3-crypto python3-tz python3.5 python3.5-minimal
  qemu-efi qemu-efi-aarch64 qemu-efi-arm qemu-slof qemu-system qemu-system-arm qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-user qemu-user-binfmt qpdf rename seahorse-daemon
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  consolekit gir1.2-git2-glib-1.0 gir1.2-gpaste-6.0 gir1.2-mutter-3.0 gir1.2-networkmanager-1.0 gir1.2-nmgtk-1.0 gir1.2-totem-plparser-1.0 libcupscgi1 libcupsmime1 libcupsppdc1 libcurl3 libgdict-1.0-10
  libgdict-1.0-6 libgdict-common libgjs0e libgnustep-base1.24 libgsl2 libllvm3.9 libmariadbclient18 libmutter0i libpam-ck-connector libreoffice-style-galaxy libsensors4 libtirpc1 libuptimed0
  mariadb-client-10.1 mariadb-client-core-10.1 mariadb-server-10.1 mariadb-server-core-10.1 mysql-server php5-curl php7.0-curl systemd-shim tracker-gui
The following NEW packages will be installed:
  apparmor apt-config-icons arch-test binutils-common binutils-x86-64-linux-gnu bolt bubblewrap chrome-gnome-shell chromium-common chromium-sandbox cpp-8 cups-ipp-utils dwz e2fsprogs-l10n
  evolution-plugin-bogofilter evolution-plugin-pstimport fdisk fonts-liberation2 fonts-quicksand fwupd fwupd-amd64-signed g++-8 gcc-7-base gcc-8 gcc-8-base gedit-plugin-bookmarks
  ...
  python3-libxml2 python3-olefile python3-ply python3-pycryptodome python3-pysmi python3-scour python3.7 python3.7-minimal qemu-efi-aarch64 qemu-efi-arm qemu-system-data qemu-system-gui runit-helper scour sntp  
  sound-icons switcheroo-control thin-provisioning-tools tix tpm2-abrmd tpm2-tools usb.ids xdg-dbus-proxy                                                                                                          
The following packages will be upgraded:                                                                                                                                                                           
  acpid aisleriot alsa-utils apache2 apache2-bin apache2-data apache2-utils apachetop appstream apt apt-listchanges apt-transport-https apt-utils aptitude aptitude-common argyll aspell at atop avahi-daemon      
  bash bc bind9-host binutils bluez bluez-obexd bogofilter bogofilter-bdb bogofilter-common brasero brasero-cdrkit brasero-common bsd-mailx bsdmainutils build-essential busybox ca-certificates                   
  ...
  xserver-xorg-video-mach64 xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-nouveau xserver-xorg-video-openchrome xserver-xorg-video-qxl xserver-xorg-video-r128 xserver-xorg-video-radeon
  xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-vesa xserver-xorg-video-vmware xterm xwayland yelp
763 upgraded, 399 newly installed, 34 to remove and 0 not upgraded.
Inst libcomerr2 [1.43.4-2+deb9u2] (1.44.5-1+deb10u3 Debian:10.12/oldstable [amd64]) []
Inst libcom-err2 (1.44.5-1+deb10u3 Debian:10.12/oldstable [amd64])
...
Conf virtinst (1:2.0.0-3 Debian:10.12/oldstable [all])
Conf w3m (0.5.3-37 Debian:10.12/oldstable [amd64])
Conf xbrlapi (5.6-10+deb10u1 Debian:10.12/oldstable [amd64])

i després executo la comanda:

$ sudo apt -s full-upgrade
Reading package lists... Done                                                                                                                                                                               
Building dependency tree                                                                                                                                                                                  
Reading state information... Done                                                                                                                                                                               
Calculating upgrade... Done                                                                                                                                                                               
The following packages were automatically installed and are no longer required:                                                                                                                          
  alsa-base bluez-obexd bridge-utils cgmanager cryptsetup-bin dh-python ebtables freerdp-x11 g++-6 gir1.2-gepub-0.4 gir1.2-gnomekeyring-1.0 gir1.2-panelapplet-5.0 gir1.2-tracker-1.0 gir1.2-zeitgeist-2.0      
  gnome-bluetooth gnome-themes-standard-data gnome-user-guide gnupg-agent gvfs-bin hamster-applet iputils-arping libart-2.0-2 libass5 libavfilter6 libbind9-140 libblas-common libbonoboui2-0 libbonoboui2-common
  ...
  openhackware php5-mcrypt php7.0-mysql python-gconf python-gnome2 python-ipaddr python-libvirt python-libxml2 python-notify python-pyasn1 python-pyorbit python3-crypto python3-tz python3.5 python3.5-minimal
  qemu-efi qemu-efi-aarch64 qemu-efi-arm qemu-slof qemu-system qemu-system-arm qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-user qemu-user-binfmt qpdf rename seahorse-daemon
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  consolekit gir1.2-git2-glib-1.0 gir1.2-gpaste-6.0 gir1.2-mutter-3.0 gir1.2-networkmanager-1.0 gir1.2-nmgtk-1.0 gir1.2-totem-plparser-1.0 libcupscgi1 libcupsmime1 libcupsppdc1 libcurl3 libgdict-1.0-10
  libgdict-1.0-6 libgdict-common libgjs0e libgnustep-base1.24 libgsl2 libllvm3.9 libmariadbclient18 libmutter0i libpam-ck-connector libreoffice-style-galaxy libsensors4 libtirpc1 libuptimed0
  mariadb-client-10.1 mariadb-client-core-10.1 mariadb-server-10.1 mariadb-server-core-10.1 mysql-server php5-curl php7.0-curl systemd-shim tracker-gui
The following NEW packages will be installed:
  apparmor apt-config-icons arch-test binutils-common binutils-x86-64-linux-gnu bolt bubblewrap chrome-gnome-shell chromium-common chromium-sandbox cpp-8 cups-ipp-utils dwz e2fsprogs-l10n
  evolution-plugin-bogofilter evolution-plugin-pstimport fdisk fonts-liberation2 fonts-quicksand fwupd fwupd-amd64-signed g++-8 gcc-7-base gcc-8 gcc-8-base gedit-plugin-bookmarks
  ...
  python3-libxml2 python3-olefile python3-ply python3-pycryptodome python3-pysmi python3-scour python3.7 python3.7-minimal qemu-efi-aarch64 qemu-efi-arm qemu-system-data qemu-system-gui runit-helper scour sntp
  sound-icons switcheroo-control thin-provisioning-tools tix tpm2-abrmd tpm2-tools usb.ids xdg-dbus-proxy
The following packages will be upgraded:
  acpid aisleriot alsa-utils apache2 apache2-bin apache2-data apache2-utils apachetop appstream apt apt-listchanges apt-transport-https apt-utils aptitude aptitude-common argyll aspell at atop avahi-daemon
  bash bc bind9-host binutils bluez bluez-obexd bogofilter bogofilter-bdb bogofilter-common brasero brasero-cdrkit brasero-common bsd-mailx bsdmainutils build-essential busybox ca-certificates
  ...
  xserver-xorg-video-mach64 xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-nouveau xserver-xorg-video-openchrome xserver-xorg-video-qxl xserver-xorg-video-r128 xserver-xorg-video-radeon
  xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-vesa xserver-xorg-video-vmware xterm xwayland yelp
763 upgraded, 399 newly installed, 34 to remove and 0 not upgraded.
Need to get 1,029 MB of archives.
After this operation, 1,167 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://security.debian.org buster/updates/main amd64 dpkg amd64 1.19.8 [2,210 kB]                                                                                                                         
Get:2 http://ftp.es.debian.org/debian buster/main amd64 libcom-err2 amd64 1.44.5-1+deb10u3 [68.4 kB]                                                                                               
Get:3 http://security.debian.org buster/updates/main amd64 xwayland amd64 2:1.20.4-1+deb10u5 [3,076 kB]                                                                                              
...
Get:1161 http://ftp.es.debian.org/debian buster/main amd64 w3m amd64 0.5.3-37 [1,042 kB]
Get:1162 http://ftp.es.debian.org/debian buster/main amd64 xbrlapi amd64 5.6-10+deb10u1 [135 kB]
Fetched 1,029 MB in 4min 14s (4,040 kB/s)
Reading changelogs... Done
apt-listchanges: Mailing root: apt-listchanges: news for sermnserver
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 209556 files and directories currently installed.)
Preparing to unpack .../libcomerr2_1.44.5-1+deb10u3_amd64.deb ...
Unpacking libcomerr2:amd64 (1.44.5-1+deb10u3) over (1.43.4-2+deb9u2) ...
Selecting previously unselected package libcom-err2:amd64.
...

Installing new version of config file /etc/init.d/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] ?
Setting up binutils-common:amd64 (2.31.1-16) ...
...
Samba server and utilities

A new version (/run/samba/upgrades/smb.conf) of configuration file /etc/samba/smb.conf is available, but the version installed currently has been locally modified.
                     
What do you want to do about modified configuration file smb.conf?
keep the local version currently installed
...
Setting up nano (3.2-3) ...

Configuration file '/etc/nanorc'
 ==> 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.
*** nanorc (Y/I/N/O/D/Z) [default=N] ?
...
Setting up exim4-config (4.92-8+deb10u6) ...
Installing new version of config file /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt ...
Installing new version of config file /etc/exim4/conf.d/acl/40_exim4-config_check_data ...

Configuration file '/etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs'
 ==> 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.
*** 01_exim4-config_listmacrosdefs (Y/I/N/O/D/Z) [default=N] ?
Installing new version of config file /etc/exim4/conf.d/main/02_exim4-config_options ...
Installing new version of config file /etc/exim4/conf.d/router/200_exim4-config_primary ...
...
Setting up sysstat (12.0.3-2) ...
Installing new version of config file /etc/init.d/sysstat ...

Configuration file '/etc/sysstat/sysstat'
 ==> 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.
*** sysstat (Y/I/N/O/D/Z) [default=N] ?
Installing new version of config file /etc/sysstat/sysstat.ioconf ...
Created symlink /etc/systemd/system/multi-user.target.wants/sysstat.service → /lib/systemd/system/sysstat.service.
...
Configuring unattended-upgrades   

A new version (/usr/share/unattended-upgrades/50unattended-upgrades) of configuration file /etc/apt/apt.conf.d/50unattended-upgrades is available, but the version installed currently has been locally modified.

What do you want to do about modified configuration file 50unattended upgrades?
keep the local version currently installed
...
Configuring openssh-server

A new version (/tmp/fileHt46sa) of configuration file /etc/ssh/sshd_config is available, but the version installed currently has been locally modified.
                           
What do you want to do about modified configuration file sshd_config?
keep the local version currently installed

Certificate added: C=CN, O=UniTrust, CN=UCA Extended Validation Root
Certificate added: C=CN, O=UniTrust, CN=UCA Global G2 Root
137 new root certificates were added to your trust store.
Import process completed.
Done
done.
Processing triggers for rygel (0.36.2-4) ...
Processing triggers for spamassassin (3.4.2-1+deb10u3) ...
OK, restarting spamd due to trigger
Processing triggers for sa-compile (3.4.2-1+deb10u3) ...
Running sa-compile (may take a long time)
Processing triggers for systemd (241-7~deb10u8) ...
Processing triggers for libc-bin (2.28-10+deb10u1) ...
Errors were encountered while processing:
 bluez
 pulseaudio-module-bluetooth
 libvirt-daemon-system
E: Sub-process /usr/bin/dpkg returned an error code (1)

Repeteixo la comanda per comprovar si els missatges d'error desapareixen,

$ sudo apt full-upgrade
[sudo] password for sermnadmin:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  alsa-base bluez-obexd bridge-utils cgmanager cryptsetup-bin dh-python ebtables freerdp-x11 g++-6 gir1.2-gepub-0.4 gir1.2-gnomekeyring-1.0 gir1.2-panelapplet-5.0 gir1.2-tracker-1.0 gir1.2-zeitgeist-2.0
  gnome-bluetooth gnome-themes-standard-data gnome-user-guide gnupg-agent gvfs-bin hamster-applet iputils-arping libart-2.0-2 libass5 libavfilter6 libbind9-140 libblas-common libbonoboui2-0 libbonoboui2-common
  ...
  openhackware php5-mcrypt php7.0-mysql python-gconf python-gnome2 python-ipaddr python-libvirt python-libxml2 python-notify python-pyasn1 python-pyorbit python3-crypto python3-tz python3.5 python3.5-minimal
  qemu-efi qemu-efi-aarch64 qemu-efi-arm qemu-slof qemu-system qemu-system-arm qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-user qemu-user-binfmt qpdf rename seahorse-daemon
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up bluez (5.50-1.2~deb10u2) ...
Job for bluetooth.service failed because a timeout was exceeded.
See "systemctl status bluetooth.service" and "journalctl -xe" for details.
invoke-rc.d: initscript bluetooth, action "restart" failed.
● bluetooth.service - Bluetooth service                
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Fri 2022-08-05 14:25:20 CEST; 178ms ago
     Docs: man:bluetoothd(8)
  Process: 7953 ExecStart=/usr/lib/bluetooth/bluetoothd (code=killed, signal=TERM)
 Main PID: 7953 (code=killed, signal=TERM)

Aug 05 14:23:50 sermnserver systemd[1]: Starting Bluetooth service...
Aug 05 14:25:20 sermnserver systemd[1]: bluetooth.service: Start operation timed out. Terminating.
Aug 05 14:25:20 sermnserver systemd[1]: bluetooth.service: Main process exited, code=killed, status=15/TERM
Aug 05 14:25:20 sermnserver systemd[1]: bluetooth.service: Failed with result 'timeout'.
Aug 05 14:25:20 sermnserver systemd[1]: Failed to start Bluetooth service.
dpkg: error processing package bluez (--configure):
 installed bluez package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of pulseaudio-module-bluetooth:
 pulseaudio-module-bluetooth depends on bluez (>= 5.23); however:
  Package bluez is not configured yet.
dpkg: error processing package pulseaudio-module-bluetooth (--configure):
 dependency problems - leaving unconfigured
Setting up libvirt-daemon-system (5.0.0-4+deb10u1) ...
virtlockd.service is a disabled or a static unit, not starting it.
Job for virtlogd-admin.socket failed.
See "systemctl status virtlogd-admin.socket" and "journalctl -xe" for details.
A dependency job for virtlogd.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript virtlogd, action "start" failed.
● virtlogd.service - Virtual machine log manager
   Loaded: loaded (/lib/systemd/system/virtlogd.service; indirect; vendor preset: enabled)
   Active: active (running) since Thu 2022-08-04 23:34:24 CEST; 14h ago
     Docs: man:virtlogd(8)
           https://libvirt.org
 Main PID: 1237 (virtlogd)
    Tasks: 2 (limit: 4915)
   Memory: 2.2M
   CGroup: /system.slice/virtlogd.service
           └─1237 /usr/sbin/virtlogd

Aug 04 23:34:24 sermnserver systemd[1]: Started Virtual machine log manager.
Aug 05 13:40:31 sermnserver systemd[1]: Reloading Virtual machine log manager.
Aug 05 13:40:31 sermnserver systemd[1]: Reloaded Virtual machine log manager.
Aug 05 13:41:03 sermnserver systemd[1]: Dependency failed for Virtual machine log manager.
Aug 05 13:41:03 sermnserver systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result 'dependency'.
Aug 05 14:25:21 sermnserver systemd[1]: Reloading Virtual machine log manager.
Aug 05 14:25:21 sermnserver systemd[1]: Reloaded Virtual machine log manager.
Aug 05 14:25:37 sermnserver systemd[1]: Dependency failed for Virtual machine log manager.
Aug 05 14:25:37 sermnserver systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result 'dependency'.
dpkg: error processing package libvirt-daemon-system (--configure):
 installed libvirt-daemon-system package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 bluez
 pulseaudio-module-bluetooth
 libvirt-daemon-system
E: Sub-process /usr/bin/dpkg returned an error code (1)

Com que l'ordinador no té Bluetooth, desinstal·lo els paquets bluez i pulseaudio-module-bluetooth.

Però primer executo la comanda apt autoremove per eliminar els paquets obsolets i innecessaris,

$ sudo apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  alsa-base bluez-obexd bridge-utils cgmanager cryptsetup-bin dh-python ebtables freerdp-x11 g++-6 gir1.2-gepub-0.4 gir1.2-gnomekeyring-1.0 gir1.2-panelapplet-5.0 gir1.2-tracker-1.0 gir1.2-zeitgeist-2.0
  ...
  qemu-efi qemu-efi-aarch64 qemu-efi-arm qemu-slof qemu-system qemu-system-arm qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-user qemu-user-binfmt qpdf rename seahorse-daemon
0 upgraded, 0 newly installed, 213 to remove and 1 not upgraded.
3 not fully installed or removed.
After this operation, 945 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 227314 files and directories currently installed.)
Removing alsa-base (1.0.27+1) ...
Removing gnome-bluetooth (3.28.2-4~deb10u1) ...
Removing bluez-obexd (5.50-1.2~deb10u2) ...
...
Removing libopencv-core2.4v5:amd64 (2.4.9.1+dfsg1-2+deb9u1) ...
Removing libtbb2:amd64 (2018~U6-4) ...
Removing libwinpr-crt0.1:amd64 (1.1.0~git20140921.1.440916e+dfsg1-13+deb9u4) ...

Al final del procés de neteja ha intentat configurar els paquets amb problemes i han sortit els mateixos missatges d'error (no els he copiat).

Llavors desinstal·lo els paquets bluez i pulseaudio-module-bluetooth

$ sudo apt remove bluez pulseaudio-module-bluetooth
[sudo] password for sermnadmin:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libdw1
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  bluez pulseaudio-module-bluetooth
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
3 not fully installed or removed.
After this operation, 5,144 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 220680 files and directories currently installed.)
Removing pulseaudio-module-bluetooth (12.2-4+deb10u1) ...
Removing bluez (5.50-1.2~deb10u2) ...
Setting up libvirt-daemon-system (5.0.0-4+deb10u1) ...
virtlockd.service is a disabled or a static unit, not starting it.
Job for virtlogd-admin.socket failed.
See "systemctl status virtlogd-admin.socket" and "journalctl -xe" for details.
A dependency job for virtlogd.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript virtlogd, action "start" failed.
● virtlogd.service - Virtual machine log manager
   Loaded: loaded (/lib/systemd/system/virtlogd.service; indirect; vendor preset: enabled)
   Active: active (running) since Thu 2022-08-04 23:34:24 CEST; 15h ago
     Docs: man:virtlogd(8)
           https://libvirt.org
 Main PID: 1237 (virtlogd)
    Tasks: 2 (limit: 4915)
   Memory: 2.2M
   CGroup: /system.slice/virtlogd.service
           └─1237 /usr/sbin/virtlogd

Aug 05 14:25:37 sermnserver systemd[1]: Dependency failed for Virtual machine log manager.
Aug 05 14:25:37 sermnserver systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result 'dependency'.
Aug 05 14:34:03 sermnserver systemd[1]: Reloading Virtual machine log manager.
Aug 05 14:34:03 sermnserver systemd[1]: Reloaded Virtual machine log manager.
Aug 05 14:34:19 sermnserver systemd[1]: Dependency failed for Virtual machine log manager.
Aug 05 14:34:19 sermnserver systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result 'dependency'.
Aug 05 14:57:19 sermnserver systemd[1]: Reloading Virtual machine log manager.
Aug 05 14:57:19 sermnserver systemd[1]: Reloaded Virtual machine log manager.
Aug 05 14:57:34 sermnserver systemd[1]: Dependency failed for Virtual machine log manager.
Aug 05 14:57:34 sermnserver systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result 'dependency'.
dpkg: error processing package libvirt-daemon-system (--configure):
 installed libvirt-daemon-system package post-installation script subprocess returned error exit status 1
Processing triggers for dbus (1.12.20-0+deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
 libvirt-daemon-system
E: Sub-process /usr/bin/dpkg returned an error code (1)

Investigo el problema amb el paquet libvirt-daemon-system i trobo la solució a Problem with libvirt-daemon-system package during Debian upgrade:

  • “The solution is to restart not only virtlogd.service but also virtlogd.socket”
$ sudo systemctl restart virtlogd.service virtlogd.socket                                                                                            

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libdw1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up libvirt-daemon-system (5.0.0-4+deb10u1) ...
virtlockd.service is a disabled or a static unit, not starting it.

Fix Bumblebee problems

El programa Bumblebee (servidor de reserves) dóna diversos errors.

# tail /var/log/apache2/error.log
[Sun Aug 07 12:20:40.886047 2022] [:error] [pid 15212] [client 158.109.48.53:59698] PHP Fatal error:  Call to undefined function mb_detect_encoding() in /opt/bmbee-117/system-inc/php-gettext
/gettext.inc on line 102, referer: http://sermn.uab.cat/wiki/doku.php
[Sun Aug 07 12:47:46.637033 2022] [:error] [pid 15210] [client 66.249.65.129:56948] PHP Fatal error:  Call to undefined function mb_detect_encoding() in /opt/bmbee-117/system-inc/php-gettext
/gettext.inc on line 102

Una consulta a Google indica que aquest error es deu a que no s'ha instal·lat l'extensió de PHP //mbstring// (que no s'instal·la per defecte). Instal·lo l'extensió, reinicio el servidor apache,

# apt search php5* | grep mbstring

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

php-mbstring/buster,now 2:8.1+92+0~20220117.43+debian10~1.gbpe0d14e all [installed,automatic]
php5.6-mbstring/buster 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd amd64
php5.6-mbstring-dbgsym/buster 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd amd64
  debug symbols for php5.6-mbstring
...

# apt install php5.6-mbstring
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  php5.6-mbstring
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 468 kB of archives.
After this operation, 1,514 kB of additional disk space will be used.
Get:1 https://packages.sury.org/php buster/main amd64 php5.6-mbstring amd64 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd [468 kB]
Fetched 468 kB in 0s (2,757 kB/s)   
Selecting previously unselected package php5.6-mbstring.
(Reading database ... 226308 files and directories currently installed.)
Preparing to unpack .../php5.6-mbstring_5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd_amd64.deb ...
Unpacking php5.6-mbstring (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...
Setting up php5.6-mbstring (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...

Creating config file /etc/php/5.6/mods-available/mbstring.ini with new version
Processing triggers for libapache2-mod-php5.6 (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...
Processing triggers for php5.6-cli (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...

# apache2ctl restart

i el problema sembla haver-se resolt, però quan intento crear una reserva surt un nou missatge d'error,

2022-08-07 11:47:50 15798 [Warning] Aborted connection 15798 to db: 'bmbdb117' user: 'sermnadmin' host: 'localhost' (Got timeout reading communication packets)

Una cerca a Google indica que aquest error està relacionat amb la variable "wait_timeout", que té un valor per defecte de 40 segons que podria ser insuficient en el nostre cas.

La solució és assignar un nou valor a aquesta variable a la secció [mysqld] del fitxer de configuració,

# /etc/mysql/mariadb.conf.d
# cp 50-server.cnf 50-server.cnf.BKUP-20220807
# vi 50-server.cnf

i afegir les línies

# diff 50-server.cnf 50-server.cnf.BKUP-20220807
45,53d44
< # * Local Tuning - MCE - 20220807
< #
< # MySQL Got timeout reading communication packets when reading federated table
< # https://dba.stackexchange.com/questions/205398/mysql-got-timeout-reading-communication-packets-when-reading-federated-table
< #
< wait_timeout=3600       # from 40 seconds may reduce handler_rollback count
<
<
< #
73,77c64,68
< slow_query_log_file    = /var/log/mysql/mariadb-slow.log
< long_query_time        = 10
< log_slow_rate_limit    = 1000
< log_slow_verbosity     = query_plan
< log-queries-not-using-indexes
---
> #slow_query_log_file    = /var/log/mysql/mariadb-slow.log
> #long_query_time        = 10
> #log_slow_rate_limit    = 1000
> #log_slow_verbosity     = query_plan
> #log-queries-not-using-indexes

Referències:

Amb aquest canvi, desapareix aquest error, però llavors apareix un de nou,

[Sun Aug 07 16:04:47.456947 2022] [:error] [pid 25390] [client 158.109.48.53:60540] PHP Fatal error:  Call to undefined function T_() in /opt/bmbee-117/inc/db.php on line 46, referer: http:/
/sermn.uab.cat/reserves/index.php?action=book
[Sun Aug 07 16:04:55.344007 2022] [:error] [pid 25403] [client 158.109.48.53:60544] PHP Fatal error:  Call to undefined function T_() in /opt/bmbee-117/inc/db.php on line 46, referer: http:/
/sermn.uab.cat/reserves/index.php?action=book

que sembla indicar que hi ha un problema d'accés a la base de dades, però des de la línia de comandes em puc connectar:

# mariadb bmbdb117 -u sermnadmin -p 
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 670
Server version: 10.3.34-MariaDB-0+deb10u1 Debian 10

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [bmbdb117]> show tables;
+---------------------------+
| Tables_in_bmbdb117        |
+---------------------------+
| ACTIVE_USERS              |
| bookings                  |
| consumables               |
| consumables_use           |
| costs                     |
| groups                    |
| instrumentclass           |
| instruments               |
| permissions               |
| permissions.BKUP-20210517 |
| permissions.BKUP-20210607 |
| permissions.BKUP-20211215 |
| projectgroups             |
| projectrates              |
| projects                  |
| roleusers                 |
| userclass                 |
| usergroups                |
| userprojects              |
| users                     |
| users.BKUP-20210914       |
+---------------------------+
21 rows in set (0.000 sec)

MariaDB [bmbdb117]> describe bookings ;
+------------+----------------------+------+-----+---------+----------------+
| Field      | Type                 | Null | Key | Default | Extra          |
+------------+----------------------+------+-----+---------+----------------+
| id         | int(10) unsigned     | NO   | PRI | NULL    | auto_increment |
| bookwhen   | datetime             | NO   |     | NULL    |                |
| duration   | time                 | NO   |     | NULL    |                |
| instrument | smallint(5) unsigned | NO   |     | NULL    |                |
| bookedby   | smallint(5) unsigned | NO   |     | NULL    |                |
| userid     | smallint(5) unsigned | NO   |     | NULL    |                |
| projectid  | smallint(5) unsigned | NO   |     | NULL    |                |
| discount   | float                | YES  |     | 0       |                |
| ip         | char(16)             | YES  |     | NULL    |                |
| comments   | text                 | YES  |     | NULL    |                |
| log        | text                 | YES  |     | NULL    |                |
| deleted    | tinyint(1)           | YES  |     | 0       |                |
+------------+----------------------+------+-----+---------+----------------+
12 rows in set (0.001 sec)

MariaDB [bmbdb117]> quit;
Bye

Per eliminar l'error associat a la funció “T_(”, l'elimino provisionalment del codi,

# diff db.php db.php.BKUP-20220807
46c46
<   $errmsg  = sprintf(('<p>Sorry, I couldn\'t connect to the database, so there\'s nothing I can presently do. This could be due to a booking system misconfiguration, or a failure of the da
tabase subsystem.</p><p>If this persists, please contact the <a href="mailto:%s">booking system administrator</a>.</p>'), $conf->AdminEmail);
---
>   $errmsg  = sprintf(T_('<p>Sorry, I couldn\'t connect to the database, so there\'s nothing I can presently do. This could be due to a booking system misconfiguration, or a failure of the 
database subsystem.</p><p>If this persists, please contact the <a href="mailto:%s">booking system administrator</a>.</p>'), $conf->AdminEmail);

intento crear una reserva sense èxit, i comprovo el missatge d'error al registre de MariaDB:

2022-08-07 18:36:08 590 [Warning] Aborted connection 590 to db: 'bmbdb117' user: 'sermnadmin' host: 'localhost' (Got an error reading communication packets)

Una consulta a Google indica que aquest error té relació amb la variable [[https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_max_allowed_packet | max_allowed_packet.

Per intentar resoldre l'error, incremento el valor de la variable,

# diff 50-server.cnf 50-server.cnf.BKUP-20220807
34c34
< max_allowed_packet     = 64M
---
> #max_allowed_packet     = 16M
45,53d44
< # * Local Tuning - MCE - 20220807
< #
< # MySQL Got timeout reading communication packets when reading federated table
< # https://dba.stackexchange.com/questions/205398/mysql-got-timeout-reading-communication-packets-when-reading-federated-table
< #
< wait_timeout=3600       # from 40 seconds may reduce handler_rollback count
<
<
< #
73,77c64,68
< slow_query_log_file    = /var/log/mysql/mariadb-slow.log
< long_query_time        = 10
< log_slow_rate_limit    = 1000
< log_slow_verbosity     = query_plan
< log-queries-not-using-indexes
---
> #slow_query_log_file    = /var/log/mysql/mariadb-slow.log
> #long_query_time        = 10
> #log_slow_rate_limit    = 1000
> #log_slow_verbosity     = query_plan
> #log-queries-not-using-indexes

Però el problema persisteix.

Finalment, després d'activar les opcions per mostrar les comandes SQL i altres avisos i errors al programa de reserves:

[error_handling]
; Browser error stream:
; Set these to 0 for production systems, 1 for development/debugging
; Show all SQL statements in the browser
; VerboseSQL = 0
VerboseSQL = 1
; Show all PHP warnings (such as uninitialised variables)
AllWarnings = 1
; Show a warning if install folder still is in the server location
ignore_installer = 1
; Show all GET and POST data provided by the browser
; VerboseData = 0
VerboseData = 0
; Use the dBug class from http://dbug.ospinto.com/ to pretty print error
; and debug output (designed for developer use only; you need to put dBug.php
; somewhere in your include path for this to work).
UseDBug = 0

aconsegueixo veure que l'error està relacionat amb una configuració més estricta de MariaDB respecte versions anteriors, configuració que no és compatible amb la versió actual del programa. Després de provar a modificar la configuració del gestor de la base de dades sense èxit,

trobo que la forma més fàcil de resoldre provisionalment el problema, és fer ús de l'opció IGNORE a la comanda INSERT de forma que,

Normally INSERT stops and rolls back when it encounters an error.

By using the IGNORE keyword all errors are converted to warnings, which will not stop inserts of additional rows.

The IGNORE and DELAYED options are ignored when you use ON DUPLICATE KEY UPDATE.

Prior to MySQL and MariaDB 5.5.28, no warnings were issued for duplicate key errors when using IGNORE. You can get the old behavior if you set OLD_MODE to NO_DUP_KEY_WARNINGS_WITH_IGNORE. ( INSERT IGNORE)

Per això cal modificar el fitxer /opt/bmbee-117/inc/formslib/dbrow.php,

# diff dbrow.php dbrow.php.BKUP-20220807
252c252
<         $q = 'INSERT IGNORE INTO '.$conf->value('database', 'tableprefix').$this->table.' SET '.$vals;
---
>         $q = 'INSERT '.$conf->value('database', 'tableprefix').$this->table.' SET '.$vals;

Després de fer el canvi, comprovo que es poden crear reserves i un nou compte d'usuari, i assumeixo que la resta de comandes INSERT també funcionaran correctament.

[PENDENT] Install phpmyadmin

La instal·lació de phpmyadmin no s'ha pogut completar perquè requereix PHP-7, però mentre no actualitzi el servidor de reserves, hem de mantenir la versió PHP-5.

# apt install -f phpmyadmin                                                                                                                             
Reading package lists... Done                                                   
Building dependency tree                                                                                                                      
Reading state information... Done                                             
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable      
distribution that some required packages have not yet been created                                      
or been moved out of Incoming.                                       
The following information may help to resolve the situation:        
                                                                                                                                    
The following packages have unmet dependencies:                                                    
 phpmyadmin : Depends: php-twig (> 2.9) but 2.6.2-2 is to be installed                                                           
E: Unable to correct problems, you have held broken packages. 

# apt-cache madison php-twig
  php-twig | 2.14.3-1~bpo10+1 | http://ftp.es.debian.org/debian buster-backports/main amd64 Packages                                                                                     
  php-twig |    2.6.2-2 | http://ftp.es.debian.org/debian buster/main amd64 Packages
      twig |    2.6.2-2 | http://ftp.es.debian.org/debian buster/main Sources                                                                                                            
  php-twig | 2.14.3-1~bpo10+1 | http://ftp.es.debian.org/debian buster-backports/main Sources                  
root@sermnserver:/var/log/apache2# apt-cache madison phpmyadmin                                                                               
phpmyadmin | 4:5.0.4+dfsg2-2~bpo10+1 | http://ftp.es.debian.org/debian buster-backports/main amd64 Packages
phpmyadmin | 4:5.0.4+dfsg2-2~bpo10+1 | http://ftp.es.debian.org/debian buster-backports/main Sources     

# apt install php-twig/buster-backports            
Reading package lists... Done                                                                                                                                                            
Building dependency tree                                                                                       
Reading state information... Done                                                                                                             
Selected version '2.14.3-1~bpo10+1' (Debian Backports:buster-backports [all]) for 'php-twig'               
The following package was automatically installed and is no longer required:                                                                                                       
  php7.3-mysql                                                                                         
Use 'apt autoremove' to remove it.                                                                                                                                                       
Suggested packages:                                                                                    
  php-twig-doc                                                                                                                                                                           
The following NEW packages will be installed:                                   
  php-twig                                                                                                                                    
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.                
Need to get 121 kB of archives.                                          
After this operation, 906 kB of additional disk space will be used.     
Get:1 http://ftp.es.debian.org/debian buster-backports/main amd64 php-twig all 2.14.3-1~bpo10+1 [121 kB]
Fetched 121 kB in 1s (220 kB/s)                                                                             
Selecting previously unselected package php-twig.                                                                   
(Reading database ... 220929 files and directories currently installed.)                                                            
Preparing to unpack .../php-twig_2.14.3-1~bpo10+1_all.deb ...                                                                                                                          
Unpacking php-twig (2.14.3-1~bpo10+1) ...                                                                                        
Setting up php-twig (2.14.3-1~bpo10+1) ...                                                                                        

# apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  php7.3-mysql
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 458 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 221331 files and directories currently installed.)
Removing php7.3-mysql (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4) ...
Processing triggers for libapache2-mod-php7.3 (7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4) ...
root@sermnserver:/var/log/apache2# php -v
PHP 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

# apt install -f phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  php-gettext php-php-gettext
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libc-ares2 libjs-bootstrap4 libjs-codemirror libjs-jquery-mousewheel libjs-jquery-timepicker libjs-openlayers libjs-popper.js libnode64 libuv1 node-jquery nodejs nodejs-doc php-apcu p
hp-google-recaptcha
  php-mariadb-mysql-kbs php-phpmyadmin-motranslator php-phpmyadmin-shapefile php-phpmyadmin-sql-parser php-psr-cache php-psr-container php-psr-log php-psr-simple-cache php-symfony-cache
 php-symfony-config
  php-symfony-dependency-injection php-symfony-expression-language php-symfony-filesystem php-symfony-yaml php-twig-i18n-extension php8.1-apcu
Suggested packages:
  libjs-requirejs npm php-dbase php-symfony-finder php-symfony-proxy-manager-bridge php-symfony-console php-recode php-gd2 php-pragmarx-google2fa-qrcode php-samyoul-u2f-php-server
The following NEW packages will be installed:
  libc-ares2 libjs-bootstrap4 libjs-codemirror libjs-jquery-mousewheel libjs-jquery-timepicker libjs-openlayers libjs-popper.js libnode64 libuv1 node-jquery nodejs nodejs-doc php-apcu p
hp-google-recaptcha
  php-mariadb-mysql-kbs php-phpmyadmin-motranslator php-phpmyadmin-shapefile php-phpmyadmin-sql-parser php-psr-cache php-psr-container php-psr-log php-psr-simple-cache php-symfony-cache
 php-symfony-config
  php-symfony-dependency-injection php-symfony-expression-language php-symfony-filesystem php-symfony-yaml php-twig-i18n-extension php8.1-apcu
The following packages will be upgraded:
  phpmyadmin
1 upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.8 MB of archives.
After this operation, 60.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://packages.sury.org/php buster/main amd64 php8.1-apcu amd64 5.1.21+4.0.11-8+0~20220625.32+debian10~1.gbpa7cde5 [45.1 kB]
Get:2 http://ftp.es.debian.org/debian buster/main amd64 libc-ares2 amd64 1.14.0-1+deb10u1 [86.1 kB]
Get:3 https://packages.sury.org/php buster/main amd64 php-apcu amd64 5.1.21+4.0.11-8+0~20220625.32+debian10~1.gbpa7cde5 [7,108 B]
...
Get:30 http://ftp.es.debian.org/debian buster-backports/main amd64 php-twig-i18n-extension all 3.0.0-2~bpo10+1 [8,076 B]
Get:31 http://ftp.es.debian.org/debian buster-backports/main amd64 phpmyadmin all 4:5.0.4+dfsg2-2~bpo10+1 [4,112 kB]
Fetched 14.8 MB in 4s (3,653 kB/s)       
Reading changelogs... Done
apt-listchanges: Mailing root: apt-listchanges: news for sermnserver
Extracting templates from packages: 100%
Preconfiguring packages ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
Selecting previously unselected package php8.1-apcu.
(Reading database ... 221319 files and directories currently installed.)
Preparing to unpack .../00-php8.1-apcu_5.1.21+4.0.11-8+0~20220625.32+debian10~1.gbpa7cde5_amd64.deb ...
Unpacking php8.1-apcu (5.1.21+4.0.11-8+0~20220625.32+debian10~1.gbpa7cde5) ...
Selecting previously unselected package php-apcu.
Preparing to unpack .../01-php-apcu_5.1.21+4.0.11-8+0~20220625.32+debian10~1.gbpa7cde5_amd64.deb ...
Unpacking php-apcu (5.1.21+4.0.11-8+0~20220625.32+debian10~1.gbpa7cde5) ...
...
Setting up php-phpmyadmin-motranslator (5.2.0-1~bpo10+1) ...
Setting up phpmyadmin (4:5.0.4+dfsg2-2~bpo10+1) ...

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

Configuration file '/etc/phpmyadmin/config.inc.php'
 ==> 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.
*** config.inc.php (Y/I/N/O/D/Z) [default=N] ? n
Installing new version of config file /etc/phpmyadmin/lighttpd.conf ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
creating database backup in /var/cache/dbconfig-common/backups/phpmyadmin_4:4.6.6-4+deb9u2.2022-08-05-16.31.02.
applying upgrade sql for 4:4.6.6-4+deb9u2 -> 4:4.8.5-1.
dbconfig-common: flushing administrative password
The blowfish_secret configured in /var/lib/phpmyadmin/blowfish_secret.inc.php is too weak and will be regenerated.
A backup of the file has been placed at /var/backups/phpmyadmin/blowfish_secret.inc.php
The webbased installer was disabled on debian with phpmyadmin version 4.9.1.
An existing configuration was found under /var/lib/phpmyadmin/config.inc.php.
A backup of the file has been placed at /var/backups/phpmyadmin/webbased-config.inc.php
apache2_invoke phpmyadmin: no action - configuration was disabled by local admin
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for doc-base (0.10.8) ...
Processing 1 changed doc-base file, 2 added doc-base files...
Registering documents with dwww...
Registering documents with scrollkeeper...
Processing triggers for libc-bin (2.28-10+deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for php8.1-cli (8.1.8-1+0~20220711.23+debian10~1.gbp5e9cbc) ...
Processing triggers for libapache2-mod-php8.1 (8.1.8-1+0~20220711.23+debian10~1.gbp5e9cbc) ...

però quan intento accedir a PHPMyAdmin em surt el missatge d'error,

  • PHP 7.1.3+ is required.
    Currently installed version is: 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd

de forma que hauré de configurar Apache amb PHP-FPM perquè faci servir diferents versions de PHP en funció de quina aplicació web es visiti,

[CANCEL·LADA] Configuració d'Apache amb PHP-FPM

Comprovo quines versions de PHP hi ha instal·lades,

# ls -l /etc/php/
total 16
drwxr-xr-x 5 root root 4096 Aug  5 16:04 5.6
drwxr-xr-x 5 root root 4096 Aug  4 22:24 7.0
drwxr-xr-x 5 root root 4096 Aug  5 13:05 7.3
drwxr-xr-x 5 root root 4096 Aug  5 15:47 8.1

i desinstal·lo la versió 7.0 perquè ja hi ha instal·lada una versió de PHP 7 més actual,

# apt remove php7.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  php7.0
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 87.0 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 226316 files and directories currently installed.)
Removing php7.0 (7.0.33-60+0~20220627.68+debian10~1.gbp3d361a) ...

# apt remove php7.0-*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'php7.0-tidy-dbgsym' for glob 'php7.0-*'
Note, selecting 'php7.0-sqlite3-dbgsym' for glob 'php7.0-*'
Note, selecting 'php7.0-vips-dbgsym' for glob 'php7.0-*'
...
Package 'php7.0-zstd' is not installed, so not removed
Package 'php7.0-zstd-dbgsym' is not installed, so not removed
The following packages will be REMOVED:
  libapache2-mod-php7.0 php7.0-bz2 php7.0-cli php7.0-common php7.0-gd php7.0-json php7.0-mbstring php7.0-opcache php7.0-pgsql php7.0-readline php7.0-xml php7.0-zip
0 upgraded, 0 newly installed, 12 to remove and 0 not upgraded.
After this operation, 16.5 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 226309 files and directories currently installed.)
Removing libapache2-mod-php7.0 (7.0.33-60+0~20220627.68+debian10~1.gbp3d361a) ...
apache2_invoke php7.0 prerm: No action required
Removing php7.0-bz2 (7.0.33-60+0~20220627.68+debian10~1.gbp3d361a) ...
...
Removing php7.0-readline (7.0.33-60+0~20220627.68+debian10~1.gbp3d361a) ...
Removing php7.0-common (7.0.33-60+0~20220627.68+debian10~1.gbp3d361a) ...
Processing triggers for man-db (2.8.5-2) ...

# apt list --installed | grep ^php7\.0

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Llavors instal·lo els paquets,

  • php5.6-fpm
  • libapache2-mod-php5.6
  • php7.3-fpm
  • libapache2-mod-php7.3
  • libapache2-mod-fcgid

però al final aquesta solució no em serveix perquè només funciona amb diferents hosts-virtuals, de forma que desinstal·lo els paquets instal·lats,

# apt remove php5.6-fpm php7.3-fpm libapache2-mod-fcgid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libapache2-mod-fcgid php5.6-fpm php7.3-fpm
...
Registering documents with scrollkeeper...

i comprovo que els corresponents serveis s'hagin aturat,

# systemctl status php5.6-fpm
? php5.6-fpm.service
   Loaded: masked (Reason: Unit php5.6-fpm.service is masked.)
   Active: inactive (dead) since Sun 2022-08-07 18:36:08 CEST; 3min 30s ago
 Main PID: 27345 (code=exited, status=0/SUCCESS)
   Status: "Processes active: 0, idle: 3, Requests: 45, slow: 0, Traffic: 0req/sec"

Aug 07 17:20:58 sermnserver systemd[1]: Starting The PHP 5.6 FastCGI Process Manager...
Aug 07 17:20:58 sermnserver systemd[1]: Started The PHP 5.6 FastCGI Process Manager.
Aug 07 18:36:08 sermnserver systemd[1]: Stopping The PHP 5.6 FastCGI Process Manager...
Aug 07 18:36:08 sermnserver systemd[1]: php5.6-fpm.service: Succeeded.
Aug 07 18:36:08 sermnserver systemd[1]: Stopped The PHP 5.6 FastCGI Process Manager.

# systemctl status php7.3-fpm
? php7.3-fpm.service
   Loaded: masked (Reason: Unit php7.3-fpm.service is masked.)
   Active: inactive (dead) since Sun 2022-08-07 18:36:17 CEST; 3min 34s ago
 Main PID: 27268 (code=exited, status=0/SUCCESS)
   Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0req/sec"

Aug 07 17:20:56 sermnserver systemd[1]: Starting The PHP 7.3 FastCGI Process Manager...
Aug 07 17:20:56 sermnserver systemd[1]: Started The PHP 7.3 FastCGI Process Manager.
Aug 07 18:36:16 sermnserver systemd[1]: Stopping The PHP 7.3 FastCGI Process Manager...
Aug 07 18:36:17 sermnserver systemd[1]: php7.3-fpm.service: Succeeded.
Aug 07 18:36:17 sermnserver systemd[1]: Stopped The PHP 7.3 FastCGI Process Manager.

Tot seguit desactivo altres mòduls d'Apache que s'havien activat

# a2dismod actions fcgid proxy_fcgi
Module actions already disabled
Module fcgid already disabled
Module proxy_fcgi disabled.
To activate the new configuration, you need to run:
  systemctl restart apache2

Finalment, reinicio Apache per aplicar els canvis:

# apache2ctl configtest
Syntax OK
# systemctl restart apache2

Referències

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
informatica/servidor_internet_2009_debian_10_part_1.1660055956.txt.gz · Last modified: 2022/08/09 16:39 by miquel