当我想安装 nvidia-355 时,我得到了;
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nvidia-355 : Depends: xorg-video-abi-11 but it is not installable or
xorg-video-abi-12 but it is not installable or
xorg-video-abi-13 but it is not installable or
xorg-video-abi-14 but it is not installable or
xorg-video-abi-15 but it is not installable or
xorg-video-abi-18 but it is not installable or
xorg-video-abi-19 but it is not installable
Recommends: libcuda1-355 but it is not going to be installed
Recommends: nvidia-opencl-icd-355 but it is not going to be installed
N: Ignoring file '50unattended-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Unable to correct problems, you have held broken packages.
每当我想更新或安装某些东西时,我总是会得到
N: Ignoring file '50unattended-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
有什么办法可以解决这个问题吗?
答案1
由于您成功使用了apt
或apt-get
中的任何一个other
被忽略该文件,可以推断它没有使用文件。
因此,您可以将其移到其他地方进行检查:
sudo mv --target-directory=/tmp /etc/apt/apt.conf.d/50unattended-upgrades.ucf-old
或者直接删除它:
sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-old