cornychatuser@base-ubuntu:~$ sudo apt install npm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
npm : Depends: node-agent-base but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-cacache (>= 17) but it is not going to be installed
Depends: node-chalk (>= 5.1.2-2~) but it is not going to be installed
Depends: node-cli-table3
Depends: node-columnify but it is not going to be installed
Depends: node-cssesc
Depends: node-debug but it is not going to be installed
Depends: node-emoji-regex
Depends: node-gyp but it is not going to be installed
Depends: node-http-proxy-agent but it is not going to be installed
Depends: node-https-proxy-agent but it is not going to be installed
Depends: node-mkdirp but it is not going to be installed
Depends: node-ms but it is not going to be installed
Depends: node-nopt but it is not going to be installed
Depends: node-normalize-package-data but it is not going to be installed
Depends: node-npm-bundled but it is not going to be installed
Depends: node-npm-normalize-package-bin
Depends: node-npm-package-arg (>= 10) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-postcss-selector-parser
Depends: node-read-package-json but it is not going to be installed
Depends: node-rimraf but it is not going to be installed
Depends: node-semver but it is not going to be installed
Depends: node-string-width but it is not going to be installed
Depends: node-strip-ansi but it is not going to be installed
Depends: node-tar but it is not going to be installed
Depends: node-validate-npm-package-name but it is not going to be installed
Depends: node-which but it is not going to be installed
Depends: nodejs:any
Recommends: node-tap but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
cornychatuser@base-ubuntu:~$ sudo apt install npm Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: npm : Depends: node-agent-base but it is not going to be installed Depends: node-archy but it is not going to be installed Depends: node-cacache (>= 17) but it is not going to be installed Depends: node-chalk (>= 5.1.2-2~) but it is not going to be installed Depends: node-cli-table3 Depends: node-columnify but it is not going to be installed Depends: node-cssesc Depends: node-debug but it is not going to be installed Depends: node-emoji-regex Depends: node-gyp but it is not going to be installed Depends: node-http-proxy-agent but it is not going to be installed Depends: node-https-proxy-agent but it is not going to be installed Depends: node-mkdirp but it is not going to be installed Depends: node-ms but it is not going to be installed Depends: node-nopt but it is not going to be installed Depends: node-normalize-package-data but it is not going to be installed Depends: node-npm-bundled but it is not going to be installed Depends: node-npm-normalize-package-bin Depends: node-npm-package-arg (>= 10) but it is not going to be installed Depends: node-npmlog but it is not going to be installed Depends: node-postcss-selector-parser Depends: node-read-package-json but it is not going to be installed Depends: node-rimraf but it is not going to be installed Depends: node-semver but it is not going to be installed Depends: node-string-width but it is not going to be installed Depends: node-strip-ansi but it is not going to be installed Depends: node-tar but it is not going to be installed Depends: node-validate-npm-package-name but it is not going to be installed Depends: node-which but it is not going to be installed Depends: nodejs:any Recommends: node-tap but it is not going to be installed E: Unable to correct problems, you have held broken packages.