尝试通过 Chrome 操作系统安装 adb 调试侧加载程序后,我的 Linux 终端中出现错误消息。我不认为这与此有任何关系,我运行时看到的错误消息sudo apt-get install android-tools-adb
是:
E: Type 'new' is not known on line 4 in source list /etc/apt/sources.list
E: The list of sources could not be read.
此错误消息是什么以及如何修复它?
答案1
发布您的文件内容/etc/apt/sources.list
,或者如果您首先想检查,您可以查看该文件中的第 4 行是否与其余行看起来不同。当您尝试安装 sideloader 时,您的sources.list 似乎以某种方式损坏了。
杰森·C.
答案2
命令行覆盖内容/etc/apt/sources.list
并解决以下错误(错误来自第4行)参见debian 维基:Sources.list:
E: Type 'new' is not known on line 4 in source list /etc/apt/sources.list
E: The list of sources could not be read.
打开终端并粘贴以下行:
cat <<-EOF | sudo tee /etc/apt/sources.list
deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main
deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main
EOF
sudo apt update
sudo apt -y install android-tools-adb