I am using the command to install java8 on my system but it is not working the command is:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
the last line is giving me the error:
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz [following]
--2017-10-18 22:38:13-- https://edelivery.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.108.215.179, 2600:1417:56:186::2d3e, 2600:1417:56:187::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.108.215.179|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz?AuthParam=1508346614_8bc760b7bd61b60912b47718e848ca92 [following]
--2017-10-18 22:38:14-- http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz?AuthParam=1508346614_8bc760b7bd61b60912b47718e848ca92
Connecting to download.oracle.com (download.oracle.com)|23.32.28.209|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-10-18 22:38:17 ERROR 404: Not Found.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
I went to the link and it is 404 response. Want to know why this is happening and is there a problem with my public key or what.
Please help. Thanks in advance
Are you sure that OpenJDK 8 won't work for you? Cause you can install just by using:
$ sudo apt-get update
$ sudo apt-get install default-jdk
If not, you can always manually install the Oracle JDK 8 from Oracle's website. First download and then follow these instructions.
Edit 1:
Seems a problem on their side, check: https://ubuntuforums.org/showthread.php?t=2374686
For now I recommend to install manually.
Related
Trying to get a more recent version of bash installed on my Mac using brew.
brew is installed and working fine. When I try to run:
brew install bash
however I get the following error:
==> Downloading https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2a
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "readline--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc543e56bc37a26ccf05d2946a45176b0894e/readline-6.3.8.diff
And indeed, there's nothing at:
https://gist.githubusercontent.com/jacknagel
Update your Homebrew formulae and try again: brew update.
I am trying to install a library zip.
How to fix it? Thank you for your help.
How to fix it? Thank you for your help.
However receives this error:
root#vps300197:~# sudo apt-get install zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
zip is already the newest version (3.0-11).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 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 nginx-core (1.10.0-0ubuntu0.16.04.2) ...
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-core (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-core (>= 1.10.0-0ubuntu0.16.04.2) | nginx-full (>= 1.10. 0-0ubuntu0.16.04.2) | nginx-light (>= 1.10.0-0ubuntu0.16.04.2) | nginx-extras (> = 1.10.0-0ubuntu0.16.04.2); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-core (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-full (<< 1. 10.0-0ubuntu0.16.04.2.1~) | nginx-light (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx- extras (<< 1.10.0-0ubuntu0.16.04.2.1~); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing packagNo apport report written because the error message indicates its a followup error from a previous failure.
e nginx (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nginx-core
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
As a root user, you don't need sudo before any command you want to run.
Normally, you should not use the root account to work on your server, it is very dangerous.
If you want install library zip, you should use apt-get install libzip, not
apt-get install zip. Zip is already the newest version (3.0-11) on you system.
According to the system output information, it seems to be there's some problems with you nginx installation.
Try sudo apt-get -f install or sudo apt-get remove nginx* && sudo apt-get install nginx-full
I am trying to install rpm on Mac 10.10 using this command
brew install rpm
However, it failed and I got this error. Please guide me how can I fix this?
==> Installing rpm dependency: rpm2cpio
==> Downloading http://svnweb.freebsd.org/ports/head/archivers/rpm2cpio/files/rpm2cpio?revision=259745&view=co
curl: (22) The requested URL returned error: 403 Forbidden
Error: Failed to download resource "rpm2cpio"
Download failed: http://svnweb.freebsd.org/ports/head/archivers/rpm2cpio/files/rpm2cpio?revision=259745&view=co
The following works for me:
brew install rpm2cpio
brew install rpm
rpm2cpio rpm_name.rpm | cpio -idmv
I tried to install jmeter by following this question but I fail and got below error
$ brew install jmeter
==> Downloading http://www.apache.org/dyn/closer.cgi?path=jmeter/binaries/apache-jmeter-2.11.tgz
==> Best Mirror http://mirror.cogentco.com/pub/apache/jmeter/binaries/apache-jmeter-2.11.tgz
curl: (22) The requested URL returned error: 404 Not Found
Error:Failed to download resource "jmeter" Download failed:
http://mirror.cogentco.com/pub/apache/jmeter/binaries/apache-jmeter-2.11.tgz
Why is this? Is the link broken and how to replace it?
Try to first update brew:
brew update
Then retry it again, as it should download jmeter 2.12 not 2.11.
Also if you want to download jmeter-plugins with it, you can use:
brew install jmeter --with-plugins
nma-2:test nikolaialeksandrenko$ brew install ant
==> Downloading http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.0-bin.tar.gz
==> Best Mirror http://apache.igor.onlinedirect.bg/ant/binaries/apache-ant-1.9.0-bin.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.0-bin.tar.gz
I'm trying to install ant on my mac with brew ...
I'm i doing something wrong?
You should first try to make an update of brew:
brew update
If this does not work, have a look here for alternative installation: https://superuser.com/questions/610157/how-do-i-install-ant-on-os-x-mavericks