我的源列表文件出错。我试过所有的在线论坛,但都没有效果。任何帮助都将不胜感激。
cat /etc/apt/sources.list.d/beaver.list的输出:
#Manage apt's list of trusted keys
apt-key add <file> - add the key contained in <file> ('-' for stdin)
apt-key del <keyid> - remove the key <keyid>
apt-key export <keyid> - output the key <keyid>
apt-key exportall - output all trusted keys
apt-key update - update keys using the keyring package
apt-key net-update - update keys using the network
apt-key list - list keys
apt-key finger - list fingerprints
apt-key adv - pass advanced options to gpg (download key)
#If no specific keyring file is given the command applies to all keyring files.发布于 2020-09-28 20:41:15
假设/etc/apt/ sudo rm -iv beaver.list.save.1中的命令行为list.d/应该可以工作。
有关CLI删除的帮助位于https://help.ubuntu.com/community/DeletingFiles -v,用于详细内容,如果需要,请使用-i进行交互确认所发生的事情。您可能需要-ivf来强制
更新:(抱歉,不能评论):您在命令开始时是sudo吗?这会强制超级用户的权限,并且可以强制删除文件(-ivf)。您需要提供密码(作为管理员),如果您有一个“正常”用户,您首先需要su [admin user name],然后发出命令-或者从右上角注销/切换用户,并以管理员用户身份登录。
https://askubuntu.com/questions/1278363
复制相似问题