![apt-get 更新错误 - 50unattended-upgrades.ucf-dist](https://linux22.com/image/890999/apt-get%20%E6%9B%B4%E6%96%B0%E9%94%99%E8%AF%AF%20-%2050unattended-upgrades.ucf-dist%20.png)
我在执行时遇到了一些错误apt-get update
。有些似乎是致命的,有些则被忽略了,但无论如何,我想删除它们以防止进一步出现问题。
它一直正常工作直到我添加:
add-apt-repository ppa:scribus/ppa
第一个错误是:
N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
这似乎不会造成问题,就像之前看到过的那样。但是,它仍然每次都出现。
第二个错误是:
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
最后一个错误是:
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
还有其他错误,但我会在纠正这些错误后列出它们。
答案1
没有必要的话就删除:
sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist