Table of Contents
Upgrade Ubuntu 22.04.3 LTS Including OnlyOffice Server
Article Created 11-13-2024 (Last Edited 11-13-2024)
Microsoft Windows [Version 10.0.19045.5011] (c) Microsoft Corporation. All rights reserved. C:\Windows\system32>ssh user@domain.com user@domain.com's password: Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-122-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/pro System information as of Wed Nov 13 04:42:34 PM UTC 2024 System load: 0.14 Temperature: 31.0 C Usage of /: 12.3% of 1.79TB Processes: 181 Memory usage: 5% Users logged in: 0 Swap usage: 0% IPv4 address for eno1: xxx.xxx.xxx.xxx Expanded Security Maintenance for Applications is not enabled. 46 updates can be applied immediately. 7 of these updates are standard security updates. To see these additional updates run: apt list --upgradable 14 additional security updates can be applied with ESM Apps. Learn more about enabling ESM Apps service at https://ubuntu.com/esm *** System restart required *** Last login: Thu Oct 10 15:57:57 2024 user@svr:~$ sudo apt update [sudo] password for user: Hit:1 https://download.onlyoffice.com/repo/debian squeeze InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease Get:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB] Get:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB] Get:5 http://us.archive.ubuntu.com/ubuntu jammy-security InRelease [129 kB] Get:6 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2,149 kB] Fetched 2,533 kB in 3s (986 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 45 packages can be upgraded. Run 'apt list --upgradable' to see them. W: https://download.onlyoffice.com/repo/debian/dists/squeeze/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. User@svr:~$ sudo apt list --upgradable [sudo] password for user: Listing... Done apport/jammy-updates 2.20.11-0ubuntu82.6 all [upgradable from: 2.20.11-0ubuntu82.5] apt-utils/jammy-updates 2.4.13 amd64 [upgradable from: 2.4.12] apt/jammy-updates 2.4.13 amd64 [upgradable from: 2.4.12] base-files/jammy-updates 12ubuntu4.7 amd64 [upgradable from: 12ubuntu4.6] cloud-init/jammy-updates 24.3.1-0ubuntu0~22.04.1 all [upgradable from: 24.1.3-0ubuntu1~22.04.5] distro-info-data/jammy-updates 0.52ubuntu0.8 all [upgradable from: 0.52ubuntu0.7] e2fsprogs/jammy-updates 1.46.5-2ubuntu1.2 amd64 [upgradable from: 1.46.5-2ubuntu1.1] ghostscript/jammy-updates,jammy-security 9.55.0~dfsg1-0ubuntu5.10 amd64 [upgradable from: 9.55.0~dfsg1-0ubuntu5.9] libapt-pkg6.0/jammy-updates 2.4.13 amd64 [upgradable from: 2.4.12] libcom-err2/jammy-updates 1.46.5-2ubuntu1.2 amd64 [upgradable from: 1.46.5-2ubuntu1.1] libext2fs2/jammy-updates 1.46.5-2ubuntu1.2 amd64 [upgradable from: 1.46.5-2ubuntu1.1] libgs9-common/jammy-updates,jammy-security 9.55.0~dfsg1-0ubuntu5.10 all [upgradable from: 9.55.0~dfsg1-0ubuntu5.9] libgs9/jammy-updates,jammy-security 9.55.0~dfsg1-0ubuntu5.10 amd64 [upgradable from: 9.55.0~dfsg1-0ubuntu5.9] libmm-glib0/jammy-updates 1.20.0-1~ubuntu22.04.4 amd64 [upgradable from: 1.20.0-1~ubuntu22.04.3] libpcap0.8/jammy-updates 1.10.1-4ubuntu1.22.04.1 amd64 [upgradable from: 1.10.1-4build1] libpython3-stdlib/jammy-updates 3.10.6-1~22.04.1 amd64 [upgradable from: 3.10.6-1~22.04] libss2/jammy-updates 1.46.5-2ubuntu1.2 amd64 [upgradable from: 1.46.5-2ubuntu1.1] logsave/jammy-updates 1.46.5-2ubuntu1.2 amd64 [upgradable from: 1.46.5-2ubuntu1.1] modemmanager/jammy-updates 1.20.0-1~ubuntu22.04.4 amd64 [upgradable from: 1.20.0-1~ubuntu22.04.3] motd-news-config/jammy-updates 12ubuntu4.7 all [upgradable from: 12ubuntu4.6] mysql-client-8.0/jammy-updates,jammy-security 8.0.40-0ubuntu0.22.04.1 amd64 [upgradable from: 8.0.39-0ubuntu0.22.04.1] mysql-client-core-8.0/jammy-updates,jammy-security 8.0.40-0ubuntu0.22.04.1 amd64 [upgradable from: 8.0.39-0ubuntu0.22.04.1] mysql-server-8.0/jammy-updates,jammy-security 8.0.40-0ubuntu0.22.04.1 amd64 [upgradable from: 8.0.39-0ubuntu0.22.04.1] mysql-server-core-8.0/jammy-updates,jammy-security 8.0.40-0ubuntu0.22.04.1 amd64 [upgradable from: 8.0.39-0ubuntu0.22.04.1] onlyoffice-documentserver/squeeze 8.2.1-38 amd64 [upgradable from: 8.1.1-26] python-apt-common/jammy-updates 2.4.0ubuntu4 all [upgradable from: 2.4.0ubuntu3] python3-apport/jammy-updates 2.20.11-0ubuntu82.6 all [upgradable from: 2.20.11-0ubuntu82.5] python3-apt/jammy-updates 2.4.0ubuntu4 amd64 [upgradable from: 2.4.0ubuntu3] python3-distupgrade/jammy-updates 1:22.04.20 all [upgradable from: 1:22.04.19] python3-minimal/jammy-updates 3.10.6-1~22.04.1 amd64 [upgradable from: 3.10.6-1~22.04] python3-problem-report/jammy-updates 2.20.11-0ubuntu82.6 all [upgradable from: 2.20.11-0ubuntu82.5] python3-update-manager/jammy-updates 1:22.04.21 all [upgradable from: 1:22.04.10] python3/jammy-updates 3.10.6-1~22.04.1 amd64 [upgradable from: 3.10.6-1~22.04] rabbitmq-server/jammy-updates 3.9.27-0ubuntu0.1 all [upgradable from: 3.9.13-1ubuntu0.22.04.2] snapd/jammy-updates 2.65.3+22.04 amd64 [upgradable from: 2.63+22.04ubuntu0.1] sosreport/jammy-updates 4.7.2-0ubuntu1~22.04.1 amd64 [upgradable from: 4.5.6-0ubuntu1~22.04.2] ubuntu-advantage-tools/jammy-updates 34~22.04 all [upgradable from: 32.3.1~22.04] ubuntu-minimal/jammy-updates 1.481.4 amd64 [upgradable from: 1.481.2] ubuntu-pro-client-l10n/jammy-updates 34~22.04 amd64 [upgradable from: 32.3.1~22.04] ubuntu-pro-client/jammy-updates 34~22.04 amd64 [upgradable from: 32.3.1~22.04] ubuntu-release-upgrader-core/jammy-updates 1:22.04.20 all [upgradable from: 1:22.04.19] ubuntu-server-minimal/jammy-updates 1.481.4 amd64 [upgradable from: 1.481.2] ubuntu-server/jammy-updates 1.481.4 amd64 [upgradable from: 1.481.2] ubuntu-standard/jammy-updates 1.481.4 amd64 [upgradable from: 1.481.2] update-manager-core/jammy-updates 1:22.04.21 all [upgradable from: 1:22.04.10] user@svr:~$
Upgrade, except for certain missing OnlyOffice Server Files that were intentionally removed
The /documentserver-example/ subdirectory and its contents were removed due to unauthorized access and security issues. They were located at /etc/onlyoffice/documentserver-example/
Note: When asked whether to install the package maintainer's version of the document server default.json file, click N for NO to keep your current version. In my “current version” the entire documentserver-example was deleted for security reasons. See the following small extract taken from the longer upgrade code shown in the huge block entitled “Perform the Upgrade” which appears below this small extract.
Configuration file '/etc/onlyoffice/documentserver-example/default.json' ==> 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. *** default.json (Y/I/N/O/D/Z) [default=N] ? N
Perform the Upgrade -- Sudo apt upgrade
user@svr:~$ sudo apt upgrade [sudo] password for user: Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: gconf-service gconf-service-backend gconf2-common libgconf-2-4 Use 'sudo apt autoremove' to remove them. Get more security updates through Ubuntu Pro with 'esm-apps' enabled: redis-server libheif1 imagemagick libjs-jquery-ui libopenexr25 libmagickcore-6.q16-6-extra php-twig libmagickwand-6.q16-6 imagemagick-6.q16 redis-tools libmagickcore-6.q16-6 imagemagick-6-common libde265-0 redis Learn more about Ubuntu Pro at https://ubuntu.com/pro The following NEW packages will be installed: python3-packaging The following packages will be upgraded: apport apt apt-utils base-files cloud-init distro-info-data e2fsprogs ghostscript libapt-pkg6.0 libcom-err2 libext2fs2 libgs9 libgs9-common libmm-glib0 libpcap0.8 libpython3-stdlib libss2 logsave modemmanager motd-news-config mysql-client-8.0 mysql-client-core-8.0 mysql-server-8.0 mysql-server-core-8.0 onlyoffice-documentserver python-apt-common python3 python3-apport python3-apt python3-distupgrade python3-minimal python3-problem-report python3-update-manager rabbitmq-server snapd sosreport ubuntu-advantage-tools ubuntu-minimal ubuntu-pro-client ubuntu-pro-client-l10n ubuntu-release-upgrader-core ubuntu-server ubuntu-server-minimal ubuntu-standard update-manager-core 45 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 7 standard LTS security updates Need to get 674 MB/702 MB of archives. After this operation, 113 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 https://download.onlyoffice.com/repo/debian squeeze/main amd64 onlyoffice-documentserver amd64 8.2.1-38 [626 MB] Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 motd-news-config all 12ubuntu4.7 [3,822 B] Get:3 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 base-files amd64 12ubuntu4.7 [61.9 kB] Get:4 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libapt-pkg6.0 amd64 2.4.13 [912 kB] Get:5 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 apt amd64 2.4.13 [1,363 kB] Get:6 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 apt-utils amd64 2.4.13 [211 kB] Get:7 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 logsave amd64 1.46.5-2ubuntu1.2 [10.1 kB] Get:8 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libext2fs2 amd64 1.46.5-2ubuntu1.2 [208 kB] Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 e2fsprogs amd64 1.46.5-2ubuntu1.2 [590 kB] Get:10 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-minimal amd64 3.10.6-1~22.04.1 [24.3 kB] Get:11 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3 amd64 3.10.6-1~22.04.1 [22.8 kB] Get:12 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3-stdlib amd64 3.10.6-1~22.04.1 [6,812 B] Get:13 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcom-err2 amd64 1.46.5-2ubuntu1.2 [9,304 B] Get:14 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libss2 amd64 1.46.5-2ubuntu1.2 [12.3 kB] Get:15 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 distro-info-data all 0.52ubuntu0.8 [5,302 B] Get:16 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python-apt-common all 2.4.0ubuntu4 [14.6 kB] Get:17 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-apt amd64 2.4.0ubuntu4 [164 kB] Get:18 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-pro-client-l10n amd64 34~22.04 [19.1 kB] Get:19 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-pro-client amd64 34~22.04 [221 kB] Get:20 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-advantage-tools all 34~22.04 [10.9 kB] Get:21 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-minimal amd64 1.481.4 [2,928 B] Get:22 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcap0.8 amd64 1.10.1-4ubuntu1.22.04.1 [145 kB] Get:23 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-release-upgrader-core all 1:22.04.20 [26.2 kB] Get:24 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-distupgrade all 1:22.04.20 [106 kB] Get:25 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-update-manager all 1:22.04.21 [39.1 kB] Get:26 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 update-manager-core all 1:22.04.21 [11.5 kB] Get:27 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-standard amd64 1.481.4 [2,948 B] Get:28 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-problem-report all 2.20.11-0ubuntu82.6 [11.1 kB] Get:29 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-apport all 2.20.11-0ubuntu82.6 [89.0 kB] Get:30 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 apport all 2.20.11-0ubuntu82.6 [134 kB] Get:31 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libmm-glib0 amd64 1.20.0-1~ubuntu22.04.4 [262 kB] Get:32 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 modemmanager amd64 1.20.0-1~ubuntu22.04.4 [1,094 kB] Get:33 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 python3-packaging all 21.3-1 [30.7 kB] Get:34 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 snapd amd64 2.65.3+22.04 [26.4 MB] Get:35 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 sosreport amd64 4.7.2-0ubuntu1~22.04.1 [352 kB] Get:36 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-server amd64 1.481.4 [2,868 B] Get:37 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cloud-init all 24.3.1-0ubuntu0~22.04.1 [564 kB] Get:38 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-server-minimal amd64 1.481.4 [2,798 B] (Reading database ... 159938 files and directories currently installed.)itmq-server all 3.9.27-0ubuntu0.1 [15.2 MB] Preparing to unpack .../motd-news-config_12ubuntu4.7_all.deb ... Unpacking motd-news-config (12ubuntu4.7) over (12ubuntu4.6) ... Preparing to unpack .../base-files_12ubuntu4.7_amd64.deb ... Unpacking base-files (12ubuntu4.7) over (12ubuntu4.6) ... Setting up base-files (12ubuntu4.7) ... Installing new version of config file /etc/issue ... Installing new version of config file /etc/issue.net ... Installing new version of config file /etc/lsb-release ... motd-news.service is a disabled or a static unit not running, not starting it. (Reading database ... 159938 files and directories currently installed.) Preparing to unpack .../libapt-pkg6.0_2.4.13_amd64.deb ... Unpacking libapt-pkg6.0:amd64 (2.4.13) over (2.4.12) ... Setting up libapt-pkg6.0:amd64 (2.4.13) ... (Reading database ... 159938 files and directories currently installed.) Preparing to unpack .../archives/apt_2.4.13_amd64.deb ... Unpacking apt (2.4.13) over (2.4.12) ... Setting up apt (2.4.13) ... (Reading database ... 159938 files and directories currently installed.) Preparing to unpack .../apt-utils_2.4.13_amd64.deb ... Unpacking apt-utils (2.4.13) over (2.4.12) ... Preparing to unpack .../logsave_1.46.5-2ubuntu1.2_amd64.deb ... Unpacking logsave (1.46.5-2ubuntu1.2) over (1.46.5-2ubuntu1.1) ... Preparing to unpack .../libext2fs2_1.46.5-2ubuntu1.2_amd64.deb ... Unpacking libext2fs2:amd64 (1.46.5-2ubuntu1.2) over (1.46.5-2ubuntu1.1) ... Setting up libext2fs2:amd64 (1.46.5-2ubuntu1.2) ... (Reading database ... 159938 files and directories currently installed.) Preparing to unpack .../e2fsprogs_1.46.5-2ubuntu1.2_amd64.deb ... Unpacking e2fsprogs (1.46.5-2ubuntu1.2) over (1.46.5-2ubuntu1.1) ... Preparing to unpack .../python3-minimal_3.10.6-1~22.04.1_amd64.deb ... Unpacking python3-minimal (3.10.6-1~22.04.1) over (3.10.6-1~22.04) ... Setting up python3-minimal (3.10.6-1~22.04.1) ... (Reading database ... 159938 files and directories currently installed.) Preparing to unpack .../0-python3_3.10.6-1~22.04.1_amd64.deb ... running python pre-rtupdate hooks for python3.10... Unpacking python3 (3.10.6-1~22.04.1) over (3.10.6-1~22.04) ... Preparing to unpack .../1-libpython3-stdlib_3.10.6-1~22.04.1_amd64.deb ... Unpacking libpython3-stdlib:amd64 (3.10.6-1~22.04.1) over (3.10.6-1~22.04) ... Preparing to unpack .../2-mysql-client-core-8.0_8.0.40-0ubuntu0.22.04.1_amd64.deb ... Unpacking mysql-client-core-8.0 (8.0.40-0ubuntu0.22.04.1) over (8.0.39-0ubuntu0.22.04.1) ... Preparing to unpack .../3-mysql-client-8.0_8.0.40-0ubuntu0.22.04.1_amd64.deb ... Unpacking mysql-client-8.0 (8.0.40-0ubuntu0.22.04.1) over (8.0.39-0ubuntu0.22.04.1) ... Preparing to unpack .../4-mysql-server-8.0_8.0.40-0ubuntu0.22.04.1_amd64.deb ... Unpacking mysql-server-8.0 (8.0.40-0ubuntu0.22.04.1) over (8.0.39-0ubuntu0.22.04.1) ... Preparing to unpack .../5-mysql-server-core-8.0_8.0.40-0ubuntu0.22.04.1_amd64.deb ... Unpacking mysql-server-core-8.0 (8.0.40-0ubuntu0.22.04.1) over (8.0.39-0ubuntu0.22.04.1) ... Preparing to unpack .../6-libcom-err2_1.46.5-2ubuntu1.2_amd64.deb ... Unpacking libcom-err2:amd64 (1.46.5-2ubuntu1.2) over (1.46.5-2ubuntu1.1) ... Setting up libcom-err2:amd64 (1.46.5-2ubuntu1.2) ... (Reading database ... 159938 files and directories currently installed.) Preparing to unpack .../00-libss2_1.46.5-2ubuntu1.2_amd64.deb ... Unpacking libss2:amd64 (1.46.5-2ubuntu1.2) over (1.46.5-2ubuntu1.1) ... Preparing to unpack .../01-distro-info-data_0.52ubuntu0.8_all.deb ... Unpacking distro-info-data (0.52ubuntu0.8) over (0.52ubuntu0.7) ... Preparing to unpack .../02-python-apt-common_2.4.0ubuntu4_all.deb ... Unpacking python-apt-common (2.4.0ubuntu4) over (2.4.0ubuntu3) ... Preparing to unpack .../03-python3-apt_2.4.0ubuntu4_amd64.deb ... Unpacking python3-apt (2.4.0ubuntu4) over (2.4.0ubuntu3) ... Preparing to unpack .../04-ubuntu-pro-client-l10n_34~22.04_amd64.deb ... Unpacking ubuntu-pro-client-l10n (34~22.04) over (32.3.1~22.04) ... Preparing to unpack .../05-ubuntu-pro-client_34~22.04_amd64.deb ... Unpacking ubuntu-pro-client (34~22.04) over (32.3.1~22.04) ... Preparing to unpack .../06-ubuntu-advantage-tools_34~22.04_all.deb ... Unpacking ubuntu-advantage-tools (34~22.04) over (32.3.1~22.04) ... Preparing to unpack .../07-ubuntu-minimal_1.481.4_amd64.deb ... Unpacking ubuntu-minimal (1.481.4) over (1.481.2) ... Preparing to unpack .../08-libpcap0.8_1.10.1-4ubuntu1.22.04.1_amd64.deb ... Unpacking libpcap0.8:amd64 (1.10.1-4ubuntu1.22.04.1) over (1.10.1-4build1) ... Preparing to unpack .../09-ubuntu-release-upgrader-core_1%3a22.04.20_all.deb ... Unpacking ubuntu-release-upgrader-core (1:22.04.20) over (1:22.04.19) ... Preparing to unpack .../10-python3-distupgrade_1%3a22.04.20_all.deb ... Unpacking python3-distupgrade (1:22.04.20) over (1:22.04.19) ... Preparing to unpack .../11-python3-update-manager_1%3a22.04.21_all.deb ... Unpacking python3-update-manager (1:22.04.21) over (1:22.04.10) ... Preparing to unpack .../12-update-manager-core_1%3a22.04.21_all.deb ... Unpacking update-manager-core (1:22.04.21) over (1:22.04.10) ... Preparing to unpack .../13-ubuntu-standard_1.481.4_amd64.deb ... Unpacking ubuntu-standard (1.481.4) over (1.481.2) ... Preparing to unpack .../14-python3-problem-report_2.20.11-0ubuntu82.6_all.deb ... Unpacking python3-problem-report (2.20.11-0ubuntu82.6) over (2.20.11-0ubuntu82.5) ... Preparing to unpack .../15-python3-apport_2.20.11-0ubuntu82.6_all.deb ... Unpacking python3-apport (2.20.11-0ubuntu82.6) over (2.20.11-0ubuntu82.5) ... Preparing to unpack .../16-apport_2.20.11-0ubuntu82.6_all.deb ... Unpacking apport (2.20.11-0ubuntu82.6) over (2.20.11-0ubuntu82.5) ... Preparing to unpack .../17-ghostscript_9.55.0~dfsg1-0ubuntu5.10_amd64.deb ... Unpacking ghostscript (9.55.0~dfsg1-0ubuntu5.10) over (9.55.0~dfsg1-0ubuntu5.9) ... Preparing to unpack .../18-libgs9_9.55.0~dfsg1-0ubuntu5.10_amd64.deb ... Unpacking libgs9:amd64 (9.55.0~dfsg1-0ubuntu5.10) over (9.55.0~dfsg1-0ubuntu5.9) ... Preparing to unpack .../19-libgs9-common_9.55.0~dfsg1-0ubuntu5.10_all.deb ... Unpacking libgs9-common (9.55.0~dfsg1-0ubuntu5.10) over (9.55.0~dfsg1-0ubuntu5.9) ... Preparing to unpack .../20-libmm-glib0_1.20.0-1~ubuntu22.04.4_amd64.deb ... Unpacking libmm-glib0:amd64 (1.20.0-1~ubuntu22.04.4) over (1.20.0-1~ubuntu22.04.3) ... Preparing to unpack .../21-modemmanager_1.20.0-1~ubuntu22.04.4_amd64.deb ... Unpacking modemmanager (1.20.0-1~ubuntu22.04.4) over (1.20.0-1~ubuntu22.04.3) ... Preparing to unpack .../22-onlyoffice-documentserver_8.2.1-38_amd64.deb ... Preparing for shutdown, it can take a lot of time, please wait... Stopping documentserver services...#############################....................................................] Unpacking onlyoffice-documentserver (8.2.1-38) over (8.1.1-26) .....................................................] Unpacking python3-packaging (21.3-1) ...##########################..................................................] Preparing to unpack .../24-snapd_2.65.3+22.04_amd64.deb ... ... Unpacking snapd (2.65.3+22.04) over (2.63+22.04ubuntu0.1) ...######.................................................] Preparing to unpack .../25-sosreport_4.7.2-0ubuntu1~22.04.1_amd64.deb ... Unpacking sosreport (4.7.2-0ubuntu1~22.04.1) over (4.5.6-0ubuntu1~22.04.2) .........................................] Preparing to unpack .../26-ubuntu-server_1.481.4_amd64.deb ... Unpacking ubuntu-server (1.481.4) over (1.481.2) ...#################...............................................] Preparing to unpack .../27-cloud-init_24.3.1-0ubuntu0~22.04.1_all.deb ... Unpacking cloud-init (24.3.1-0ubuntu0~22.04.1) over (24.1.3-0ubuntu1~22.04.5) ......................................] dpkg: warning: unable to delete old directory '/etc/systemd/system/sshd-keygen@.service.d': Directory not empty Preparing to unpack .../28-ubuntu-server-minimal_1.481.4_amd64.deb .................................................] Unpacking ubuntu-server-minimal (1.481.4) over (1.481.2) ... Preparing to unpack .../29-rabbitmq-server_3.9.27-0ubuntu0.1_all.deb ...............................................] Unpacking rabbitmq-server (3.9.27-0ubuntu0.1) over (3.9.13-1ubuntu0.22.04.2) ... Setting up libgs9-common (9.55.0~dfsg1-0ubuntu5.10) ...##################...........................................] Setting up motd-news-config (12ubuntu4.7) ...#############################..........................................] Setting up snapd (2.65.3+22.04) ...########################################.........................................] Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ... snapd.failure.service is a disabled or a static unit not running, not starting it. snapd.snap-repair.service is a disabled or a static unit not running, not starting it. Setting up mysql-client-core-8.0 (8.0.40-0ubuntu0.22.04.1) ...##############........................................] Setting up apt-utils (2.4.13) ...###########################################........................................] Setting up libgs9:amd64 (9.55.0~dfsg1-0ubuntu5.10) ...#######################.......................................] Setting up distro-info-data (0.52ubuntu0.8) ...###############################......................................] Setting up onlyoffice-documentserver (8.2.1-38) ...############################.....................................] Configuration file '/etc/onlyoffice/documentserver-example/default.json' ==> 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. *** default.json (Y/I/N/O/D/Z) [default=N] ? N Installing new version of config file /etc/onlyoffice/documentserver/default.json ... Installing new version of config file /etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf ... Generating AllFonts.js, please wait...Done Generating presentation themes, please wait...Done Generating js caches, please wait...Done Installing plugins, please wait...Done dpkg: error processing package onlyoffice-documentserver (--configure): installed onlyoffice-documentserver package post-installation script subprocess returned error exit status 1 Setting up ubuntu-standard (1.481.4) ... Setting up ghostscript (9.55.0~dfsg1-0ubuntu5.10) ... Setting up libpcap0.8:amd64 (1.10.1-4ubuntu1.22.04.1) ... Setting up libss2:amd64 (1.46.5-2ubuntu1.2) ... Setting up mysql-server-core-8.0 (8.0.40-0ubuntu0.22.04.1) ... Setting up logsave (1.46.5-2ubuntu1.2) ... Setting up python-apt-common (2.4.0ubuntu4) ... Setting up libmm-glib0:amd64 (1.20.0-1~ubuntu22.04.4) ... Setting up mysql-client-8.0 (8.0.40-0ubuntu0.22.04.1) ... Setting up modemmanager (1.20.0-1~ubuntu22.04.4) ... Setting up libpython3-stdlib:amd64 (3.10.6-1~22.04.1) ... Setting up mysql-server-8.0 (8.0.40-0ubuntu0.22.04.1) ... mysqld will log errors to /var/log/mysql/error.log mysqld is running as pid 3286335 Setting up e2fsprogs (1.46.5-2ubuntu1.2) ...#################################################.......................] update-initramfs: deferring update (trigger activated) e2scrub_all.service is a disabled or a static unit not running, not starting it. Setting up python3 (3.10.6-1~22.04.1) ...#####################################################......................] running python rtupdate hooks for python3.10... running python post-rtupdate hooks for python3.10... Setting up python3-packaging (21.3-1) ...######################################################.....................] Setting up sosreport (4.7.2-0ubuntu1~22.04.1) ...###############################################....................] Setting up rabbitmq-server (3.9.27-0ubuntu0.1) ...###############################################...................] Setting up cloud-init (24.3.1-0ubuntu0~22.04.1) ...###############################################..................] Installing new version of config file /etc/cloud/cloud.cfg ... Installing new version of config file /etc/cloud/templates/sources.list.ubuntu.deb822.tmpl ... Setting up python3-problem-report (2.20.11-0ubuntu82.6) ...########################################.................] Setting up python3-apt (2.4.0ubuntu4) ...###########################################################................] Setting up python3-apport (2.20.11-0ubuntu82.6) ...##################################################...............] Setting up ubuntu-pro-client (34~22.04) ...############################################################.............] Installing new version of config file /etc/apparmor.d/ubuntu_pro_apt_news ... Installing new version of config file /etc/apt/apt.conf.d/20apt-esm-hook.conf ... Setting up ubuntu-pro-client-l10n (34~22.04) ...########################################################............] Setting up apport (2.20.11-0ubuntu82.6) ...##############################################################...........] apport-autoreport.service is a disabled or a static unit, not starting it. Setting up ubuntu-server (1.481.4) ...####################################################################..........] Setting up ubuntu-advantage-tools (34~22.04) ...###########################################################.........] Setting up ubuntu-minimal (1.481.4) ...#####################################################################........] Setting up python3-update-manager (1:22.04.21) ...###########################################################.......] Setting up python3-distupgrade (1:22.04.20) ...###############################################################......] Setting up ubuntu-release-upgrader-core (1:22.04.20) ...#######################################################.....] Setting up update-manager-core (1:22.04.21) ...#################################################################....] Setting up ubuntu-server-minimal (1.481.4) ...###################################################################...] Processing triggers for hicolor-icon-theme (0.17-2) ...###########################################################..] Processing triggers for libc-bin (2.35-0ubuntu3.8) ... Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for plymouth-theme-ubuntu-text (0.9.5+git20211018-1ubuntu3) ... update-initramfs: deferring update (trigger activated) Processing triggers for dbus (1.12.20-2ubuntu4.1) ... Processing triggers for install-info (6.8-4build1) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for initramfs-tools (0.140ubuntu13.4) ... update-initramfs: Generating /boot/initrd.img-5.15.0-125-generic Errors were encountered while processing: onlyoffice-documentserver needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) user@svr:~$
Troubleshooting for this Upgrade
The Nginx and OnlyOffice would not start properly after the upgrade.
Attempted to Start Nginx and it had errors and would not start. Checked the status of Nginx.service
Here is what showed as the error when the update script tried to restart Nginx, and what was done to fix the problem.
Nov 13 17:50:23 svr nginx[3299436]: nginx: [emerg] open() “/etc/nginx/includes/ds-example.conf” failed (2: No such file>
Nov 13 17:50:23 svr nginx[3299436]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 13 17:50:23 svr systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 13 17:50:23 svr systemd[1]: Failed to start A high performance web server and a reverse proxy server.
user@svr:~$ sudo systemctl start nginx [sudo] password for user: Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details. user@svr:~$ systemctl status nginx × nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2024-11-13 17:50:23 UTC; 27s ago Docs: man:nginx(8) Process: 3299436 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) CPU: 18ms Nov 13 17:50:23 svr systemd[1]: Starting A high performance web server and a reverse proxy server... Nov 13 17:50:23 svr systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Nov 13 17:50:23 svr nginx[3299436]: nginx: [emerg] open() "/etc/nginx/includes/ds-example.conf" failed (2: No such file> Nov 13 17:50:23 svr nginx[3299436]: nginx: configuration file /etc/nginx/nginx.conf test failed Nov 13 17:50:23 svr systemd[1]: nginx.service: Failed with result 'exit-code'. Nov 13 17:50:23 svr systemd[1]: Failed to start A high performance web server and a reverse proxy server. user@svr:~$ nginx -v nginx version: nginx/1.18.0 (Ubuntu) user@svr:~$ sudo systemctl status nginx.service × nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2024-11-13 17:50:23 UTC; 6min ago Docs: man:nginx(8) Process: 3299436 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) CPU: 18ms Nov 13 17:50:23 svr systemd[1]: Starting A high performance web server and a reverse proxy server... Nov 13 17:50:23 svr systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Nov 13 17:50:23 svr nginx[3299436]: nginx: [emerg] open() "/etc/nginx/includes/ds-example.conf" failed (2: No such file> Nov 13 17:50:23 svr nginx[3299436]: nginx: configuration file /etc/nginx/nginx.conf test failed Nov 13 17:50:23 svr systemd[1]: nginx.service: Failed with result 'exit-code'. Nov 13 17:50:23 svr systemd[1]: Failed to start A high performance web server and a reverse proxy server. lines 1-13/13 (END) user@svr:~$ cd /etc/nginx/includes/ds-example.conf -bash: cd: /etc/nginx/includes/ds-example.conf: No such file or directory user@svr:~$ cd /etc/nginx/includes user@svr:/etc/nginx/includes$ ls ds-cache.conf ds-docservice.conf ds-letsencrypt.conf http-common.conf ds-common.conf ds-example.conf ds-mime.types.conf user@svr:/etc/nginx/includes$ cd /etc/nginx/ user@svr:/etc/nginx$ ls conf.d includes mime.types nginx.conf sites-available uwsgi_params fastcgi.conf koi-utf modules-available proxy_params sites-enabled win-utf fastcgi_params koi-win modules-enabled scgi_params snippets user@svr:/etc/nginx$ vim nginx.conf user@svr:/etc/nginx$ cd /etc/nginx/includes user@svr:/etc/nginx/includes$ ls ds-cache.conf ds-docservice.conf ds-letsencrypt.conf http-common.conf ds-common.conf ds-example.conf ds-mime.types.conf user@svr:/etc/nginx/includes$ sudo rm /etc/nginx/includes/ds-example.conf user@nsvr:/etc/nginx/includes$ ls ds-cache.conf ds-common.conf ds-docservice.conf ds-letsencrypt.conf ds-mime.types.conf http-common.conf user@svr:/etc/nginx/includes$ sudo systemctl start nginx user@svr:/etc/nginx/includes$ sudo systemctl status nginx ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-11-13 18:11:03 UTC; 15s ago Docs: man:nginx(8) Process: 3300542 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 3300543 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 3300544 (nginx) Tasks: 5 (limit: 38337) Memory: 11.3M CPU: 55ms CGroup: /system.slice/nginx.service ├─3300544 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;" ├─3300545 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" > ├─3300546 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" > ├─3300547 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" > └─3300548 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" > Nov 13 18:11:03 svr systemd[1]: Starting A high performance web server and a reverse proxy server... Nov 13 18:11:03 svr systemd[1]: Started A high performance web server and a reverse proxy server.
The Fix That Allowed Nginx Webserver to Start Successfully
Following is the fix from the above full segment of code that allowed Nginx Webserver to start successfully. Basically, removed a file using this code below: sudo rm /etc/nginx/includes/ds-example.conf
After executing the list command (ls), that “missing” file had showed up in red text. Odd.
user@svr:/etc/nginx$ cd /etc/nginx/includes user@svr:/etc/nginx/includes$ ls ds-cache.conf ds-docservice.conf ds-letsencrypt.conf http-common.conf ds-common.conf ds-example.conf ds-mime.types.conf user@svr:/etc/nginx/includes$ sudo rm /etc/nginx/includes/ds-example.conf user@nsvr:/etc/nginx/includes$ ls ds-cache.conf ds-common.conf ds-docservice.conf ds-letsencrypt.conf ds-mime.types.conf http-common.conf user@svr:/etc/nginx/includes$ sudo systemctl start nginx user@svr:/etc/nginx/includes$ sudo systemctl status nginx ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-11-13 18:11:03 UTC; 15s ago
The Original Fix To Eliminate documentserver-example
Again, this was the original fix to eliminate the documentserver-example test page that would otherwise leave OnlyOffice document server open for use to the general public, and create a bandwidth leak and security risk:
sudo rm -rf /etc/onlyoffice/documentserver-example/ #Removes the whole unnecessary "example" sudo rm /etc/nginx/includes/ds-example.conf #This will delete the link that stops Nginx from starting with error sudo service nginx restart #Should restart without problem
What is interesting is that even after saying “No” during the upgrade, the documentserver-example directory was re-instated! See below. I think I will leave it in place since the OnlyOffice Server Test Page only shows up saying “Thank you for choosing ONLYOFFICE! Document Server is running!” It does not offer access to the server to test and use it as well, like the test page had previously offered when OnlyOffice was originally installed. If it reverts to the security risk on restart, then I will implement the first line of script in the above code box to fix the problem again by removing the whole unnecessary “example.”
user@svr:/etc/nginx/includes$ cd /etc/onlyoffice/documentserver-example/ user@svr:/etc/onlyoffice/documentserver-example$ ls default.json.dpkg-dist local.json nginx user@svr:/etc/onlyoffice/documentserver-example$