LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-14-2012, 07:48 PM   #31
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 5,819

Rep: Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321

Hi,

Quote:
Originally Posted by pyraxiate View Post
Thanks Feral-Deb! This took care of it for me as well. Sorry for reviving such an old thread. Just trying to give credit where it was due
In general, deleting things in /var/lib/dpkg/info/ is the *WRONG* thing to do.

Please see:

http://www.linuxquestions.org/questi...7/#post3753885

Evo2.
 
Old 07-24-2012, 12:31 PM   #32
techis
LQ Newbie
 
Registered: Jul 2012
Location: Colorado
Posts: 7

Rep: Reputation: Disabled
Trying to install Java on Ubuntu server 12.04

I am trying to install java on my server.

When I run the apt-get install openjdk-7-jre I get the same error as below, any ideas?

Code:
apt-get -f install openjdk-7-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
openjdk-7-jre is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up oracle-java7-installer (7u3-0~eugenesan~precise4) ...
Downloading...
--2012-07-24 11:24:17--  http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-i586.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.3.12.147, 23.3.12.121
Connecting to download.oracle.com (download.oracle.com)|23.3.12.147|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-i586.tar.gz [following]
--2012-07-24 11:24:17--  https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-i586.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.51.50.174
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.51.50.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2012-07-24 11:24:17--  http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com (download.oracle.com)|23.3.12.147|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `./jdk-7u3-linux-i586.tar.gz'

     0K .....                                                 100% 1.69M=0.003s

2012-07-24 11:24:17 (1.69 MB/s) - `./jdk-7u3-linux-i586.tar.gz' saved [5307/5307]

Download done.
sha256sum mismatch jdk-7u3-linux-i586.tar.gz
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 07-24-2012, 06:28 PM   #33
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 5,819

Rep: Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321
Hi,

at first glance it seems that the package provided by oracle is buggy. Have you tried the following?
Code:
dpkg --configure --pending
Assuming the above fails the next step would probably be to debug the post install script. This should be at /var/lib/dokg/info/<package>.postinst

Any particular reason you want to install this? When I'm force to use java programs I generally find that openjdk-6-jre works.

Evo2.
 
Old 07-24-2012, 10:53 PM   #34
techis
LQ Newbie
 
Registered: Jul 2012
Location: Colorado
Posts: 7

Rep: Reputation: Disabled
No I have not. Thanks for the tip. I am following directions and I am trying to install minecraft on my server for my brother.
 
Old 07-24-2012, 11:26 PM   #35
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 5,819

Rep: Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321
Hi,

I just downloaded minecraft_server.jar on my Squeeze box and started it up:
Code:
% wget https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar
--2012-07-25 13:18:26--  https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar
Resolving s3.amazonaws.com... 207.171.185.200
Connecting to s3.amazonaws.com|207.171.185.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1408470 (1.3M) [application/octet-stream]
Saving to: `minecraft_server.jar'

100%[=========================================>] 1,408,470    551K/s   in 2.5s    

2012-07-25 13:18:29 (551 KB/s) - `minecraft_server.jar' saved [1408470/1408470]


% java -Xms1G -Xmx1G -jar minecraft_server.jar nogui
182 recipes
27 achievements
2012-07-25 13:20:10 [INFO] Starting minecraft server version 1.2.5
2012-07-25 13:20:10 [INFO] Loading properties
2012-07-25 13:20:10 [WARNING] server.properties does not exist
2012-07-25 13:20:10 [INFO] Generating new properties file
2012-07-25 13:20:10 [INFO] Starting Minecraft server on *:25565
2012-07-25 13:20:10 [WARNING] Failed to load ban list: java.io.FileNotFoundException: banned-players.txt (No such file or directory)
2012-07-25 13:20:10 [WARNING] Failed to load ip ban list: java.io.FileNotFoundException: banned-ips.txt (No such file or directory)
2012-07-25 13:20:10 [WARNING] Failed to load operators list: java.io.FileNotFoundException: ops.txt (No such file or directory)
2012-07-25 13:20:10 [WARNING] Failed to load white-list: java.io.FileNotFoundException: white-list.txt (No such file or directory)
2012-07-25 13:20:10 [INFO] Preparing level "world"
2012-07-25 13:20:10 [INFO] Default game type: 0
2012-07-25 13:20:11 [INFO] Preparing start region for level 0
2012-07-25 13:20:12 [INFO] Preparing spawn area: 4%
2012-07-25 13:20:13 [INFO] Preparing spawn area: 16%
2012-07-25 13:20:14 [INFO] Preparing spawn area: 32%
2012-07-25 13:20:15 [INFO] Preparing spawn area: 44%
2012-07-25 13:20:16 [INFO] Preparing spawn area: 61%
2012-07-25 13:20:17 [INFO] Preparing spawn area: 77%
2012-07-25 13:20:18 [INFO] Preparing spawn area: 93%
2012-07-25 13:20:18 [INFO] Done (8.007s)! For help, type "help" or "?"
It seems to be working. My java is:
Code:
% readlink -f $(which java)
/usr/lib/jvm/java-6-openjdk/jre/bin/java
HTH,

Evo2.
 
Old 07-25-2012, 11:05 AM   #36
techis
LQ Newbie
 
Registered: Jul 2012
Location: Colorado
Posts: 7

Rep: Reputation: Disabled
The dpkg --configure --pending didnt work. Is there a way that I could remove the openjdk-7-jre and install openjdk-6-jre with out it snagging on this line:

Code:
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 07-25-2012, 05:39 PM   #37
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 5,819

Rep: Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321
Hi,

have you tried the following?
Code:
dpkg --purge oracle-java7-installer
Evo2.
 
Old 07-26-2012, 09:48 AM   #38
techis
LQ Newbie
 
Registered: Jul 2012
Location: Colorado
Posts: 7

Rep: Reputation: Disabled
That worked thank you. Not entirely related to these posts but do you know how to log into the minecraft server?
 
Old 07-26-2012, 08:23 PM   #39
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 5,819

Rep: Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321Reputation: 1321
Hi,
Quote:
Originally Posted by techis View Post
That worked thank you.
Good to hear.
Quote:
Not entirely related to these posts but do you know how to log into the minecraft server?
Hmmm, not sure what you mean. Perhaps you are talking about how to run the client program?
Anyway best that you start a new thread if you have questions about running minecraft.

Evo2.
 
Old 11-12-2013, 01:21 PM   #40
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Still ran into this old problem, like this:
Code:
$ xdvi something.dvi 
The program 'xdvi' is currently not installed.  You can install it by typing:
sudo apt-get install texlive-binaries
OK, I tried that:
Code:
$ sudo apt-get install texlive-binaries
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  tex-common
The following NEW packages will be installed:
  tex-common texlive-binaries
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 8,164kB of archives.
After this operation, 18.6MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ubuntu.media.mit.edu/ubuntu/ lucid-updates/main tex-common 2.06ubuntu0.1 [727kB]
Get:2 http://ubuntu.media.mit.edu/ubuntu/ lucid-updates/main texlive-binaries 2009-5ubuntu0.2 [7,437kB]
Fetched 8,164kB in 5s (1,517kB/s)           
Preconfiguring packages ...
Selecting previously deselected package tex-common.
(Reading database ... 607705 files and directories currently installed.)
Unpacking tex-common (from .../tex-common_2.06ubuntu0.1_all.deb) ...
Selecting previously deselected package texlive-binaries.
Unpacking texlive-binaries (from .../texlive-binaries_2009-5ubuntu0.2_i386.deb) ...
Processing triggers for doc-base ...
Processing 2 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up tex-common (2.06ubuntu0.1) ...
Running mktexlsr. This may take some time... done.
No packages found matching texlive-base.
dpkg: error processing tex-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of texlive-binaries:
 texlive-binaries depends on tex-common (>= 2.00); however:
  Package tex-common is not configured yet.
dpkg: error processing texlive-binaries (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 tex-common
 texlive-binaries
E: Sub-process /usr/bin/dpkg returned an error code (1)
And then I was stuck!
Evo2 wrote,
Quote:
In general, deleting things in /var/lib/dpkg/info/ is the *WRONG* thing to do.
I didn't need to:
Code:
sudo apt-get remove texlive-binaries
sudo apt-get install texlive-binaries
To my surprise and relief, that fixed the apt errors. To get xdvi to work (and generate fonts as needed), I also had to
Code:
sudo apt-get install texlive-base
That seems to be necessary, but not formally a required package.

Last edited by Quigi; 11-13-2013 at 09:58 AM. Reason: Noted one more thing needed for xdvi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail returned error code 111 newlinuxgeek Linux - Software 1 02-14-2008 02:16 AM
dpkg returned an error code (1) Segmentation fault questionman Debian 6 11-02-2004 12:04 AM
Sub-process /bin/rpm returned an error code (255) during uninstall with synaptic DraaX Linux - Newbie 2 02-10-2004 02:05 AM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 06:41 PM
The program returned an error code (3) Omega Linux - Software 1 05-04-2003 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration