apt-update命令在鹦鹉安全性中不起作用

时间:2019-03-15 15:06:08

标签: parrot-os

apt update之后收到的输出:

Ign:1 cdrom://[Debian GNU/Linux 4.5 _Parrot_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190127-02:06] parrot InRelease
Err:2 cdrom://[Debian GNU/Linux 4.5 _Parrot_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190127-02:06] parrot Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Get:3 http://deb.parrotsec.org/parrot parrot InRelease [14.6 kB]
Reading package lists... Done    
E: The repository 'cdrom://[Debian GNU/Linux 4.5 _Parrot_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190127-02:06] parrot Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

我该如何克服呢?

3 个答案:

答案 0 :(得分:0)

是的,您可以从源清单中删除CD-ROM(或原始安装介质)。

使用以下命令编辑sources.list文件:

sudo nano /etc/apt/sources.list

(注释是一个散列(#)-因此请在deb cdrom: ...行的开头弹出其中的一个)

然后尝试sudo apt update

答案 1 :(得分:0)

/etc/apt/sources.list 应该为空

/etc/apt/sources.list.d/parrot.list 应包含以下内容

deb https://deb.parrot.sh/parrot/ rolling main contrib non-free 
deb-src https://deb.parrot.sh/parrot/ rolling main contrib non-free 
deb https://deb.parrot.sh/parrot/ rolling-security main contrib non-free
deb-src https://deb.parrot.sh/parrot/ rolling-security main contrib non-free

https://parrotlinux.org/docs/faq/#how-do-i-upgrade-my-system

答案 2 :(得分:0)

关于如何升级系统,请查看Documentation

BASE_URL更新已久!

始终使用

sudo apt-get

sudo parrot-upgrade