Debian下安裝Typora

安裝Typora

  1. 進入typora官網
  2. 根據官網提示安裝

遇到問題

執行 sudo apt-get undate 時,報錯
根據提示安執行安裝命令

sudo apt-get install apt-transport-https

依然報錯

正在讀取軟件包列表... 完成
正在分析軟件包的依賴關係樹       
正在讀取狀態信息... 完成       
下列【新】軟件包將被安裝:
  apt-transport-https
升級了 0 個軟件包,新安裝了 1 個軟件包,要卸載 0 個軟件包,有 0 個軟件包未被升級。
需要下載 165 kB 的歸檔。
解壓縮後會消耗 237 kB 的額外空間。
E: 無法找到獲取軟件包的渠道 /usr/lib/apt/methods/https 所需的驅動程序。
N: 請檢查是否安裝了 apt-transport-https 軟件包

執行命令

aptitude show apt-transport-https

顯示了詳細信息

軟件包:apt-transport-https      
版本號:1.3~rc2
狀態: 未安裝
優先級:可選
部分:admin
維護者:APT Development Team <deity@lists.debian.org>
體系:amd64
未壓縮尺寸:237 k
依賴於: libapt-pkg5.0 (>= 1.3~rc2), libc6 (>= 2.14), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2)
推薦: ca-certificates
衝突: apt-transport-https:i386
描述:https download transport for APT
 This package enables the usage of 'deb https://foo distro main' lines in the /etc/apt/sources.list so that all package managers using the libapt-pkg library can access metadata and packages available in sources accessible over https
 (Hypertext Transfer Protocol Secure). 

 This transport supports server as well as client authentication with certificates.
標籤: admin::package-management, protocol::http, protocol::ssl, role::shared-lib, suite::debian, use::downloading

安裝依賴包

sudo apt-get install libapt-pkg-dev

安裝完成後再安裝

sudo apt-get install apt-transport-https

安裝完成,執行

sudo apt-get update

更新成功,問題解決

命中:1 http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease
獲取:2 https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling InRelease [30.5 kB]
獲取:3 https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling/main amd64 Packages [14.0 MB]
獲取:4 https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling/main i386 Packages [13.9 MB]
獲取:5 https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling/non-free amd64 Packages [154 kB]
獲取:6 https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling/non-free i386 Packages [139 kB]
獲取:7 https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling/contrib amd64 Packages [95.4 kB]                                                                                                                                               
獲取:8 https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling/contrib i386 Packages [91.6 kB]                                                                                                                                                
已下載 28.4 MB,耗時 6秒 (4,580 kB/s)                                                                                                                                                                                                        
正在讀取軟件包列表... 完成

運行命令

sudo apt-get install typora

typora 安裝完成

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章