• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Failed to update Plesk..

CPro

New Pleskian
Hello,
I've a big problem I'm not able to update Plesk Onyx this happen every few weeks.
Last time I've still reinstalled the system with fresh plesk and all works fine but this cant be the solution.

Hope It can be fixed in other way..

Log:
Code:
Installation started in background
Checking whether the package dependencies are resolved.
Installing packages
is running
Stopping sw_engine service... done
===> Cumulative APS controller database (apsc) upgrade has been started.
===> Cumulative upgrade of APS controller database has been completed.
===> Cumulative Plesk database upgrade (revertable stage) has been started.
===> Preparing Plesk database upgrade (revertable stage).
===> Cumulative upgrade of Plesk database (revertable stage) has been completed.
===> Plesk database scheme upgrade has been started.
Applying migrations from: /opt/psa/bootstrapper/pp17.0.17-bootstrapper/migrations/
===> Plesk database scheme upgrade has been completed.
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom libmldbm-perl
libnet-daemon-perl libsql-statement-perl tinyca
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl
The following packages will be upgraded:
apache2 apache2-bin apache2-data mysql-client-5.7 mysql-server-5.7
mysql-server-core-5.7 plesk-php56 plesk-php56-bcmath plesk-php56-cli
plesk-php56-dba plesk-php56-enchant plesk-php56-fpm plesk-php56-gd
plesk-php56-imap plesk-php56-intl plesk-php56-ldap plesk-php56-mbstring
plesk-php56-mcrypt plesk-php56-mysql plesk-php56-odbc plesk-php56-opcache
plesk-php56-pdo plesk-php56-pear plesk-php56-pgsql plesk-php56-process
plesk-php56-pspell plesk-php56-snmp plesk-php56-soap plesk-php56-tidy
plesk-php56-xml plesk-php56-xmlrpc plesk-php70 plesk-php70-bcmath
plesk-php70-cli plesk-php70-dba plesk-php70-enchant plesk-php70-fpm
plesk-php70-gd plesk-php70-imagick plesk-php70-imap plesk-php70-intl
plesk-php70-ldap plesk-php70-mbstring plesk-php70-mcrypt plesk-php70-mysql
plesk-php70-odbc plesk-php70-opcache plesk-php70-pdo plesk-php70-pear
plesk-php70-pgsql plesk-php70-process plesk-php70-pspell plesk-php70-snmp
plesk-php70-soap plesk-php70-tidy plesk-php70-xml plesk-php70-xmlrpc
plesk-php71 plesk-php71-bcmath plesk-php71-cli plesk-php71-dba
plesk-php71-enchant plesk-php71-fpm plesk-php71-gd plesk-php71-imap
plesk-php71-intl plesk-php71-ldap plesk-php71-mbstring plesk-php71-mcrypt
plesk-php71-mysql plesk-php71-odbc plesk-php71-opcache plesk-php71-pdo
plesk-php71-pear plesk-php71-pgsql plesk-php71-process plesk-php71-pspell
plesk-php71-snmp plesk-php71-soap plesk-php71-tidy plesk-php71-xml
plesk-php71-xmlrpc psa-updates
Extracting templates from packages: 35%Extracting templates from packages: 70%Extracting templates from packages: 100%
Preconfiguring packages ...
83 upgraded, 2 newly installed, 0 to remove and 379 not upgraded.
Need to get 0 B/32.5 MB of archives.
After this operation, 2469 kB of additional disk space will be used.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%dpkg: unrecoverable fatal error, aborting:
files list file for package 'plesk-php55-xml' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
Plesk is down, performing full restart.
Starting sw_engine service... done
Starting sw_cp_server service... already started
Starting mysql service... already started
Starting named service... already started
Starting mailer service... already started
Starting spamfilter service... already started
Starting drweb service... unused
Starting tomcat service... unused
Starting apache service... already started
Starting xinetd service... already started
Error: An error occurred on attempt to install packages.
Attention! Your software might be inoperable.
Please contact product technical support.

