Linux Mint 오류: "목록 파일 /etc/apt/sources.list.d/lst_debian_repo.list(구성 요소)의 항목 1 형식이 잘못되었습니다."

Linux Mint 오류: "목록 파일 /etc/apt/sources.list.d/lst_debian_repo.list(구성 요소)의 항목 1 형식이 잘못되었습니다."

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

다음 명령을 사용하여 Litespeed용 PHP를 설치하고 싶기 때문에 이 질문을 드립니다.

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

관련 정보