在 ubuntu 16.04 上安装 openssh-server 时出错

在 ubuntu 16.04 上安装 openssh-server 时出错

如果我执行以下操作,我不确定收到的错误是否与我的 apt-get 设置有关:

sudo apt-get update
...
sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ncurses-term openssh-client openssh-sftp-server ssh-import-id
Suggested packages:
  ssh-askpass libpam-ssh keychain monkeysphere rssh molly-guard
The following NEW packages will be installed:
  ncurses-term openssh-server openssh-sftp-server ssh-import-id
The following packages will be upgraded:
  openssh-client
1 upgraded, 4 newly installed, 0 to remove and 432 not upgraded.
Need to get 0 B/1.222 kB of archives.
After this operation, 5.133 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
dpkg: warning: files list file for package 'i965-va-driver:amd64' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libcrystalhd3:amd64' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

您知道如何修复这个问题吗?

答案1

要解决此问题,请打开终端并运行以下命令:

sudo apt-get install --fix-missing
sudo dpkg --configure -a
sudo apt-get install openssh-server

就是这样。

相关内容