我最近从 Ubuntu 14.04 升级到了 16.04。有几件事没有成功,例如 ttf-mscorefonts-installer(不知道为什么),当我尝试安装它们时收到警告。
命令...
sudo apt-get install <package>
...除了产生通常的行为外,还产生了多个警告实例...
N: Ignoring file '50unattended-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
同一目录下有一个同名但没有.ucf-old
扩展名的文件。这是升级过程的遗留问题吗?我可以只删除“旧”文件吗?
最佳答案
文件 50unattended-upgrades.ucf-old
由实用程序 ucf ["update configuration files"] 创建,它在升级期间与用户交互,询问是覆盖还是保留旧的配置文件。后缀为 .ucf-old
的是副本。它保留供引用,可以安全删除。
来自 ucf manpage :
During the course of operations, when working with configuration files, ucf optionally creates copies of versions of the configuration file in question. For example, a file with the suffix ucf-old holds the old version of a configuration file replaced by [the utility] ucf. [...] the maintainer scripts should consider purging copies of the configuration file with these extensions during purge.
askubuntu 描述了 ucf 的行为.
关于ubuntu -/etc/apt/apt.conf.d/50unattended-upgrades.ucf-old 是什么,我可以安全地删除它吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41456504/