新しいkdeネオンにnodejsをインストールすると、「E:リポジトリ 'http://deb.debian.org/debian bionic Release'にリリースファイルがありません。」

新しいkdeネオンにnodejsをインストールすると、「E:リポジトリ 'http://deb.debian.org/debian bionic Release'にリリースファイルがありません。」

このコマンドを実行します

sudo apt-get install curl software-properties-common
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -

kde ネオンとエラー情報

## Installing the NodeSource Node.js 14.x repo...


## Populating apt-get cache...

+ apt-get update
Hit:1 http://by.archive.ubuntu.com/ubuntu bionic InRelease                             
Hit:2 http://by.archive.ubuntu.com/ubuntu bionic-updates InRelease                     
Hit:3 http://by.archive.ubuntu.com/ubuntu bionic-backports InRelease                   
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease                      
Hit:5 https://dl.yarnpkg.com/debian stable InRelease                                   
Ign:7 http://security.debian.org/debian-security bionic InRelease                      
Ign:8 http://deb.debian.org/debian bionic InRelease                                    
Get:9 http://archive.neon.kde.org/user bionic InRelease [153 kB]                       
Err:10 http://security.debian.org/debian-security bionic Release                       
  404  Not Found [IP: 151.101.112.204 80]
Hit:11 http://dl.google.com/linux/chrome/deb stable InRelease                          
Ign:12 http://deb.debian.org/debian bionic-updates InRelease                           
Err:13 http://deb.debian.org/debian bionic Release                                     
  404  Not Found [IP: 151.101.112.204 80]
Err:14 http://deb.debian.org/debian bionic-updates Release                             
  404  Not Found [IP: 151.101.112.204 80]
Hit:15 https://repo.skype.com/deb stable InRelease                              
Hit:6 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease          
Reading package lists... Done                                                          
E: The repository 'http://security.debian.org/debian-security bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://deb.debian.org/debian bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://deb.debian.org/debian bionic-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error executing command, exiting

ベストアンサー1

または、ディレクトリ/etc/apt/sources.list内のファイルには、/etc/apt/sources.list.d/Ubuntuのバージョン名と混合されたDebianパッケージソースが含まれています。これらのリポジトリは存在しません。使用しているUbuntuのバージョンに適用可能なパッケージソースのみを追加したことを確認してください。

走る

grep -rl 'debian\.org/debian' /etc/apt/sources.list*

これらのエントリを含むファイルを見つけます。

そのファイルを編集するか (たとえば)を含むすべてのエントリを削除するかhttp://deb.debian.org/debian、そのエントリのみを含む単一のファイルの場合はファイルを削除します。http://security.debian.org/debian-securitysudo nano /etc/apt/sources.list/etc/apt/sources.list.d/

その後実行

curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -

またきつくついた

sudo apt-get install -y nodejs

インストールするnodejs

おすすめ記事