2014-01-16 147 views
0

的Ubuntu 10.04錯誤安裝JDK 7 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

你的問題是你的dpkg太老了,無法正確理解deb包。你應該考慮升級你的服務器(對於皮特來說,這已經是4年了!),以獲得最新版本的dpkg。