撤销添加 Ubuntu 专用存储库并在 Debian 上更新的效果

撤销添加 Ubuntu 专用存储库并在 Debian 上更新的效果

太长了;博士

如何在 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 机器上,所以我寻找指令乌班图 (Debian)在链接页面上,然后运行命令

sudo add-apt-repository universe -y && sudo add-apt-repository ppa:agornostal/ulauncher -y && sudo apt update && sudo apt install ulauncher

失败了,因为那是为了通过 PPA 安装(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.

我该如何解决?

答案1

作为马库斯·穆勒 说,您留下的错误似乎与您的 Ulauncher 安装无关。

要修复该错误,您可以:

  • 保留 Node.js 存储库,并添加其密钥 — followNode.js 指令:

    curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key |
    sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
    
  • 或删除存储库:

    rm /etc/apt/sources.list.d/nodesource.list
    

    (假设存储库是在该文件中定义的)。

相关内容