ubuntu -/etc/apt/apt.conf.d/50unattended-upgrades.ucf-old 是什么,我可以安全地删除它吗?

标签 ubuntu ubuntu-16.04

我最近从 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/

相关文章:

linux - 每次我尝试构建我的 Docker Ubuntu 16 :04 image 时出现错误请求 (400) 消息

python - 使用 Fabric 检查路径是否存在

linux - Bless 十六进制编辑器 - 比较 2 个二进制文件

linux - Brother QL-720NW 指定介质尺寸似乎被忽略

ubuntu - 在 Travis-CI 中设置语言环境(当不允许使用 sudo 时)

linux - 查找ubuntu中某个守护进程的包名和服务名

python - 如何精确返回 bash 脚本的输出值有命令

linux - 为具有管道的 watch 命令添加别名

windows-10 - 无法连接虚拟设备sata0 :1 because no corresponding device is available on the host

ubuntu - 我们可以在谷歌云中使用导出的图像从谷歌云之外的图像创建一个实例吗