溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

ubuntu下如何進(jìn)行python2.7 的IDLE安裝和源更新

發(fā)布時(shí)間:2021-10-14 14:02:28 來源:億速云 閱讀:162 作者:柒染 欄目:編程語言

本篇文章為大家展示了ubuntu下如何進(jìn)行python2.7 的IDLE安裝和源更新,內(nèi)容簡明扼要并且容易理解,絕對(duì)能使你眼前一亮,通過這篇文章的詳細(xì)介紹希望你能有所收獲。

在用software center裝IDLE時(shí) 出錯(cuò)

details 說python2.7-tk是虛擬的包什么的  不懂..

于是用 sudo app-get install python2.7-tk

發(fā)現(xiàn)   幾個(gè) depended on xx

少什么就安裝什么

sudo app-get install xx

于是發(fā)現(xiàn)問題

Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

sudo apt-get upda了兩次都是同樣的問題

想想應(yīng)該是源的問題  最近好像改過

于是

sudo gedit /etc/apt/sources.list

發(fā)現(xiàn)我的版本是trusty  結(jié)果用的  raring

果斷ctrl+H  replace之

哦了..

對(duì)了一般都會(huì)備份..  sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

之后別忘了 sudo apt-get update

附上源地址(直接拷貝進(jìn)sources.list即可)

##sohu
deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse

##wangyi163
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

##alicloud
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

順便看了一下ubuntu的版本

名字都非常有意思哦~

版本號(hào)代號(hào)發(fā)布時(shí)間
14.04 LTSTrusty Tahr2014/04/18
13.10Saucy Salamander2013/10/17
13.04Raring Ringtail2013/04/25
12.10Quantal Quetzal2012/10/18
12.04 LTSPrecise Pangolin2012/04/26
11.10Oneiric Ocelot2011/10/13
11.04(Unity成為默認(rèn)桌面環(huán)境)Natty Narwhal2011/04/28
10.10Maverick Meerkat2010/10/10
10.04 LTSLucid Lynx2010/04/29
9.10Karmic Koala2009/10/29
9.04Jaunty Jackalope2009/04/23
8.10Intrepid Ibex2008/10/30
8.04 LTSHardy Heron2008/04/24
7.10Gutsy Gibbon2007/10/18
7.04Feisty Fawn2007/04/19
6.10Edgy Eft2006/10/26
6.06 LTSDapper Drake2006/06/01
5.10Breezy Badger2005/10/13
5.04Hoary Hedgehog2005/04/08
4.10(初始發(fā)布版本)Warty Warthog2004/10/20
Ubuntu歷史版本一覽表

上述內(nèi)容就是ubuntu下如何進(jìn)行python2.7 的IDLE安裝和源更新,你們學(xué)到知識(shí)或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識(shí)儲(chǔ)備,歡迎關(guān)注億速云行業(yè)資訊頻道。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI