包管理器错误,无法安装新包

包管理器错误,无法安装新包

当我尝试安装任何软件包时,我收到以下错误,我正在使用 Linux Mint

sudo apt-get install gtk-recordmydesktop

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  recordmydesktop
The following NEW packages will be installed
  gtk-recordmydesktop recordmydesktop
0 to upgrade, 2 to newly install, 0 to remove and 63 not to upgrade.
Need to get 0 B/179 kB of archives.
After this operation, 974 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package recordmydesktop.
dpkg: warning: files list file for package 'less' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'gir1.2-panelapplet-4.0' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgail-3-0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'git-flow' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'laptop-detect' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
 files list file for package `pepperflashplugin-nonfree' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)

答案1

通常,当 /var/lib/dpkg/info/* 下的文件损坏时,会提示此错误消息。关于此问题,请重命名文件示例 git-flow.less 并运行以下命令,然后重新安装

apt-get remove git-flow --purge 
apt-get install git-flow

希望这可以解决你的问题

相关内容