找到存储库 /etc/apt/sources.list 并重新启动 parrot 后,我​​必须更新

找到存储库 /etc/apt/sources.list 并重新启动 parrot 后,我​​必须更新
[✗] ─ [zorillo @ zorillo-virtualbox] ─ [~] └──╼ $ sudo apt-get upgrade
apt upgrade is unsafe on rolling release distributions.
using apt full-upgrade instead
use apt upgrade --force to override
E: Entry 11 incorrectly specified in list file /etc/apt/sources.list (URI parse) E: The source lists could not be read. E: Entry 11 incorrectly specified in list file /etc/apt/sources.list (URI parse) E: The source lists could not be read. E: Entry 11 incorrectly specified in list file /etc/apt/sources.list (URI parse) E: The source lists could not be read.
parrotsec
E: Entrada 11 mal especificada en list fichero /etc/apt/sources.list (URI parse)
E: No se pudieron leer las listas de fuentes.
E: Entrada 11 mal especificada en list fichero /etc/apt/sources.list (URI parse)
E: No se pudieron leer las listas de fuentes.
E: Entrada 11 mal especificada en list fichero /etc/apt/sources.list (URI parse)
E: No se pudieron leer las listas de fuentes.

答案1

/etc/apt/sources.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

您可以使用以下命令:

cat <<EOF |sudo tee /etc/apt/sources.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
EOF

从以下位置删除所有文件/etc/apt/sources.list.d/

sudo rm /etc/apt/sources.list.d/*

相关内容