簡體   English   中英

如何從啟動板安裝 package [關閉]

[英]How to install package from launchpad [closed]

我想在我的 ubuntu 中安裝它: https://launchpad.net/ubuntu/+source/ttfautohint

但我不知道怎么辦。

我做了sudo apt install ttfautohint和 ttfautohint --version 給出了 0.97。

這是我能夠做到的(2022 年):

給定一個啟動板 url: https://launchpad.net/~fish-shell/+archive/ubuntu/release-3/+packages在這種情況下,對於魚 shell。

我可以提取兩個組件:

  • 用戶fish-shell (以~為前綴)
  • 發布渠道release-3

然后添加存儲庫的命令:

sudo add-apt-repository ppa:fish-shell/release-3

Apt 將確認,然后自動運行apt update 如果 package 已安裝但已過期, apt autoremove清理空白並apt install獲取最新版本。


如果您不知道發布渠道,或者無法從啟動板 url 獲取它,請不要使用,apt 會為您提供一些選項:

$ sudo add-apt-repository ppa:fish-shell

Cannot add PPA: 'ppa:~fish-shell/ubuntu/ppa'.
The team named '~fish-shell' has no PPA named 'ubuntu/ppa'
Please choose from the following available PPAs:
 * 'beta-2':  fish shell - 2.x beta series
 * 'beta-3':  fish shell - 3.x beta series
 * 'nightly-master':  fish shell - nightly build from git master
 * 'release-2':  fish shell - 2.x release series
 * 'release-3':  fish shell - 3.x release series

如果你無法理清團隊名稱,當你弄錯時,它看起來像這樣:

$ sudo add-apt-repository ppa:ubuntu/fish-shell
Cannot add PPA: 'ppa:~ubuntu/ubuntu/fish-shell'.
ERROR: '~ubuntu' user or team does not exist.

如果要升級版本,必須先從系統中刪除該軟件包:

$ sudo apt-get remove ttfautohint

確保刪除包后,執行以下操作:

$ sudo add-apt-repository ppa:ubuntu/ttfautohint

它會要求您確認和驗證 GPG 簽名密鑰。 這會將所需的 ppa 添加到您的源文件中,並使其可見。 然后,您必須執行以下操作:

$ sudo apt-get update

讓它看到改變的包位置。 然后你可以簡單地安裝它,就像你剛剛輸入的一樣,使用 apt-get:

$ sudo apt-get install ttfautohint --verbose-versions

“--verbose-versions”將顯示將安裝的版本,您可以檢查是否正在安裝所需的版本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM