Lubuntu 16.04をインストールする実行するたびにsudo apt-get update
、次のエラーが発生します。
W: The repository «cdrom: // Lubuntu 16.04.2 LTS _Xenial Xerus_ - Release i386 (20170216) xenial Release» does not have a Publication file.
N: Data from a repository like this can not be authenticated and therefore its use is potentially dangerous.
N: See the apt-secure (8) man page for details on creating repositories and configuring users.
W: The repository «http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial Release» does not have a Publication file.
N: Data from a repository like this can not be authenticated and therefore its use is potentially dangerous.
N: See the apt-secure (8) man page for details on creating repositories and configuring users.
E: Failed to get cdrom: // Lubuntu 16.04.2 LTS _Xenial Xerus_ - Release i386 (20170216) / dists / xenial / main / binary-i386 / Packages Use «apt-cdrom» to make APT recognize this CD. You can not use «apt-get update» to add new CDs
E: Failed to obtain http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/xenial/main/binary-i386/Packages 404 Not Found
E: Some index files could not be downloaded, have been omitted, or old ones used instead.
I have run apt-cdrom as it says, but nothing happens.
Any idea what I'm doing wrong?
I have tried to install Node.js and it also gave me error:
npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $ USER: $ (id -gn $ USER) /home/miguel/.config
キャッシュをクリーンアップしてみますが、コマンドsudo npm cache clean-fでコマンドが機能しませんでした。エラーを修正するために他に何ができるかわかりません。ありがとうございました。
「W:」は無視できる警告であり、CD-ROM(またはインストールメディア)のみが存在しないことを示します。これを削除またはコメントアウトすることができます(間違えた場合、または将来何らかの理由で必要になった場合に復元できるため、コメントアウトすることをお勧めします)
sudo vim /etc/apt/sources.list
行の先頭に「#」を付けます。この行はコメントになります。これは、システムによって無視されることを意味します。(vimの代わりに使用する代わりに別のテキストエディタを使用することもできますvim
)
私が見たPPA(http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/経由)は、リリース9.10から14.10までをカバーしているため、16.04(Xenial)ではないことがわかります。したがって、それはあなたには役に立たないので、削除する必要があります。削除する方法については、別のページを参照してください
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加