How can I install oracle-java7 from webupd8 ppa?

Posted by Ahmed Zain El Dein on Ask Ubuntu See other posts from Ask Ubuntu or by Ahmed Zain El Dein
Published on 2012-10-09T19:50:44Z Indexed on 2012/10/10 9:52 UTC
Read the original article Hit count: 426

Filed under:
|

I installed ppa:webupd8team/java and I get the following error

Output from:
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 The following
packages will be upgraded:   oracle-java7-installer 1 upgraded, 0
newly installed, 0 to remove and 0 not upgraded. 1 not fully installed
or removed. Need to get 0 B/16.0 kB of archives. After this operation,
64.5 kB of additional disk space will be used. 
Could not exec dpkg! E: Sub-process /usr/bin/dpkg returned an error code (100)

i did afterwords those line of code trying to resolve the issue becuase it is not existed actually in the /usr/bin/dpkg there is no dpkg

mkdir /tmp/dpkg
cd /tmp/dpkg
wget http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.15.5.6ubuntu4_i386.deb
ar x dpkg*.deb data.tar.gz
tar xfvz data.tar.gz ./usr/bin/dpkg
sudo cp ./usr/bin/dpkg /usr/bin/
sudo apt-get update
sudo apt-get install --reinstall dpkg

then i get this

$     sudo apt-get install --reinstall dpkg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,814 kB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: warning: 'dpkg-deb' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)

How can I fix this?

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about java