데비안 패키지 npm을 설치하고 apt-get을 활성화하여 libssl-dev를 제거해 보세요.

데비안 패키지 npm을 설치하고 apt-get을 활성화하여 libssl-dev를 제거해 보세요.
:~/$ uname -a
Linux hostname 4.9.0-4-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux

내 생각에는 명확한 종속성 트리가 있고 손상된 패키지가 없는 것 같습니다.

:~/$ sudo apt-get check
Reading package lists... Done
Building dependency tree       
Reading state information... Done

그러나 설치하려고 하면 npmapt-get이 다음을 제거하려고 합니다 libssl-dev.

:~$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libldns2 libssl-doc
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gyp libjs-inherits libjs-node-uuid libssl1.0-dev libuv1-dev node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules
  node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob
  node-graceful-fs node-gyp node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch
  node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request
  node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore node-validate-npm-package-license
  node-which node-wrappy node-yallist nodejs nodejs-dev nodejs-doc
Suggested packages:
  node-hawk node-aws-sign node-oauth-sign node-http-signature debhelper
The following packages will be REMOVED:
  libldns-dev libssl-dev
The following NEW packages will be installed:
  gyp libjs-inherits libjs-node-uuid libssl1.0-dev libuv1-dev node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules
  node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob
  node-graceful-fs node-gyp node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch
  node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request
  node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore node-validate-npm-package-license
  node-which node-wrappy node-yallist nodejs nodejs-dev nodejs-doc npm
0 upgraded, 71 newly installed, 2 to remove and 32 not upgraded.
Need to get 7,517 kB of archives.
After this operation, 25.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

내 거 sources.list:

$ cat /etc/apt/sources.list

deb http://ftp.us.debian.org/debian sid main contrib non-free
deb-src http://ftp.us.debian.org/debian sid main contrib non-free

# 3rd party
# deb http://www.deb-multimedia.org unstable main non-free
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
# deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable
deb http://http.us.debian.org/debian/ stretch main non-free contrib

어떤 아이디어가 있나요? 제가 버그를 보고해야 한다고 생각하시나요?

답변1

당신은 아무 잘못도 하지 않았습니다:npm에 의존한다node-gyp,때에 따라 다르지nodejs-dev,때에 따라 다르지libssl1.0-dev, 이는 다음과 일치합니다.libssl-dev. 따라서 현재는 둘 다 설치하는 것이 불가능하며 데비안 안정 버전에 npm설치하는 libssl-dev것은 다음과 같습니다 .버그 #850660.

상황의 변경 사항에 대한 알림을 받기 위해 오류를 구독하는 것 외에는 할 수 있는 일이 많지 않습니다.

답변2

나는 nvm에서 노드를 설치하여 이 문제를 "해결"했습니다. https://github.com/creationix/nvm

관련 정보