SPONSOR .:[TNC.EDU.TW]- [KH.EDU.TW]:.

移掉 Python 之後 Emerge 壞了

什麼?Gentoo 裝不起來?核心怎麼編?安裝失敗等問題?來這裡求救吧!

版主: Forums Team

移掉 Python 之後 Emerge 壞了

文章TyroneYeh » 週三 6月 09, 2010 12:11 pm

怪了,Portage 也是用 Python 寫的?
這樣就掛了啊...
TyroneYeh
 
文章: 127
註冊時間: 週一 3月 20, 2006 3:19 pm

Re: 移掉 Python 之後 Emerge 壞了

文章paar » 週三 6月 09, 2010 12:58 pm

是 python 寫的,
你每次 emerge 時 ps 去看就會看到 emerge 前面都有 python。
XD
有 portage rescue 的 doc,看需不需要..
叫我老帕好了!
圖檔
頭像
paar
 
文章: 1120
註冊時間: 週四 1月 30, 2003 10:53 am
來自: 打狗市

Re: 移掉 Python 之後 Emerge 壞了

文章TyroneYeh » 週三 6月 09, 2010 1:47 pm

原本想用 Portage Source 自己 make 一下的,後來想想 copy LiveDVD 的先用
在 emerge python 就好吧!!
還好可以....

切到 LIve DVD 環境後 用 equery f python 查了一下有哪些路徑
就複製到自己的硬碟裡就可以了...
好佳在...

--
不是移除重要套件應該倒數 10 秒,這個怎麼是 5 秒,也沒有紅字!!! XD
會想移除他是因為有 2.4 .2.6 3.1 想說移掉 後再重裝 2.6 跟 3.1
TyroneYeh
 
文章: 127
註冊時間: 週一 3月 20, 2006 3:19 pm

Re: 移掉 Python 之後 Emerge 壞了

文章paar » 週三 6月 09, 2010 2:06 pm

真的只有 5 秒耶...XD
我猜 10 秒的那些套件是移除你的系統就立刻不能用的那種吧?
代碼: 選擇全部
# emerge -C python
* This action can remove important packages! In order to be safer, use
* `emerge -pv --depclean <atom>` to check for reverse dependencies before
* removing packages.

dev-lang/python
    selected: 2.4.4-r13 2.5.4-r3 2.6.5-r2 3.1.2-r3
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in:  5 4 ^C

Exiting on signal 2
叫我老帕好了!
圖檔
頭像
paar
 
文章: 1120
註冊時間: 週四 1月 30, 2003 10:53 am
來自: 打狗市

Re: 移掉 Python 之後 Emerge 壞了

文章TyroneYeh » 週三 6月 09, 2010 2:08 pm

有 10 秒的啦
udev 就是,移掉馬上很多指令都掛點的樣子....
# emerge -C udev
* This action can remove important packages! In order to be safer, use
* `emerge -pv --depclean <atom>` to check for reverse dependencies before
* removing packages.


!!! 'sys-fs/udev' is part of your system profile.
!!! Unmerging it may be damaging to your system.

>>> Waiting 10 seconds before starting...
>>> (Control-C to abort)...
Press Ctrl-C to Stop in: 10 9 ^C

Exiting on signal 2
TyroneYeh
 
文章: 127
註冊時間: 週一 3月 20, 2006 3:19 pm

Re: 移掉 Python 之後 Emerge 壞了

文章Jackie » 週三 6月 09, 2010 9:14 pm

請愛用emerge --depclean
不要隨便亂刪套件>"<

而且除了embedded system以外
幾乎不太可能用不到python吧
雖然我自己不會寫python...
Jackie
 
文章: 136
註冊時間: 週六 7月 08, 2006 10:13 pm

Re: 移掉 Python 之後 Emerge 壞了

文章TyroneYeh » 週一 6月 14, 2010 2:35 pm

嗯... 謝謝
順便請教一下,做 emerge -uDN world 的時候發現很多被 Block 的套件只能一個一個去移除嗎?
還是用什麼指令可以搞定! 不然很累 ....
TyroneYeh
 
文章: 127
註冊時間: 週一 3月 20, 2006 3:19 pm

Re: 移掉 Python 之後 Emerge 壞了

文章jojoyakira » 週一 6月 14, 2010 4:50 pm

如果顯示的是藍色的 Block packages 是會主動修復的,不需要一個一個的移除;
需要自己手動移除的是顯示紅色的 Block packages ,一般這種情況不會很多,用 copy && paste 大概就很方便了。 :106.gif:
Desktop:Intel Pentium(R) Dual-Core CPU E5300 @ 2.60GHz,OS: Gentoo GNU/Linux
jojoyakira
 
文章: 242
註冊時間: 週四 3月 01, 2007 10:42 pm
來自: kaohsiung

Re: 移掉 Python 之後 Emerge 壞了

文章TyroneYeh » 週一 6月 14, 2010 5:10 pm

嗯,平常有在 update 的可能不會遇到...
因為假日的時候試著把 LiveDVD 的安裝想加了一些參數再做 整個 update
結果.... 一堆紅色的 Block package,要 update 的套件有 一千三百多個...

真的很累,乾脆用 stage3 重裝 KDE 好像也沒有這麼多要 update 的!

