執行"apt-get -f install"所碰到的問題

如果您覺得您的問題不屬於 debian desktop 或是 debian server 版的範圍內,請在這裡發問。

版主: mufa

執行"apt-get -f install"所碰到的問題

文章donkey2 » 週一 4月 27, 2009 8:44 am

小弟不才,實在是不得已,才將錯誤訊息貼在討論區。事實上這個問題已經存在很久了,以下是錯誤訊息:
代碼: 選擇全部
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  sane-utils libapr1 libsvn1 libc-ares1 libpq5 libaprutil1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libggi2 libgii1
Suggested packages:
  libggi-target-emu libggi-target-monotext libggimisc2
Recommended packages:
  libggi-target-x libggi-target libgii1-target-x
The following packages will be upgraded:
  libggi2 libgii1
2 upgraded, 0 newly installed, 0 to remove and 762 not upgraded.
127 not fully installed or removed.
Need to get 0B/641kB of archives.
After this operation, 389kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 110863 files and directories currently installed.)
Preparing to replace libgii1 1:1.0.1-3 (using .../libgii1_1%3a1.0.2-4_i386.deb) ...
dpkg (subprocess): unable to execute old pre-removal script: Exec format error
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/libgii1_1%3a1.0.2-4_i386.deb (--unpack):
 there is no script in the new version of the package - giving up
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 2
Preparing to replace libggi2 1:2.2.1-5 (using .../libggi2_1%3a2.2.2-3_i386.deb) ...
dpkg (subprocess): unable to execute old pre-removal script: Exec format error
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/libggi2_1%3a2.2.2-3_i386.deb (--unpack):
 there is no script in the new version of the package - giving up
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/libgii1_1%3a1.0.2-4_i386.deb
 /var/cache/apt/archives/libggi2_1%3a2.2.2-3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

在這個訊息剛出現的時候,我用了alien將關網提供的原始碼變成deb檔,結果一點幫助也沒有(廢話...)
其實不只apt-get -f install,好像只要執行和apt-get有關的指令,都會出問題,小弟實在太不用功,debian混了幾年只會一些簡單的指令,若打擾了前輩敬請見諒![/code]
donkey2
 

文章kc19800322 » 週一 4月 27, 2009 9:37 am

aptiupdate 也是一樣嗎?
kc19800322
可愛的小學生
可愛的小學生
 
文章: 41
註冊時間: 週五 5月 02, 2008 1:49 pm

文章mason » 週一 4月 27, 2009 9:58 am

到 /var/cache/apt/archives/ 裡面用 dpkg -i --force-all 那兩個 deb
skype:dantemason
http://blog.sikazozo.org
頭像
mason
快樂的大學生
快樂的大學生
 
文章: 547
註冊時間: 週二 9月 10, 2002 3:40 pm
來自: SIDE 3

文章donkey » 週一 4月 27, 2009 11:09 am

donkey=donkey2...
使用aptitude的錯誤訊息:
代碼: 選擇全部
BlueOcean:/var/cache/apt/archives# aptitude install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done
Reading task descriptions... Done 
The following packages are BROKEN:
  libgii1
The following packages will be REMOVED:
  libapr1{u} libaprutil1{u} libc-ares1{u} libpq5{u} libsvn1{u}
  sane-utils{u}
The following partially installed packages will be configured:
  autoconf automake1.9 autotools-dev binutils dbus-x11 dh-make
  emacsen-common libaa1 libasound2 libbonobo2-0 libbonobo2-common libcairo2
  libcairo2-dev libdbus-glib-1-2 libdirectfb-1.2-0 libdirectfb-dev libgif4
  libglademm-2.4-1c2a libglibmm-2.4-1c2a libgmp3c2 libgnome2-0
  libgnome2-common libgnomeui-0 libgnomeui-common libgtkglext1
  libgtkglextmm-x11-1.2-0 libice-dev libice6 libjpeg62-dev libkdegames1
  liblockfile1 libltdl3-dev libmpeg3-1 libmpeg3-dev libmpfr1ldbl
  libntfs-3g31 libpixman-1-0 libpixman-1-dev libpng12-0 libpng12-dev
  libsm-dev libsm6 libsysfs-dev libsysfs2 libtiff4 libxau-dev libxau6
  libxcb1 libxcb1-dev libxext-dev pax python-central python-numpy
  python-visual realplay rsync snakefood sudoku talk vim-full
  x11proto-core-dev x11proto-input-dev xaw3dg xtrans-dev zlib1g-dev
0 packages upgraded, 0 newly installed, 6 to remove and 833 not upgraded.
Need to get 0B of archives. After unpacking 2941kB will be freed.
The following packages have unmet dependencies:
  libgii1: Depends: libgii1-target-x (= 1:1.0.1-3) but it is not installable
E: I wasn't able to locate file for the libgii1 package. This might mean you need to manually fix this package.
The following actions will resolve these dependencies:

Install the following packages:
libgii1-target-x [1:1.0.2-4 (testing, unstable, unstable, unstable)]

Upgrade the following packages:
libgii1 [1:1.0.1-3 (now) -> 1:1.0.2-4 (testing, unstable, unstable, unstable)]

Score is 111

Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
  libgii1-target-x{a}
The following packages will be REMOVED:
  libapr1{u} libaprutil1{u} libc-ares1{u} libpq5{u} libsvn1{u}
  sane-utils{u}
The following packages will be upgraded:
  libgii1
The following partially installed packages will be configured:
  autoconf automake1.9 autotools-dev binutils dbus-x11 dh-make
  emacsen-common libaa1 libasound2 libbonobo2-0 libbonobo2-common libcairo2
  libcairo2-dev libdbus-glib-1-2 libdirectfb-1.2-0 libdirectfb-dev libgif4
  libglademm-2.4-1c2a libglibmm-2.4-1c2a libgmp3c2 libgnome2-0
  libgnome2-common libgnomeui-0 libgnomeui-common libgtkglext1
  libgtkglextmm-x11-1.2-0 libice-dev libice6 libjpeg62-dev libkdegames1
  liblockfile1 libltdl3-dev libmpeg3-1 libmpeg3-dev libmpfr1ldbl
  libntfs-3g31 libpixman-1-0 libpixman-1-dev libpng12-0 libpng12-dev
  libsm-dev libsm6 libsysfs-dev libsysfs2 libtiff4 libxau-dev libxau6
  libxcb1 libxcb1-dev libxext-dev pax python-central python-numpy
  python-visual realplay rsync snakefood sudoku talk vim-full
  x11proto-core-dev x11proto-input-dev xaw3dg xtrans-dev zlib1g-dev
1 packages upgraded, 1 newly installed, 6 to remove and 832 not upgraded.
Need to get 0B/287kB of archives. After unpacking 2650kB will be freed.
Do you want to continue? [Y/n/?] y
E: I wasn't able to locate file for the libggi2 package. This might mean you need to manually fix this package.
Writing extended state information... Done
E: I wasn't able to locate file for the libggi2 package. This might mean you need to manually fix this package.
E: Internal error: couldn't generate list of packages to download

小弟用了dpkg -i --force-all仍然有錯誤訊息!
但願人長久,千里共談天。
donkey
可愛的小學生
可愛的小學生
 
文章: 32
註冊時間: 週五 2月 09, 2007 11:27 am


回到 debian misc

誰在線上

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