套件系統損壞 (懷疑是 LiberOffice 與 OpenOffice 衝突) [論壇 - 新手村]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

« 1 2 (3)


回覆: 套件系統損壞 (懷疑是 LiberOffice 與 OpenOffice 衝突)
會員一級
註冊日期:
2015/4/28 10:05
所屬群組:
已註冊使用者
等級: 1
HP : 0 / 21
MP : 3 / 502
EXP: 86
離線
我今天試了…
可是我的系統裡沒有 aptitude 這個指令耶@@

然後現在系統的狀況似乎也沒辦法把它裝進去…

~$ sudo apt-get install aptitude
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
您也許得執行 'apt-get -f install' 以修正這些問題:
下列的套件有未滿足的相依關係:
aptitude : 相依關係: aptitude-common (= 0.6.8.2-1ubuntu4) 但它卻將不會被安裝
相依關係: libboost-iostreams1.54.0 但它卻將不會被安裝
相依關係: libcwidget3 但它卻將不會被安裝
相依關係: libept1.4.12 但它卻將不會被安裝
libreoffice-core : 相依關係: libreoffice-common (> 1:4.2.8) 但 1:4.2.7-0ubuntu2 卻將被安裝
E: 未能滿足相依關係。請試著不指定套件來執行 'apt-get -f install'(或採取其它的解決方案)。


這下該如何是好?

2015/5/6 16:14
應用擴展 工具箱
回覆: 套件系統損壞 (懷疑是 LiberOffice 與 OpenOffice 衝突)
會員一級
註冊日期:
2015/4/28 10:05
所屬群組:
已註冊使用者
等級: 1
HP : 0 / 21
MP : 3 / 502
EXP: 86
離線
小弟似乎解決了。

根據 samwhelp 幫忙實驗的結果,基本上就是要先移除 openoffice-debian-menus 這個套件。
然後再把 libreoffice-common 這個裝回去。

但我的狀況就是套件庫已經有一些問題,怎麼試都告訴我相依性有問題,不能移除東西,也不能裝東西。
所以我就針對「強制移除」這點去找,結果找到了這篇
照著裡面的說明,用了
sudo dpkg -r --force-depends openoffice-debian-menus

這個方式成功的把它移除了。

接下來重裝 libreoffice-common、移除 OpenOffice 就都沒有問題了。

OpenOffice 我就先移除了,暫時沒研究共存的問題
其實當時只是想找一套軟體開微軟的 Office 檔案,希望格式不要跑太多,所以多裝了一套。
不過效果並沒有比較好,所以目前也沒有共存的需求。

謝謝大家的協助了。

2015/5/6 17:11
應用擴展 工具箱
回覆: 套件系統損壞 (懷疑是 LiberOffice 與 OpenOffice 衝突)
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 36
HP : 0 / 898
MP : 664 / 28699
EXP: 92
離線
Wolfer 寫到:
小弟似乎解決了。

根據 samwhelp 幫忙實驗的結果,基本上就是要先移除 openoffice-debian-menus 這個套件。
然後再把 libreoffice-common 這個裝回去。

但我的狀況就是套件庫已經有一些問題,怎麼試都告訴我相依性有問題,不能移除東西,也不能裝東西。
所以我就針對「強制移除」這點去找,結果找到了這篇
照著裡面的說明,用了
sudo dpkg -r --force-depends openoffice-debian-menus

這個方式成功的把它移除了。

接下來重裝 libreoffice-common、移除 OpenOffice 就都沒有問題了。

OpenOffice 我就先移除了,暫時沒研究共存的問題
其實當時只是想找一套軟體開微軟的 Office 檔案,希望格式不要跑太多,所以多裝了一套。
不過效果並沒有比較好,所以目前也沒有共存的需求。

謝謝大家的協助了。



讚喔!

原來可以用這樣的指令,強制移除喔,又學到一招。

真是太感謝了。


剛用

$ man dpkg

查詢「--force-depends」,查不到!

因為你上面的網址,應該沒貼好。

所以依照你的提示,查詢「dpkg 強制移除」,查到「這篇」。

原來是要這樣下,才找的到說明


$ dpkg --force-help



顯示


dpkg forcing options - control behaviour when problems found:
  warn but continue:  --force-<thing>,<thing>,...
  stop with error:    --refuse-<thing>,<thing>,... | --no-force-<thing>,...
 Forcing things:
  [!] all                Set all force options
  
  • downgrade Replace a package with a lower version
  • configure-any Configure any package which may help this one hold Process incidental packages even when on hold not-root Try to (de)install things even when not root bad-path PATH is missing important programs, problems likely bad-verify Install a package even if it fails authenticity check bad-version Process even packages with wrong versions overwrite Overwrite a file from one package with another overwrite-diverted Overwrite a diverted file with an undiverted version [!] overwrite-dir Overwrite one package's directory with another's file [!] unsafe-io Do not perform safe I/O operations when unpacking [!] confnew Always use the new config files, don't prompt [!] confold Always use the old config files, don't prompt [!] confdef Use the default option for new config files if one is available, don't prompt. If no default can be found, you will be prompted unless one of the confold or confnew options is also given [!] confmiss Always install missing config files [!] confask Offer to replace config files with no new versions [!] architecture Process even packages with wrong or no architecture [!] breaks Install even if it would break another package [!] conflicts Allow installation of conflicting packages [!] depends Turn all dependency problems into warnings [!] depends-version Turn dependency version problems into warnings [!] remove-reinstreq Remove packages which require installation [!] remove-essential Remove an essential package WARNING - use of options marked [!] can seriously damage your installation. Forcing options marked
  • are enabled by default.



  • 再回過頭來看「man dpkg

    有一段


    -?, --help
    Display a brief help message.

    --force-help
    Give help about the --force-thing options.



    然後查詢「force-thing」,就可以看到



    --force-things, --no-force-things, --refuse-things

    ...略...

    depends: Turn all dependency problems into warnings.

    ...略...





    執行


    $ dpkg --help



    則是可以看到


    --force-... Override problems (see --force-help).


    2015/5/6 17:46
    應用擴展 工具箱

    « 1 2 (3)

     [無發表權] 請登錄或者註冊


    可以查看帖子.
    不可發帖.
    不可回覆.
    不可編輯自己的帖子.
    不可刪除自己的帖子.
    不可發起投票調查.
    不可在投票調查中投票.
    不可上傳附件.
    不可不經審核直接發帖.