如何切换或修复 Ubuntu 19.04 的 ppa 配置和源?

如何切换或修复 Ubuntu 19.04 的 ppa 配置和源?

我刚刚在 Acer Nitro 5 笔记本电脑上安装了 Ubuntu 19.04。

我在按照 gorails.com 上的说明尝试安装 ruby​​ 和 ruby​​ on rails 时遇到了麻烦

运行以下命令时:

$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

我收到以下错误:

## Installing the NodeSource Node.js 8.x LTS Carbon repo...    
## Populating apt-get cache...    
+ apt-get update
Hit:1 http://apt.postgresql.org/pub/repos/apt disco-pgdg InRelease
Hit:2 https://dl.winehq.org/wine-builds/ubuntu cosmic InRelease                                  
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                     
Hit:4 http://us.archive.ubuntu.com/ubuntu disco InRelease                                        
Get:5 http://us.archive.ubuntu.com/ubuntu disco-updates InRelease [88.4 kB]                      
Hit:6 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu disco InRelease                       
Hit:7 http://security.ubuntu.com/ubuntu disco-security InRelease                                 
Hit:8 http://dl.google.com/linux/chrome/deb stable Release                                       
Hit:9 http://us.archive.ubuntu.com/ubuntu disco-backports InRelease                              
Hit:10 http://ppa.launchpad.net/lutris-team/lutris/ubuntu disco InRelease
Hit:11 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu disco InRelease
Ign:13 http://ppa.launchpad.net/paulo-miguel-dias/pkppa/ubuntu disco InRelease
Hit:14 http://ppa.launchpad.net/webupd8team/java/ubuntu disco InRelease
Err:15 http://ppa.launchpad.net/paulo-miguel-dias/pkppa/ubuntu disco Release
  404  Not Found [IP: 91.189.95.83 80]
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt disco-pgdg InRelease' doesn't support architecture 'i386'
E: The repository 'http://ppa.launchpad.net/paulo-miguel-dias/pkppa/ubuntu disco 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

电力供应协议你已经添加了 do没有文件适用于你的 Ubuntu 版本(19.04 或迪斯科澳洲野狗(Dingo)。

因此您需要使用以下命令将其从系统中删除:

sudo add-apt-repository -r ppa:paulo-miguel-dias/pkppa

然后继续按照指南进行操作。

相关内容