如何在 Debian Lenny 上“apt-get remove gcj”而不自动升级

如何在 Debian Lenny 上“apt-get remove gcj”而不自动升级

我正在尝试摆脱垃圾 gcj 包。尝试删除它时,apt 会产生以下结果:

The following packages were automatically installed and are no longer required:
  libhsqldb-java-gcj
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  gcj-4.4-base libasound2 libc-bin libc-dev-bin libc6 libc6-dev libc6-i686
  libdb4.8 libgcj-bc libgcj-common libgcj10 libpython2.6 libreadline6
  libsqlite3-0 libssl0.9.8 locales python-central python2.6 python2.6-minimal
Suggested packages:
  libasound2-plugins glibc-doc libgcj10-dbg libgcj10-awt python2.6-doc
  python2.6-profiler binfmt-support
Recommended packages:
  manpages-dev gcj-4.4-jre-lib
The following packages will be REMOVED:
  java-gcj-compat openoffice.org-gcj
The following NEW packages will be installed:
  gcj-4.4-base libc-bin libc-dev-bin libdb4.8 libgcj10 libpython2.6
  libreadline6 python2.6 python2.6-minimal
The following packages will be upgraded:
  libasound2 libc6 libc6-dev libc6-i686 libgcj-bc libgcj-common libsqlite3-0
  libssl0.9.8 locales python-central
10 upgraded, 9 newly installed, 2 to remove and 1000 not upgraded.
Need to get 35.4MB of archives.
After this operation, 64.6MB of additional disk space will be used.

它似乎试图转而安装最新版本的 gcj。我目前安装了 sun-java6-jdk。

有什么建议吗?

答案1

尝试aptitude remove gcj

答案2

您可以尝试使用 dpkg 卸载该软件包:

dpkg --purge gcj

不管好坏,它都不会处理依赖关系:如果另一个包依赖于 gcj,它会抱怨,但不会尝试安装任何其他东西。在最好的情况下(没有其他包依赖于 gcj),它会卸载 gcj 而不会抱怨。

相关内容