1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libruby1.8
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  xserver-common
The following NEW packages will be installed:
  xvfb
The following packages will be upgraded:
  xserver-common
1 upgraded, 1 newly installed, 0 to remove and 308 not upgraded.
1 not fully installed or removed.
Need to get 0 B/899 kB of archives.
After this operation, 2,068 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up apt (0.8.16~exp5ubuntu13.2) ...
gpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP
gpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP
dpkg: error processing apt (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 apt
E: Sub-process /usr/bin/dpkg returned an error code (1)

xvfb をインストールできないのはなぜですか?

4

2 に答える 2

2

管理者にこれを実行してもらいます。

su
mkdir temp
mv /usr/local/lib/libreadline* temp
ldconfig 
apt-get update

次に、 apt-get を再度実行します

于 2012-04-03T20:58:22.560 に答える
1

パッケージ xvfb は、インストール後のスクリプトでコマンド「gpg」を使用しているようです。gpg コマンドは、gpg と互換性がないように見える libreadline に依存しているようです。

これは本当に奇妙です。通常、Debian/Ubuntu システムは /usr/local の下に何もインストールせず、依存関係は正常です。自分で libreadline を /usr/local/lib にインストールしたのでしょうか?

パッケージ マネージャーに、ファイル /usr/local/lib/libreadline.so.6 を所有しているパッケージを尋ねます。

dpkg -S /usr/local/lib/libreadline.so.6

ファイルが属するパッケージが示されている場合は、そのパッケージを削除してみてください

dpkg -P packagename

所有するパッケージがない場合は、ファイルを削除します。

/usr/local/lib/libreadline.so.6 を維持したままシステムを動作させたい場合は、明示的に指示されない限り、プログラムがそれを使用しないようにする必要があります。/etc/ld.so.conf で動的リンカー構成を変更した可能性があります。これらの変更を元に戻して、稼働中のシステムに戻します。

于 2012-04-03T20:57:58.817 に答える