Package operation failed
ubuntu 12.04
since some time I already noticed that JDK 7 has not been installed, but as the updates did run I did not bother
now, at update (wants to do a partial upgrade), I get the "Package operation failed" error and a window containig "The installation or removal of a software package failed." and a lage list at which end is stated:
Download done.
sha256sum mismatch jdk-7u3-
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-
subprocess installed post-installation script returned error exit status 1
does anyone have a solution/ clue
thanks in advance
ed.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
https:/
Run the commands in step 5
Revision history for this message
![]() |
#2 |
at introducing:
sudo dpkg --configure -a
I got the pasted hereunder.
¿any idea?
Reading package lists... Done
W: Duplicate sources.list entry http://
W: Duplicate sources.list entry http://
W: Duplicate sources.list entry http://
W: Duplicate sources.list entry http://
W: You may want to run apt-get update to correct these problems
ed@ed-AMD4cores:~$ sudo dpkg --configure -a
Setting up oracle-
Downloading...
--2012-06-09 20:59:51-- http://
Resolving download.oracle.com (download.
Connecting to download.oracle.com (download.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https:/
--2012-06-09 20:59:51-- https:/
Resolving edelivery.
Connecting to edelivery.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://
--2012-06-09 20:59:52-- http://
Connecting to download.oracle.com (download.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `./jdk-
0K ..... 100% 2.05M=0.002s
2012-06-09 20:59:52 (2.05 MB/s) - `./jdk-
Download done.
sha256sum mismatch jdk-7u3-
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-
ed@ed-AMD4cores:~$
Revision history for this message
![]() |
#3 |
Can you give the output of:
gedit /etc/apt/
Thanks
Revision history for this message
![]() |
#4 |
thanks for answer,
hope this is what you want/need
output of gedit /etc/apt/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/
# deb cdrom:[Ubuntu 10.04.3 LTS _Lucid Lynx_ - Release amd64 (20110720.1)]/ lucid main restricted
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted
deb http://
deb-src http://
deb http://
deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# deb http://
# deb-src http://
# deb http://
# deb-src http://
# See http://
# newer versions of the distribution.
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://
deb-src http://
deb http://
deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://
deb-src http://
deb http://
deb-src http://
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://
# deb-src http://
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://
# deb-src http://
# deb http://
# deb-src http://
deb http://
# See http://
# newer versions of the distribution.
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://
deb-src http://
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://
# deb-src http://
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb-src http://
# See http://
# newer versions of the distribution.
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://
# deb-src http://
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# See http://
# newer versions of the distribution.
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://
# deb-src http://
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# See http://
# newer versions of the distribution.
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://
# deb-src http://
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
Revision history for this message
![]() |
#5 |
Run:
gksudo gedit /etc/apt/
remove these 2 lines:
deb http://
deb-src http://
Save the new file, close gedit and run:
sudo apt-get update
Is it smooth?
Revision history for this message
![]() |
#6 |
hi andrew-woodhead666
very smoth to execute ...
so I had no problem to do so .... but alas seems not to solve a problem ...
now I am no more proposed to update with the gui and terminal gives this:
ed@ed-AMD4cores:~$ sudo apt-get update
[sudo] password for ed:
E: Type ‘b-src’ is not known on line 2 in source list /etc/apt/
E: The list of sources could not be read.
ed@ed-AMD4cores:~$
Revision history for this message
![]() |
#7 |
ok what is the output of:
cat etc/apt/
Thanks
Revision history for this message
![]() |
#8 |
output---->
ed@ed-AMD4cores:~$ cat etc/apt/
cat: etc/apt/
ed@ed-AMD4cores:~$
Revision history for this message
![]() |
#9 |
ok try:
sudo rm /etc/apt/
sudo apt-get update
HTH
Revision history for this message
![]() |
#10 |
Please close as a uplicate of:
https:/
Thanks
Revision history for this message
![]() |
#11 |
after doing what you proposed I get: -->
Fetched 13.7 MB in 18s (742 kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://
W: Duplicate sources.list entry http://
W: You may want to run apt-get update to correct these problems
ed@ed-AMD4cores:~$
did not try the suggestion as the erroroutput was the result of the proposed comand.
I also tried to update. I got 2 updates which I agreed.
tyhis run me into the following error message: --->
Package operation failed
The installation or removal of a software package failed.
details was a very large output (you may have it if you need to (I saved it).
I'll post begin and end: ---->
installArchives() failed: Preconfiguring packages ...
Preconfiguring packages ...
...
Saving to: `./jdk-
0K ..... 100%% 1.53M=0.003s
2012-06-13 16:58:48 (1.53 MB/s) - `./jdk-
Download done.
sha256sum mismatch jdk-7u3-
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-
subprocess installed post-installation script returned error exit status 1
¿any further suggestion?
Revision history for this message
![]() |
#12 |
Thanks actionparsnip, that solved my question.