Ubuntu 10.04
我如何尝试:
➜ ~ sudo add-apt-repository ppa:webupd8team/java
...
➜ ~ sudo apt-get update
...
➜ ~ sudo apt-get install oracle-java7-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic
ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming firefox firefox-2 iceweasel mozilla-firefox
iceape-browser mozilla-browser epiphany-gecko epiphany-webkit epiphany-browser galeon midbrowser
moblin-web-browser xulrunner xulrunner-1.9 konqueror chromium-browser midori google-chrome
The following NEW packages will be installed:
oracle-java7-installer
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.6kB of archives.
After this operation, 110kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu/ lucid/main oracle-java7-installer 7u51-0~webupd8~1 [17.6kB]
Fetched 17.6kB in 0s (74.0kB/s)
Preconfiguring packages ...
(Reading database ... 41748 files and directories currently installed.)
Unpacking oracle-java7-installer (from .../oracle-java7-installer_7u51-0~webupd8~1_all.deb) ...
oracle-license-v1-1 license has already been accepted
dpkg-deb: file `/var/cache/apt/archives/oracle-java7-installer_7u51-0~webupd8~1_all.deb' contains ununderstood data member data.tar.xz , giving up
dpkg: error processing /var/cache/apt/archives/oracle-java7-installer_7u51-0~webupd8~1_all.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/oracle-java7-installer_7u51-0~webupd8~1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我如何尝试:
➜ ~ sudo rm /var/lib/dpkg/info/oracle-java7-installer*
zsh: no matches found: /var/lib/dpkg/info/oracle-java7-installer*
➜ ~ sudo apt-get purge oracle-java7-installer*
zsh: no matches found: oracle-java7-installer*
➜ ~ sudo rm /etc/apt/sources.list.d/*java*
➜ ~ sudo apt-get update
...
➜ ~ sudo add-apt-repository ppa:webupd8team/java
...
➜ ~ sudo apt-get update
...
➜ ~ sudo apt-get install oracle-java7-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic
ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming firefox firefox-2 iceweasel mozilla-firefox
iceape-browser mozilla-browser epiphany-gecko epiphany-webkit epiphany-browser galeon midbrowser
moblin-web-browser xulrunner xulrunner-1.9 konqueror chromium-browser midori google-chrome
The following NEW packages will be installed:
oracle-java7-installer
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/17.6kB of archives.
After this operation, 110kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 41748 files and directories currently installed.)
Unpacking oracle-java7-installer (from .../oracle-java7-installer_7u51-0~webupd8~1_all.deb) ...
oracle-license-v1-1 license has already been accepted
dpkg-deb: file `/var/cache/apt/archives/oracle-java7-installer_7u51-0~webupd8~1_all.deb' contains ununderstood data member data.tar.xz , giving up
dpkg: error processing /var/cache/apt/archives/oracle-java7-installer_7u51-0~webupd8~1_all.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/oracle-java7-installer_7u51-0~webupd8~1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案 0 :(得分:0)
你的问题是你的dpkg太旧了,无法正确理解deb包。您应该考虑升级您的服务器(对于Pete而言已经4年了!)以获得最新版本的dpkg。