Debian 9 설치 문제의 Vue.js

Debian 9 설치 문제의 Vue.js

Debian 9 OS에 Vue.js를 설치하려고 하는데 다음 오류 메시지가 나타납니다: Illegal Instruction] - RollbackFailedOptional: verb npm-session 1fd93108cdc88b2

이 명령을 수행할 때: npm 설치 vue

npm 버전은 6.13.7입니다.

나한테 문제가 생겼어sudo apt-get 업데이트, 이로 인해 다음 오류가 발생합니다.

Ign:25 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main DEP-11 64x64 Icons
Fetched 15.4 kB in 8s (1,813 B/s)                   
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu focal Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ppa.launchpad.net/webupd8team/brackets/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: The repository 'http://ppa.launchpad.net/webupd8team/brackets/ubuntu bionic InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/focal/main/source/Sources  404  Not Found [IP: 91.189.95.83 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

StackExchange와 웹에서 이 오류를 검색하고 관련 해결 방법을 시도했지만 성공하지 못했습니다.

답변1

디렉터리를 변경한 /etc/apt/sources.list.d다음 Ondrej 및 Barckets PPA를 제거하고 php버전과 barcket도 제거합니다(패키지는 Ubuntu Bionic 및 Focal에 속함).

Barckets를 설치하려면 deb 파일을 다운로드하세요.여기에서:

sudo apt install gdebi
wget https://github.com/adobe/brackets/releases/download/release-1.14.1/Brackets.Release.1.14.1.64-bit.deb
sudo gdebi Brackets.Release.1.14.1.64-bit.deb

ondrej 저장소를 추가하려면 다음을 사용하십시오.

sudo apt install apt-transport-https lsb-release ca-certificates curl
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
printf "deb https://packages.sury.org/php/ $(lsb_release -sc) main" |sudo tee  /etc/apt/sources.list.d/php.list
sudo apt update

vue그리고 vue-cli다음을 설치하세요:

npm install -g npm
npm install -g vue
npm install -g @vue/cli

관련 정보