最近看到用 virtualbox 或 chromium 都有出 binary 版,Gentoo 可不可以把所有套件或 X-Window 的把它 binary 一下啊
不然 Compile 的時間真的會嚇壞一些人,可能想用 Gentoo 的人都跑去用 Debian or Ubuntu or other binary 版的 distribution 了!!

加油!!
TyroneYeh
 
文章: 127
註冊時間: 週一 3月 20, 2006 3:19 pm

Re: 移掉 Python 之後 Emerge 壞了

文章jojoyakira » 週一 6月 14, 2010 6:56 pm

TyroneYeh 寫:....
最近看到用 virtualbox 或 chromium 都有出 binary 版,Gentoo 可不可以把所有套件或 X-Window 的把它 binary 一下啊
不然 Compile 的時間真的會嚇壞一些人,可能想用 Gentoo 的人都跑去用 Debian or Ubuntu or other binary 版的 distribution 了!!
.....

聽說 sabayon 的 entropy 有提供 binary packages,或許你可以試試它。
在 Gentoo 中可以加入 sabayon overlay,然後安裝 entropy 試試。
代碼: 選擇全部
$ layman -L | grep sabayon
* sabayon                   [Git       ] (git://sabayon.org/projects/overlay...)

還有小弟我沒用過 sabayon overlay,不保證可行。 :106.gif:

據小弟我的了解,Gentoo 除了一些需要編譯很久的大套件外,好像不會另外提供 binary packages,因為和 Gentoo 的套件管理哲學不合,我之前在http://forums.gentoo.org/搜尋"PORTAGE_BINHOST"關鍵字時,有看過類似的討論。 :D
其實現在的機器大多很快,編譯套件花的時間對小弟而言是可以接受的,應該沒那麼恐怖才對。 :102.gif:
Desktop:Intel Pentium(R) Dual-Core CPU E5300 @ 2.60GHz,OS: Gentoo GNU/Linux
jojoyakira
 
文章: 242
註冊時間: 週四 3月 01, 2007 10:42 pm
來自: kaohsiung

Re: 移掉 Python 之後 Emerge 壞了

文章TyroneYeh » 週二 6月 15, 2010 2:03 am

PORTAGE_BINHOST 很多都停產了 ....
sabayon 的可以嗎? 部分裝比較久的才選用,如果 sabayon 也是 Portage 管理,如果又可以選用 binary 或 source compile 這樣不就一堆人用?
TyroneYeh
 
文章: 127
註冊時間: 週一 3月 20, 2006 3:19 pm

Re: 移掉 Python 之後 Emerge 壞了

文章jojoyakira » 週二 6月 15, 2010 3:06 am

是不是一堆人用,這小弟我不知道 :106.gif:
底下這一段是來自於sabayon wiki:entropy的資料,寫的很清楚:
What are the main goals of Entropy? 寫:There were multiple reasons that led Entropy creation:
  • Providing better efficiency, extraordinary speed, less power consumption to Sabayon Linux systems, bringing Sabayon one of the TOP leading Linux distributions.
  • Unlock Gentoo to resource constrained hardware or where CPU power shouldn't be wasted by compilers
  • Provide an easy and modern way to handle a Gentoo-based systems while keeping independent from Portage codebase and at the same time being 100% compatible
  • Providing a higher grade of AI in package managers arena: Entropy guesses users' need and acts consequentially
  • Proposing a new POV for developers: Web 2.0 revolution applied to package managers, being Desktop-wise, user friendly and bringing new ideas for a key component of a Linux desktop system

儘管如此,小弟我還是比較喜歡 Gentoo,至少之前我的那台 P3 的老機器,在 openbox 跑 xine 從沒當過,感覺上穩定度很高。 :102.gif:
Desktop:Intel Pentium(R) Dual-Core CPU E5300 @ 2.60GHz,OS: Gentoo GNU/Linux
jojoyakira
 
文章: 242
註冊時間: 週四 3月 01, 2007 10:42 pm
來自: kaohsiung

Re: 移掉 Python 之後 Emerge 壞了

文章paar » 週二 6月 15, 2010 9:51 am

TyroneYeh 寫:PORTAGE_BINHOST 很多都停產了 ....
sabayon 的可以嗎? 部分裝比較久的才選用,如果 sabayon 也是 Portage 管理,如果又可以選用 binary 或 source compile 這樣不就一堆人用?

可以這樣用,
但是會經常遇上 USE 設定沒對上、
因為 USE 所相依的套件沒裝、
相依版本太低...和類似的問題,
要看你到底是要 binary 當 base 去解決 bin 包沒有要編譯新包的問題,
還是要用 stage3 手編當 base 而去解決要新裝的 bin 包的問題,
以上兩種情形的後者要解決不同型態安裝的包包不能太多,
否則你會乾脆重裝一種單純安裝的方式會比較快,
解決問題的難度我覺得已經蠻進階的,
我大部分是手編 base 再加安裝 rpm 包或 deb 包(某些軟體沒提供 source tgz),
若確定他們所相依的套件在 portage 裡都裝上了,
就可以忽略相依硬裝上,
叉題了,
總之省時間的方式全用 sabayon 之類 binary 包的裝、並遵守它的相依性會容易得多。
叫我老帕好了!
圖檔
頭像
paar
 
文章: 1120
註冊時間: 週四 1月 30, 2003 10:53 am
來自: 打狗市


回到 Gentoo 安裝

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron