太长了;博士
如何在 Debian 上修复此错误
E: The repository 'https://deb.nodesource.com/node_current.x nodistro 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.
如果错误是运行这个
sudo add-apt-repository ppa:agornostal/ulauncher -y && sudo apt update
哪个是为 Ubuntu 设计的?
完整故事
我想在 Debian 11 机器上安装ulauncher,所以我在链接页面查找Ubuntu (Debian)指令,然后运行命令
sudo add-apt-repository universe -y && sudo add-apt-repository ppa:agornostal/ulauncher -y && sudo apt update && sudo apt install ulauncher
失败了,因为那是通过 PPA (Ubuntu) 安装,我没有读过,因为上面的Ubuntu (Debian)欺骗我认为这些说明是常见的(我通常是 ArchLinux 用户,所以我不是不再用于在 Ubuntu 或 Debian 上安装东西)。
错误很简单
Error: 'universe' invalid
所以我尝试执行
sudo add-apt-repository ppa:agornostal/ulauncher -y && sudo apt update && sudo apt install ulauncher
失败了
E: The repository 'http://ppa.launchpad.net/agornostal/ulauncher/ubuntu noble 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 'https://deb.nodesource.com/node_current.x nodistro 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.
那时我更仔细地阅读了说明,发现在 Debian 上我应该执行这些命令
sudo apt update && sudo apt install -y gnupg
gpg --keyserver keyserver.ubuntu.com --recv 0xfaf1020699503176
gpg --export 0xfaf1020699503176 | sudo tee /usr/share/keyrings/ulauncher-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/ulauncher-archive-keyring.gpg] \
http://ppa.launchpad.net/agornostal/ulauncher/ubuntu jammy main" \
| sudo tee /etc/apt/sources.list.d/ulauncher-jammy.list
sudo apt update && sudo apt install ulauncher
所以我尝试了,但错误仍然与上面相同,所以我知道我需要以某种方式撤消我的第一次针对 Ubuntu 的尝试。我试过这个:
sudo add-apt-repository -r ppa:agornostal/ulauncher
所以来自 Debian 特定指令的第一个命令
sudo apt update && sudo apt install -y gnupg
仍然有错误,但少了一些:
E: The repository 'https://deb.nodesource.com/node_current.x nodistro 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.
我该如何解决?
正如Marcus Müller 所说,您留下的错误似乎与您的 Ulauncher 安装无关。
要修复该错误,您可以:
保留 Node.js 存储库,并添加其密钥 - 按照Node.js 说明进行操作:
或删除存储库:
(假设存储库是在该文件中定义的)。