1
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
dpkg: warning: files list file for package 'libqt5webkit5:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsamplerate0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsane-hpaio:amd64' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'policykit-desktop-privileges' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

How to fix ? i'm trying to remove the package but not able to remove .

guiverc
  • 33,561

1 Answers1

0

You have to trick over this problem. Remove the problematic file-list, reinstall the package by:

sudo rm /var/lib/dpkg/info/policykit-desktop-privileges.list

sudo apt-get update sudo apt-get install --reinstall policykit-desktop-privileges

then fix three other mentioned packages by

sudo apt-get install --reinstall libqt5webkit5:amd64
sudo apt-get install --reinstall libsamplerate0:amd64 
sudo apt-get install --reinstall libsane-hpaio:amd64

then install all upgrades for current release

sudo apt-get upgrade # upgrade packages
sudo apt-get dist-upgrade # upgrade packages with all new dependencies

and then consider upgrading to 18.04 LTS as was recommended in comments.

N0rbert
  • 103,263