Fedora

yum 需要舊版本的軟體包作為依賴項

  • January 9, 2013

我已經通過官方站點安裝了 TexLive 2012,並且想要安裝依賴於舊版本的 epydoc。但是,當我嘗試安裝依賴於 texlive 的 epydoc 時,出現以下錯誤。

我怎樣才能解決這個問題?

; sudo yum install epydoc     
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit, remove-
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit, remove-
             : with-leaves
Loading mirror speeds from cached hostfile
* fedora: ftp.tudelft.nl
* livna: rpm.livna.org
* rpmfusion-free: ftp.upjs.sk
* rpmfusion-free-updates: ftp.upjs.sk
* rpmfusion-nonfree: ftp.upjs.sk
* rpmfusion-nonfree-updates: ftp.upjs.sk
* updates: ftp.tudelft.nl
Resolving Dependencies
--> Running transaction check
---> Package epydoc.noarch 0:3.0.1-9.fc15 will be installed
--> Processing Dependency: texlive-latex for package: epydoc-3.0.1-9.fc15.noarch
Package texlive-latex-2007-66.fc16.x86_64 is obsoleted by 1:tex-latex-svn23639-1
.noarch which is already installed
--> Processing Dependency: texlive-dvips for package: epydoc-3.0.1-9.fc15.noarch
Package texlive-dvips-2007-66.fc16.x86_64 is obsoleted by 1:tex-dvips-svn26765-1
.noarch which is already installed
--> Finished Dependency Resolution
Error: Package: epydoc-3.0.1-9.fc15.noarch (fedora)
          Requires: texlive-dvips
          Available: texlive-dvips-2007-65.fc16.x86_64 (fedora)
              texlive-dvips = 2007-65.fc16
          Available: texlive-dvips-2007-66.fc16.x86_64 (updates)
              texlive-dvips = 2007-66.fc16
Error: Package: epydoc-3.0.1-9.fc15.noarch (fedora)
          Requires: texlive-latex
          Available: texlive-latex-2007-65.fc16.x86_64 (fedora)
              texlive-latex = 2007-65.fc16
          Available: texlive-latex-2007-66.fc16.x86_64 (updates)
              texlive-latex = 2007-66.fc16
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
  1. 您可以嘗試使用--skip-broken來解決問題
  2. 聯繫 TEX 開發人員並將其報告為錯誤
  3. 如果你真的想,你可以試試yum downgrade

更新:由於yum --skip-broken在這裡不起作用:

yumdonwloader epydoc-3.0.1-9.fc15.noarch
rpm -i --nodeps epydoc-3.0.1-9.fc15.noarch.rpm

應該管用。

您應該使用 Fedora 的軟體包,或者使用 Jindrich Novy 的repo中的 TeXlibe 2012 軟體包。不要混用,它們不能很好地協同工作(jnovy 使用其他目錄,它們根本找不到彼此)。

引用自:https://unix.stackexchange.com/questions/43464