mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-03-21 02:10:11 +08:00
commit
a25dfd86d2
@ -1,144 +0,0 @@
|
||||
[#]: subject: "Fixing Cannot add PPA: ''This PPA does not support jammy'' Error"
|
||||
[#]: via: "https://itsfoss.com/cannot-add-ppa-error/"
|
||||
[#]: author: "Abhishek Prakash https://itsfoss.com/author/abhishek/"
|
||||
[#]: collector: "lujun9972/lctt-scripts-1693450080"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
Fixing Cannot add PPA: ''This PPA does not support jammy'' Error
|
||||
======
|
||||
|
||||
So, here's the scenario. You are trying to install a software in Ubuntu using a PPA.
|
||||
|
||||
You add the PPA repository with 'sudo add-apt-repository' and when it updates the package cache, it generates an error:
|
||||
|
||||
**Cannot add PPA: ''This PPA does not support xyz''**
|
||||
|
||||
Where XYZ is the [codename of the Ubuntu version you are using][1].
|
||||
|
||||
📋
|
||||
|
||||
****Here's why it is happening and what you can do about it**** :
|
||||
|
||||
\- The PPA is not available for the Ubuntu version you are using
|
||||
\- You should look for other sources for installing that application
|
||||
\- If desperate, you can download the .deb file from the PPA webpage
|
||||
|
||||
I'll discuss all the above in detail.
|
||||
|
||||
### Check if PPA is available for your Ubuntu version or not
|
||||
|
||||
First thing first, get the details of your Ubuntu version and codename using this command in the terminal:
|
||||
|
||||
```
|
||||
|
||||
lsb_release -a
|
||||
|
||||
```
|
||||
|
||||
The output will have the details:
|
||||
|
||||
![Here, I am using Ubuntu version 23.04 that case codename lunar][2]
|
||||
|
||||
Now, go to Ubuntu's Launchpad website that hosts all the PPAs:
|
||||
|
||||
[Go to Launchpad PPA][3]
|
||||
|
||||
Here, look for the PPA that is troubling you. For that you have to use the PPA maintainer's name.
|
||||
|
||||
For example, if `ppa:jstaf/onedriver` is causing trouble, search for the maintainer `jstaf`.
|
||||
|
||||
![Enter the PPA's maintainer name and search for it][4]
|
||||
|
||||
A maintainer may have more than one software repository. Click on the one you wanted to install.
|
||||
|
||||
In here, you should **click on the "Any Series" dropdown button** besides "Published in".
|
||||
|
||||
![Click on Any series dropdown button to see the supported Ubuntu versions][5]
|
||||
|
||||
Check if you see the codename of the Ubuntu version you are using. If it's not there, the PPA is not available for your Ubuntu version.
|
||||
|
||||
### What should you do if the PPA does not support your Ubuntu version
|
||||
|
||||
You see, a developer (or maintainer) creates a repository and makes the software available for the Ubuntu version they were using.
|
||||
|
||||
With time, Ubuntu releases newer versions. Now, an active maintainer will release the software for the new Ubuntu version. But that's not always the case. If the maintainer is not active anymore, the repository won't be updated. People like you who were trying to follow a tutorial instruction will see this error.
|
||||
|
||||
Now, you have two options:
|
||||
|
||||
#### Option 1: Look for the software elsewhere
|
||||
|
||||
There are several possibilities here.
|
||||
|
||||
**The same software might be available for newer Ubuntu versions from another PPA. Look for it on Launchpad website or the internet.**
|
||||
|
||||
How does it happen? Many original software developers just release the source code so some volunteers create the Debian package and distribute it from the launchpad so that Ubuntu users like you can install the software easily. More than one volunteer can create their own personal package archive (PPA) for the same software. You should use the active ones.
|
||||
|
||||
For example, if I looked for `onedriver` package, I can see that it might be available in another PPA named [Ubuntu deployment][6].
|
||||
|
||||
![][7]
|
||||
|
||||
**Another option is to see if the package is available in other formats like Snap, Flatpak, AppImage.**
|
||||
|
||||
* Check [Snap store][8]
|
||||
* [Check for Flatpak][9] package
|
||||
* [Check for AppImages][10]
|
||||
|
||||
|
||||
|
||||
In some rare cases, the software may already be available in the Ubuntu repository.
|
||||
|
||||
For this, you have to be a smart user and search the internet. If you find another package format, well and good. Otherwise, the next step is for desperation.
|
||||
|
||||
#### Option 2: Download the deb file from the PPA
|
||||
|
||||
The PPA repositories provide you the Debian package. With the repository added, you also get updates (if any), directly with the system updates.
|
||||
|
||||
If the PPA is not updated for your Ubuntu version and you cannot find the software elsewhere, you can try downloading the deb package from the PPA Launchpad page.
|
||||
|
||||
![][11]
|
||||
|
||||
On the package details page, click on the carrot symbol and look for the deb files. Unless you are using a Raspberry Pi like board, you should go for amd64.
|
||||
|
||||
![Download deb package from PPA][12]
|
||||
|
||||
🚧
|
||||
|
||||
If the software is too old, the downloaded deb package may not be installed successfully due to dependency issues. Also, you won't get updates on the installed packages (if it gets installed). Still, the method is worth giving a try.
|
||||
|
||||
### Conclusion
|
||||
|
||||
Despite all the push behind Snap packaging, PPAs still remain a favourite among users for installing third-party applications in Ubuntu.
|
||||
|
||||
But PPAs have their fair share of trouble, and this cannot add PPA error is one of them. The same issue also causes ['repository does not have release file][13]' error.
|
||||
|
||||
I hope things are more clear on the issue now. Let me know if you still have questions.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/cannot-add-ppa-error/
|
||||
|
||||
作者:[Abhishek Prakash][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/abhishek/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://itsfoss.com/how-to-know-ubuntu-unity-version/
|
||||
[2]: https://itsfoss.com/content/images/2023/09/ubuntu-version-details.png
|
||||
[3]: https://launchpad.net/ubuntu/+ppas
|
||||
[4]: https://itsfoss.com/content/images/2023/09/search-for-ppa-launchpad.png
|
||||
[5]: https://itsfoss.com/content/images/2023/09/check-ppa-supported-version.png
|
||||
[6]: https://launchpad.net/~remiariro/+archive/ubuntu/misc
|
||||
[7]: https://itsfoss.com/content/images/2023/09/search-ppa.png
|
||||
[8]: https://snapcraft.io/store
|
||||
[9]: https://flathub.org/
|
||||
[10]: https://www.appimagehub.com/
|
||||
[11]: https://itsfoss.com/content/images/2023/09/ppa-package-details.png
|
||||
[12]: https://itsfoss.com/content/images/2023/09/download-deb-from-ppa.png
|
||||
[13]: https://itsfoss.com/repository-does-not-have-release-file-error-ubuntu/
|
@ -0,0 +1,144 @@
|
||||
[#]: subject: "Fixing Cannot add PPA: ''This PPA does not support jammy'' Error"
|
||||
[#]: via: "https://itsfoss.com/cannot-add-ppa-error/"
|
||||
[#]: author: "Abhishek Prakash https://itsfoss.com/author/abhishek/"
|
||||
[#]: collector: "lujun9972/lctt-scripts-1693450080"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
修复无法添加 PPA:“This PPA does not support jammy” 错误
|
||||
======
|
||||
|
||||
这是一个场景。你正在尝试使用 PPA 在 Ubuntu 中安装软件。
|
||||
|
||||
你使用 “sudo add-apt-repository” 添加 PPA 仓库,当它更新包缓存时,会出现错误:
|
||||
|
||||
**Cannot add PPA: ''This PPA does not support xyz''**
|
||||
|
||||
其中 XYZ 是[你正在使用的 Ubuntu 版本的代号][1]。
|
||||
|
||||
📋
|
||||
|
||||
****这就是发生这种情况的原因以及你可以采取的措施****:
|
||||
|
||||
\- PPA 不适用于你正在使用的 Ubuntu 版本
|
||||
\- 你应该寻找其他来源来安装该应用
|
||||
\- 如果绝望,你可以从 PPA 网页下载 .deb 文件
|
||||
|
||||
我将详细讨论以上所有内容。
|
||||
|
||||
### 检查 PPA 是否适用于你的 Ubuntu 版本
|
||||
|
||||
首先,在终端中使用以下命令获取 Ubuntu 版本和代号的详细信息:
|
||||
|
||||
````
|
||||
|
||||
lsb_release -a
|
||||
|
||||
````
|
||||
|
||||
输出将包含详细信息:
|
||||
|
||||
![Here, I am using Ubuntu version 23.04 that case codename lunar][2]
|
||||
|
||||
现在,访问托管所有 PPA 的 Ubuntu 的 Launchpad 网站:
|
||||
|
||||
[进入 Launchpad PPA][3]
|
||||
|
||||
在这里,查找困扰你的 PPA。为此,你必须使用 PPA 维护者的名字。
|
||||
|
||||
例如,如果 `ppa:jstaf/onedriver` 造成问题,请搜索维护者 `jstaf`。
|
||||
|
||||
![Enter the PPA's maintainer name and search for it][4]
|
||||
|
||||
一名维护者可能拥有多个软件仓库。单击你要安装的那个。
|
||||
|
||||
在里,你应该在 “Published in” 旁边的**下拉按钮选择 “Any Series”**。
|
||||
|
||||
![Click on Any series dropdown button to see the supported Ubuntu versions][5]
|
||||
|
||||
检查你是否看到你正在使用的 Ubuntu 版本的代号。如果不存在,那么此 PPA 不适用于你的 Ubuntu 版本。
|
||||
|
||||
### 如果 PPA 不支持你的 Ubuntu 版本,你该怎么办
|
||||
|
||||
你会看到,开发人员(或维护人员)创建一个仓库并使该软件可用于他们正在使用的 Ubuntu 版本。
|
||||
|
||||
随着时间的推移,Ubuntu 发布了更新的版本。现在,一位活跃的维护者将发布新 Ubuntu 版本的软件。但情况并非总是如此。如果维护者不再活跃,那么将不会更新。像你这样尝试遵循教程说明的人将会看到此错误。
|
||||
|
||||
现在,你有两个选择:
|
||||
|
||||
#### 选项 1:在其他地方寻找该软件
|
||||
|
||||
这里有几种可能性。
|
||||
|
||||
**新版 Ubuntu 可能也可以通过其他 PPA 获得相同的软件。请在 Launchpad 网站或互联网上查找。**
|
||||
|
||||
这是怎么发生的? 许多原始软件开发人员只是发布源代码,因此一些志愿者创建 Debian 软件包并从 launchpad 分发它,以便像你这样的 Ubuntu 用户可以轻松安装该软件。不止一名志愿者可以为同一软件创建自己的个人包存档 (PPA)。你应该使用活跃的。
|
||||
|
||||
例如,如果我查找 `onedriver` 包,我可以看到它可能在另一个名为 [Ubuntu 部署][6]的 PPA 中可用。
|
||||
|
||||
![][7]
|
||||
|
||||
**另一个选项是查看该包是否以其他格式提供,例如 Snap、Flatpak、AppImage。**
|
||||
|
||||
* [检查 Snap 商店][8]
|
||||
* [检查 Flatpak 包][9]
|
||||
* [检查 AppImages][10]
|
||||
|
||||
|
||||
|
||||
在极少数情况下,该软件可能已经在 Ubuntu 仓库中可用。
|
||||
|
||||
为此,你必须是一个聪明的用户并在互联网上进行搜索。如果你找到其他包格式,那就太好了。否则,下一步就是绝望。
|
||||
|
||||
#### 选项 2:从 PPA 下载 deb 文件
|
||||
|
||||
PPA 仓库为你提供 Debian 软件包。添加仓库后,你还可以直接通过系统更新获得更新(如果有)。
|
||||
|
||||
如果你的 Ubuntu 版本的 PPA 没有更新,并且你在其他地方找不到该软件,你可以尝试从 PPA Launchpad 页面下载 deb 软件包。
|
||||
|
||||
![][11]
|
||||
|
||||
在包详细信息页面上,单击展开符号并查找 deb 文件。除非你使用类似 Raspberry Pi 的主板,否则你应该选择 amd64。
|
||||
|
||||
![Download deb package from PPA][12]
|
||||
|
||||
🚧
|
||||
|
||||
如果软件太旧,下载的deb包可能会因为依赖问题而无法安装成功。此外,你将不会获得已安装软件包的更新(如果已安装)。不过,这个方法还是值得一试。
|
||||
|
||||
#### 结论
|
||||
|
||||
尽管大力推动 Snap 打包,PPA 仍然是用户在 Ubuntu 中安装第三方应用的最爱。
|
||||
|
||||
但 PPA 也有其自身的麻烦,而不能添加 PPA 错误就是其中之一。同样的问题还会导致 “[repository does not have release file][13]” 错误。
|
||||
|
||||
我希望现在这个问题更加清楚了。如果你仍有疑问,请告诉我。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/cannot-add-ppa-error/
|
||||
|
||||
作者:[Abhishek Prakash][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/abhishek/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://itsfoss.com/how-to-know-ubuntu-unity-version/
|
||||
[2]: https://itsfoss.com/content/images/2023/09/ubuntu-version-details.png
|
||||
[3]: https://launchpad.net/ubuntu/+ppas
|
||||
[4]: https://itsfoss.com/content/images/2023/09/search-for-ppa-launchpad.png
|
||||
[5]: https://itsfoss.com/content/images/2023/09/check-ppa-supported-version.png
|
||||
[6]: https://launchpad.net/~remiariro/+archive/ubuntu/misc
|
||||
[7]: https://itsfoss.com/content/images/2023/09/search-ppa.png
|
||||
[8]: https://snapcraft.io/store
|
||||
[9]: https://flathub.org/
|
||||
[10]: https://www.appimagehub.com/
|
||||
[11]: https://itsfoss.com/content/images/2023/09/ppa-package-details.png
|
||||
[12]: https://itsfoss.com/content/images/2023/09/download-deb-from-ppa.png
|
||||
[13]: https://itsfoss.com/repository-does-not-have-release-file-error-ubuntu/
|
Loading…
Reference in New Issue
Block a user