在 Linux Mint 中,当我运行命令时,sudo apt-get update
我收到错误:
Malformed entry 1 in list file /etc/apt/sources.list.d/lst_debian_repo.list (Component)
我在该文件中看到以下内容:
deb http://rpms.litespeedtech.com/debian/ main
我问这个问题是因为我想使用以下命令安装 PHP for Litespeed
sudo apt install lsphp72 lsphp72-curl lsphp72-imap lsphp72-mysql lsphp72-intl lsphp72-pgsql lsphp72-sqlite3 lsphp72-tidy lsphp72-snmp
但是当我运行上面的命令时,我收到以下错误:
E: Malformed entry 1 in list file /etc/apt/sources.list.d/lst_debian_repo.list (Component) E: The list of sources could not be read.
E: Malformed entry 1 in list file /etc/apt/sources.list.d/lst_debian_repo.list (Component) E: The list of sources could not be read.
答案1
语法中缺少发行版,请编辑条目,例如
“德布http://rpms.litespeedtech.com/debian杰西主要”
然后注册 LiteSpeed GPG 密钥并更新存储库
sudo xed /etc/apt/sources.list.d/lst_debian_repo.list
sudo wget -O /etc/apt/trusted.gpg.d/lst_debian_repo.gpg http://rpms.litespeedtech.com/debian/lst_debian_repo.gpg
sudo apt-get update