I cant also install something else wie apt-get install command.
So this solution dont work for me just same error ("files list file for package 'plesk-php55-xml' is missing final newline")

Greetz
 
Hi CPro,

pls. use for example:
Code:
aptitude purge plesk-php55
... followed by
Code:
apt-get clean

apt-get update

aptitude upgrade
... folowed by
Code:
plesk installer --select-product-id plesk --select-release-current --reinstall-patch --install-component base

As you now should have an up-to-date system, you could now consider to RE-install your additional Plesk PHP 5.5 version ( and its additional modules ) with for example:
Code:
apt-cache search plesk-php | grep 55

aptitude install ALL-NEEDED-PHP-packages--which-you-just-found-with-yoursearch--separated-with-spaces
 
Just getting same error by doing apt-get purge plesk-php55
(dont have installed aptitude and cant install it because of same error)

Code:
files list file for package 'plesk-php55-xml' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
 
Hi CPro,

you are certainly able to install "aptiude" with the help of "apt-get" and/or "dpkg", even that you have current issues/errors/problems with "apt-get". ;)

Download a package to the current directory, where you want to use the "apt-get" - command ( example ):
Code:
mkdir -p /root/addons

cd /root/addons

apt-get download aptitude

dpkg -i *.deb
Instead of "*.deb" you may certainly use as well the fullname of your just downloaded packagename, which you see over your command, when performing the suggested "apt-get download" command. You would then avoid, that "dpkg" installs ( possible ) additional *.deb - packages, located at /root/addons. :)


Another method is to use:
Code:
apt-get -d install aptitude
... which will ONLY download aptitude and it will store the "aptitude" - deb - file at the folder "/var/cache/apt/archives". To install it, you can either use "apt-get" or "dpkg":
Code:
apt-get install /var/cache/apt/archives/THE-FULL-NAME-OF-THE-JUST-DOWNLOADED-DEB-FILE
or
Code:
dpkg -i /var/cache/apt/archives/THE-FULL-NAME-OF-THE-JUST-DOWNLOADED-DEB-FILE


If you desire MORE informations, about how to use "apt-get" or "dpkg", pls. inform yourself with the help of your manual pages, with the example commands:
Code:
man apt-get
or
Code:
man dpkg
... or consider to visit the official wiki - pages: => apt-get › apt › Wiki › ubuntuusers.de / dpkg › Wiki › ubuntuusers.de


The very same goes for UN-installing packages from your server on Debina/Ubuntu based systems: You have always the choice to use "dpkg", where you have additional options, which you can use to force an uninstall procedure for specific packages:
Code:
dpkg --purge --force-all plesk-php55-xml
 
First big thanks for the really fast response.

I know this methods too but I still get same issue doesn't matter if I use apt-get or dpkg to install something like aptitude and also dpkg to uninstall a package.

Still getting same issue:
Code:
files list file for package 'plesk-php55-xml' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
 
Hi CPro,

pls. consider to add additional mirrors, to avoid possible issues/errors/problems - a previous suggestion has been given by me here: => #5


Pls. don't try to shorten commands and their outputs from your command line, as they are usefull to investigate possible issues/errors/problems and people willing to help you have something to start with their investigations. Pls. keep in mind, that the MORE you provide as informations, the better will be the suggestions and recommendations from people willing to help you. ;)
 
I dont know if the mirrors are the problem because it caused on install.
The full log after error appears:

Code:
root@###:/etc/apt# dpkg -i /var/cache/apt/archives/aptitude_0.7.4-2ubuntu2_amd64.deb
Vormals nicht ausgewähltes Paket aptitude wird gewählt.
dpkg: nicht behebbarer fataler Fehler, Abbruch:
 Abschließender Zeilenvorschub fehlt in Dateilisten-Datei des Paketes »plesk-php55-xml«
root@###:/etc/apt#

I appreciate your help very much.
 
Hey,
No I tried that command too but same error was shown.

I've cleared the dpkg status and status-old and I'm able to install the aptitude but it doesn't solved the problem that plesk cant do their updates.:(

I'll post log later
 
Back
Top