Cannot install default-jre - package 'default-jre' has no installation candidateTrouble migrating from Yum to...
What evidence points to a long ō in the first syllable of nōscō's present-tense form?
Meaning of だけはわからない
Is there a word for returning to unpreparedness?
Did Pope Urban II issue the papal bull "terra nullius" in 1095?
Do I need to start off my book by describing the character's "normal world"?
Attacking the Hydra
Why won't the Republicans use a superdelegate system like the DNC in their nomination process?
Did Michelle Obama have a staff of 23; and Melania have a staff of 4?
Escape Velocity - Won't the orbital path just become larger with higher initial velocity?
Will some rockets really collapse under their own weight?
Unconventional examples of mathematical modelling
Can anybody tell me who this Pokemon is?
What was the intention with the Commodore 128?
Does an Irish VISA WARNING count as "refused entry at the border of any country other than the UK?"
Why do my bicycle brakes get worse and feel more 'squishy" over time?
When does The Truman Show take place?
How can I change Excel so that I can enter English rather than German formulas?
What are these panels underneath the wing root of a A380?
Is the Microsoft recommendation to use C# properties applicable to game development?
Units of measurement, especially length, when body parts vary in size among races
Why does Japan use the same type of AC power outlet as the US?
What's the relationship betweeen MS-DOS and XENIX?
Suspension compromise for urban use
Bringing Power Supplies on Plane?
Cannot install default-jre - package 'default-jre' has no installation candidate
Trouble migrating from Yum to apt-getuninitialized constant XML::SaxParser / Error retrieving bug reports from the serverInstall Java 8 on ARM Nas (Debian Wheezy)apt pinning priority restricted“Unmet dependencies. bluez : Conflicts_ bluez-alsa:i386 but 4.98-2ubuntu7 is to be installed”How to install a functional ARM cross-gcc toolchain on Ubuntu 18.04?Package 'openjdk-7-jre' has no installation candidatecan't install ecodmsserver on crunchbang++ / Debian 9 stretch distro
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
If I type
java -version
I get
Command 'java' not found, but can be installed with:
sudo apt install default-jre
sudo apt install openjdk-11-jre-headless
sudo apt install openjdk-8-jre-headless (You will have to enable component called 'universe')
when I try
sudo apt install default-jre
I get
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package default-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'default-jre' has no installation candidate
I've tried apt-get update and also installing the other ones, but when I try openjdk ones, it says unable to locate package ...
Edit:
apt policy
output:
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic/main i386 Packages
release v=18.04,o=LP-PPA-mosquitto-dev-mosquitto-ppa,a=bionic,n=bionic,l=mosquitto,c=main,b=i386
origin ppa.launchpad.net
500 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic/main amd64 Packages
release v=18.04,o=LP-PPA-mosquitto-dev-mosquitto-ppa,a=bionic,n=bionic,l=mosquitto,c=main,b=amd64
origin ppa.launchpad.net
500 https://download.mono-project.com/repo/ubuntu stable-bionic/main i386 Packages
release v=18.04,o=XamarinBionic,a=stable-bionic,n=bionic,l=Xamarin-Stable-Bionic,c=main,b=i386
origin download.mono-project.com
500 https://download.mono-project.com/repo/ubuntu stable-bionic/main amd64 Packages
release v=18.04,o=XamarinBionic,a=stable-bionic,n=bionic,l=Xamarin-Stable-Bionic,c=main,b=amd64
origin download.mono-project.com
Pinned packages:
head -n -0 /etc/apt/sources.list /etc/apt/sources.list.d/*
output:
==> /etc/apt/sources.list <==
# deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe
## 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-src http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## 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-src http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## 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://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
==> /etc/apt/sources.list.d/google-chrome.list <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google-chrome.list.distUpgrade <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google-chrome.list.save <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google.list <==
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main # disabled on upgrade to bionic
==> /etc/apt/sources.list.d/google.list.distUpgrade <==
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google.list.save <==
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main # disabled on upgrade to bionic
==> /etc/apt/sources.list.d/mono-official-preview.list <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-preview.list.distUpgrade <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-preview.list.save <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-stable.list <==
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
==> /etc/apt/sources.list.d/mono-official-stable.list.save <==
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
==> /etc/apt/sources.list.d/mono-xamarin.list <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mono-xamarin.list.distUpgrade <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mono-xamarin.list.save <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mosquitto-dev-ubuntu-mosquitto-ppa-bionic.list <==
deb http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
==> /etc/apt/sources.list.d/mosquitto-dev-ubuntu-mosquitto-ppa-bionic.list.save <==
deb http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list.distUpgrade <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list.save <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/skype-stable.list <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/skype-stable.list.distUpgrade <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/skype-stable.list.save <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/teamviewer.list <==
### TeamViewer DEB repository list
### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'
### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo main [stable] - make all TeamViewer packages available (default)
### teamviewer repo tv14 [stable] - make TeamViewer 14 packages available
### stable omit preview and beta releases
### Choose stable main to receive updates for TeamViewer 14 and upcoming major releases
### Choose preview main to receive early updates for TeamViewer 14 and to receive major beta releases
### Choose stable tv14 to receive updates for TeamViewer 14
### Choose preview tv14 to receive early updates for TeamViewer 14
# deb http://linux.teamviewer.com/deb stable main
# deb http://linux.teamviewer.com/deb preview main
# deb http://linux.teamviewer.com/deb stable tv14
# deb http://linux.teamviewer.com/deb preview tv14
==> /etc/apt/sources.list.d/teamviewer.list.save <==
### TeamViewer DEB repository list
### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'
### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo main [stable] - make all TeamViewer packages available (default)
### teamviewer repo tv14 [stable] - make TeamViewer 14 packages available
### stable omit preview and beta releases
### Choose stable main to receive updates for TeamViewer 14 and upcoming major releases
### Choose preview main to receive early updates for TeamViewer 14 and to receive major beta releases
### Choose stable tv14 to receive updates for TeamViewer 14
### Choose preview tv14 to receive early updates for TeamViewer 14
# deb http://linux.teamviewer.com/deb stable main
# deb http://linux.teamviewer.com/deb preview main
# deb http://linux.teamviewer.com/deb stable tv14
# deb http://linux.teamviewer.com/deb preview tv14
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list.distUpgrade <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list.save <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/webupd8team-ubuntu-java-bionic.list <==
==> /etc/apt/sources.list.d/webupd8team-ubuntu-java-bionic.list.save <==
apt software-installation java
New contributor
user367063 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
|
show 3 more comments
If I type
java -version
I get
Command 'java' not found, but can be installed with:
sudo apt install default-jre
sudo apt install openjdk-11-jre-headless
sudo apt install openjdk-8-jre-headless (You will have to enable component called 'universe')
when I try
sudo apt install default-jre
I get
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package default-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'default-jre' has no installation candidate
I've tried apt-get update and also installing the other ones, but when I try openjdk ones, it says unable to locate package ...
Edit:
apt policy
output:
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic/main i386 Packages
release v=18.04,o=LP-PPA-mosquitto-dev-mosquitto-ppa,a=bionic,n=bionic,l=mosquitto,c=main,b=i386
origin ppa.launchpad.net
500 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic/main amd64 Packages
release v=18.04,o=LP-PPA-mosquitto-dev-mosquitto-ppa,a=bionic,n=bionic,l=mosquitto,c=main,b=amd64
origin ppa.launchpad.net
500 https://download.mono-project.com/repo/ubuntu stable-bionic/main i386 Packages
release v=18.04,o=XamarinBionic,a=stable-bionic,n=bionic,l=Xamarin-Stable-Bionic,c=main,b=i386
origin download.mono-project.com
500 https://download.mono-project.com/repo/ubuntu stable-bionic/main amd64 Packages
release v=18.04,o=XamarinBionic,a=stable-bionic,n=bionic,l=Xamarin-Stable-Bionic,c=main,b=amd64
origin download.mono-project.com
Pinned packages:
head -n -0 /etc/apt/sources.list /etc/apt/sources.list.d/*
output:
==> /etc/apt/sources.list <==
# deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe
## 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-src http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## 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-src http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## 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://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
==> /etc/apt/sources.list.d/google-chrome.list <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google-chrome.list.distUpgrade <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google-chrome.list.save <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google.list <==
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main # disabled on upgrade to bionic
==> /etc/apt/sources.list.d/google.list.distUpgrade <==
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google.list.save <==
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main # disabled on upgrade to bionic
==> /etc/apt/sources.list.d/mono-official-preview.list <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-preview.list.distUpgrade <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-preview.list.save <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-stable.list <==
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
==> /etc/apt/sources.list.d/mono-official-stable.list.save <==
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
==> /etc/apt/sources.list.d/mono-xamarin.list <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mono-xamarin.list.distUpgrade <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mono-xamarin.list.save <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mosquitto-dev-ubuntu-mosquitto-ppa-bionic.list <==
deb http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
==> /etc/apt/sources.list.d/mosquitto-dev-ubuntu-mosquitto-ppa-bionic.list.save <==
deb http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list.distUpgrade <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list.save <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/skype-stable.list <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/skype-stable.list.distUpgrade <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/skype-stable.list.save <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/teamviewer.list <==
### TeamViewer DEB repository list
### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'
### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo main [stable] - make all TeamViewer packages available (default)
### teamviewer repo tv14 [stable] - make TeamViewer 14 packages available
### stable omit preview and beta releases
### Choose stable main to receive updates for TeamViewer 14 and upcoming major releases
### Choose preview main to receive early updates for TeamViewer 14 and to receive major beta releases
### Choose stable tv14 to receive updates for TeamViewer 14
### Choose preview tv14 to receive early updates for TeamViewer 14
# deb http://linux.teamviewer.com/deb stable main
# deb http://linux.teamviewer.com/deb preview main
# deb http://linux.teamviewer.com/deb stable tv14
# deb http://linux.teamviewer.com/deb preview tv14
==> /etc/apt/sources.list.d/teamviewer.list.save <==
### TeamViewer DEB repository list
### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'
### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo main [stable] - make all TeamViewer packages available (default)
### teamviewer repo tv14 [stable] - make TeamViewer 14 packages available
### stable omit preview and beta releases
### Choose stable main to receive updates for TeamViewer 14 and upcoming major releases
### Choose preview main to receive early updates for TeamViewer 14 and to receive major beta releases
### Choose stable tv14 to receive updates for TeamViewer 14
### Choose preview tv14 to receive early updates for TeamViewer 14
# deb http://linux.teamviewer.com/deb stable main
# deb http://linux.teamviewer.com/deb preview main
# deb http://linux.teamviewer.com/deb stable tv14
# deb http://linux.teamviewer.com/deb preview tv14
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list.distUpgrade <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list.save <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/webupd8team-ubuntu-java-bionic.list <==
==> /etc/apt/sources.list.d/webupd8team-ubuntu-java-bionic.list.save <==
apt software-installation java
New contributor
user367063 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
What OS version are you running?
– ajgringo619
yesterday
Ubuntu 18.04.2 LTS
– user367063
yesterday
Isopenjdk-11-jreinstalled? If not, try that one.
– ajgringo619
yesterday
It says unable to locate package when I try installing openjdk
– user367063
yesterday
1
Runsudo apt update, then try again. Also tryapt search jre.
– ajgringo619
yesterday
|
show 3 more comments
If I type
java -version
I get
Command 'java' not found, but can be installed with:
sudo apt install default-jre
sudo apt install openjdk-11-jre-headless
sudo apt install openjdk-8-jre-headless (You will have to enable component called 'universe')
when I try
sudo apt install default-jre
I get
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package default-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'default-jre' has no installation candidate
I've tried apt-get update and also installing the other ones, but when I try openjdk ones, it says unable to locate package ...
Edit:
apt policy
output:
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic/main i386 Packages
release v=18.04,o=LP-PPA-mosquitto-dev-mosquitto-ppa,a=bionic,n=bionic,l=mosquitto,c=main,b=i386
origin ppa.launchpad.net
500 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic/main amd64 Packages
release v=18.04,o=LP-PPA-mosquitto-dev-mosquitto-ppa,a=bionic,n=bionic,l=mosquitto,c=main,b=amd64
origin ppa.launchpad.net
500 https://download.mono-project.com/repo/ubuntu stable-bionic/main i386 Packages
release v=18.04,o=XamarinBionic,a=stable-bionic,n=bionic,l=Xamarin-Stable-Bionic,c=main,b=i386
origin download.mono-project.com
500 https://download.mono-project.com/repo/ubuntu stable-bionic/main amd64 Packages
release v=18.04,o=XamarinBionic,a=stable-bionic,n=bionic,l=Xamarin-Stable-Bionic,c=main,b=amd64
origin download.mono-project.com
Pinned packages:
head -n -0 /etc/apt/sources.list /etc/apt/sources.list.d/*
output:
==> /etc/apt/sources.list <==
# deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe
## 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-src http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## 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-src http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## 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://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
==> /etc/apt/sources.list.d/google-chrome.list <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google-chrome.list.distUpgrade <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google-chrome.list.save <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google.list <==
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main # disabled on upgrade to bionic
==> /etc/apt/sources.list.d/google.list.distUpgrade <==
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google.list.save <==
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main # disabled on upgrade to bionic
==> /etc/apt/sources.list.d/mono-official-preview.list <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-preview.list.distUpgrade <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-preview.list.save <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-stable.list <==
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
==> /etc/apt/sources.list.d/mono-official-stable.list.save <==
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
==> /etc/apt/sources.list.d/mono-xamarin.list <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mono-xamarin.list.distUpgrade <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mono-xamarin.list.save <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mosquitto-dev-ubuntu-mosquitto-ppa-bionic.list <==
deb http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
==> /etc/apt/sources.list.d/mosquitto-dev-ubuntu-mosquitto-ppa-bionic.list.save <==
deb http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list.distUpgrade <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list.save <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/skype-stable.list <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/skype-stable.list.distUpgrade <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/skype-stable.list.save <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/teamviewer.list <==
### TeamViewer DEB repository list
### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'
### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo main [stable] - make all TeamViewer packages available (default)
### teamviewer repo tv14 [stable] - make TeamViewer 14 packages available
### stable omit preview and beta releases
### Choose stable main to receive updates for TeamViewer 14 and upcoming major releases
### Choose preview main to receive early updates for TeamViewer 14 and to receive major beta releases
### Choose stable tv14 to receive updates for TeamViewer 14
### Choose preview tv14 to receive early updates for TeamViewer 14
# deb http://linux.teamviewer.com/deb stable main
# deb http://linux.teamviewer.com/deb preview main
# deb http://linux.teamviewer.com/deb stable tv14
# deb http://linux.teamviewer.com/deb preview tv14
==> /etc/apt/sources.list.d/teamviewer.list.save <==
### TeamViewer DEB repository list
### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'
### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo main [stable] - make all TeamViewer packages available (default)
### teamviewer repo tv14 [stable] - make TeamViewer 14 packages available
### stable omit preview and beta releases
### Choose stable main to receive updates for TeamViewer 14 and upcoming major releases
### Choose preview main to receive early updates for TeamViewer 14 and to receive major beta releases
### Choose stable tv14 to receive updates for TeamViewer 14
### Choose preview tv14 to receive early updates for TeamViewer 14
# deb http://linux.teamviewer.com/deb stable main
# deb http://linux.teamviewer.com/deb preview main
# deb http://linux.teamviewer.com/deb stable tv14
# deb http://linux.teamviewer.com/deb preview tv14
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list.distUpgrade <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list.save <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/webupd8team-ubuntu-java-bionic.list <==
==> /etc/apt/sources.list.d/webupd8team-ubuntu-java-bionic.list.save <==
apt software-installation java
New contributor
user367063 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
If I type
java -version
I get
Command 'java' not found, but can be installed with:
sudo apt install default-jre
sudo apt install openjdk-11-jre-headless
sudo apt install openjdk-8-jre-headless (You will have to enable component called 'universe')
when I try
sudo apt install default-jre
I get
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package default-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'default-jre' has no installation candidate
I've tried apt-get update and also installing the other ones, but when I try openjdk ones, it says unable to locate package ...
Edit:
apt policy
output:
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic/main i386 Packages
release v=18.04,o=LP-PPA-mosquitto-dev-mosquitto-ppa,a=bionic,n=bionic,l=mosquitto,c=main,b=i386
origin ppa.launchpad.net
500 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic/main amd64 Packages
release v=18.04,o=LP-PPA-mosquitto-dev-mosquitto-ppa,a=bionic,n=bionic,l=mosquitto,c=main,b=amd64
origin ppa.launchpad.net
500 https://download.mono-project.com/repo/ubuntu stable-bionic/main i386 Packages
release v=18.04,o=XamarinBionic,a=stable-bionic,n=bionic,l=Xamarin-Stable-Bionic,c=main,b=i386
origin download.mono-project.com
500 https://download.mono-project.com/repo/ubuntu stable-bionic/main amd64 Packages
release v=18.04,o=XamarinBionic,a=stable-bionic,n=bionic,l=Xamarin-Stable-Bionic,c=main,b=amd64
origin download.mono-project.com
Pinned packages:
head -n -0 /etc/apt/sources.list /etc/apt/sources.list.d/*
output:
==> /etc/apt/sources.list <==
# deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe
## 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-src http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## 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-src http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## 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://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
==> /etc/apt/sources.list.d/google-chrome.list <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google-chrome.list.distUpgrade <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google-chrome.list.save <==
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google.list <==
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main # disabled on upgrade to bionic
==> /etc/apt/sources.list.d/google.list.distUpgrade <==
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
==> /etc/apt/sources.list.d/google.list.save <==
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main # disabled on upgrade to bionic
==> /etc/apt/sources.list.d/mono-official-preview.list <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-preview.list.distUpgrade <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-preview.list.save <==
# deb https://download.mono-project.com/repo/ubuntu preview-xenial main
==> /etc/apt/sources.list.d/mono-official-stable.list <==
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
==> /etc/apt/sources.list.d/mono-official-stable.list.save <==
deb https://download.mono-project.com/repo/ubuntu stable-bionic main
==> /etc/apt/sources.list.d/mono-xamarin.list <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mono-xamarin.list.distUpgrade <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mono-xamarin.list.save <==
# deb http://download.mono-project.com/repo/debian wheezy main
==> /etc/apt/sources.list.d/mosquitto-dev-ubuntu-mosquitto-ppa-bionic.list <==
deb http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
==> /etc/apt/sources.list.d/mosquitto-dev-ubuntu-mosquitto-ppa-bionic.list.save <==
deb http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
# deb-src http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu bionic main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list.distUpgrade <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/notepadqq-team-ubuntu-notepadqq-xenial.list.save <==
# deb http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
# deb-src http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu xenial main
==> /etc/apt/sources.list.d/skype-stable.list <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/skype-stable.list.distUpgrade <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/skype-stable.list.save <==
# deb [arch=amd64] https://repo.skype.com/deb stable main
==> /etc/apt/sources.list.d/teamviewer.list <==
### TeamViewer DEB repository list
### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'
### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo main [stable] - make all TeamViewer packages available (default)
### teamviewer repo tv14 [stable] - make TeamViewer 14 packages available
### stable omit preview and beta releases
### Choose stable main to receive updates for TeamViewer 14 and upcoming major releases
### Choose preview main to receive early updates for TeamViewer 14 and to receive major beta releases
### Choose stable tv14 to receive updates for TeamViewer 14
### Choose preview tv14 to receive early updates for TeamViewer 14
# deb http://linux.teamviewer.com/deb stable main
# deb http://linux.teamviewer.com/deb preview main
# deb http://linux.teamviewer.com/deb stable tv14
# deb http://linux.teamviewer.com/deb preview tv14
==> /etc/apt/sources.list.d/teamviewer.list.save <==
### TeamViewer DEB repository list
### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'
### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo main [stable] - make all TeamViewer packages available (default)
### teamviewer repo tv14 [stable] - make TeamViewer 14 packages available
### stable omit preview and beta releases
### Choose stable main to receive updates for TeamViewer 14 and upcoming major releases
### Choose preview main to receive early updates for TeamViewer 14 and to receive major beta releases
### Choose stable tv14 to receive updates for TeamViewer 14
### Choose preview tv14 to receive early updates for TeamViewer 14
# deb http://linux.teamviewer.com/deb stable main
# deb http://linux.teamviewer.com/deb preview main
# deb http://linux.teamviewer.com/deb stable tv14
# deb http://linux.teamviewer.com/deb preview tv14
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list.distUpgrade <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list.save <==
# deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
# deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main
==> /etc/apt/sources.list.d/webupd8team-ubuntu-java-bionic.list <==
==> /etc/apt/sources.list.d/webupd8team-ubuntu-java-bionic.list.save <==
apt software-installation java
apt software-installation java
New contributor
user367063 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user367063 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited yesterday
user367063
New contributor
user367063 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked yesterday
user367063user367063
32 bronze badges
32 bronze badges
New contributor
user367063 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user367063 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
What OS version are you running?
– ajgringo619
yesterday
Ubuntu 18.04.2 LTS
– user367063
yesterday
Isopenjdk-11-jreinstalled? If not, try that one.
– ajgringo619
yesterday
It says unable to locate package when I try installing openjdk
– user367063
yesterday
1
Runsudo apt update, then try again. Also tryapt search jre.
– ajgringo619
yesterday
|
show 3 more comments
What OS version are you running?
– ajgringo619
yesterday
Ubuntu 18.04.2 LTS
– user367063
yesterday
Isopenjdk-11-jreinstalled? If not, try that one.
– ajgringo619
yesterday
It says unable to locate package when I try installing openjdk
– user367063
yesterday
1
Runsudo apt update, then try again. Also tryapt search jre.
– ajgringo619
yesterday
What OS version are you running?
– ajgringo619
yesterday
What OS version are you running?
– ajgringo619
yesterday
Ubuntu 18.04.2 LTS
– user367063
yesterday
Ubuntu 18.04.2 LTS
– user367063
yesterday
Is
openjdk-11-jre installed? If not, try that one.– ajgringo619
yesterday
Is
openjdk-11-jre installed? If not, try that one.– ajgringo619
yesterday
It says unable to locate package when I try installing openjdk
– user367063
yesterday
It says unable to locate package when I try installing openjdk
– user367063
yesterday
1
1
Run
sudo apt update, then try again. Also try apt search jre.– ajgringo619
yesterday
Run
sudo apt update, then try again. Also try apt search jre.– ajgringo619
yesterday
|
show 3 more comments
1 Answer
1
active
oldest
votes
It looks like your upgrade from 16.04 to 18.04 didn’t finish properly, and it left your repository configuration mostly commented out.
To fix the Ubuntu repositories, edit /etc/apt/sources.list so it contains
deb http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
then run apt update and you should be able to install default-jre.
You should also review all your files in /etc/apt/sources.list.d; if the .list.distUpgrade files look OK to you, rename them to drop the .distUpgrade part.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
user367063 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f535633%2fcannot-install-default-jre-package-default-jre-has-no-installation-candidate%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It looks like your upgrade from 16.04 to 18.04 didn’t finish properly, and it left your repository configuration mostly commented out.
To fix the Ubuntu repositories, edit /etc/apt/sources.list so it contains
deb http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
then run apt update and you should be able to install default-jre.
You should also review all your files in /etc/apt/sources.list.d; if the .list.distUpgrade files look OK to you, rename them to drop the .distUpgrade part.
add a comment |
It looks like your upgrade from 16.04 to 18.04 didn’t finish properly, and it left your repository configuration mostly commented out.
To fix the Ubuntu repositories, edit /etc/apt/sources.list so it contains
deb http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
then run apt update and you should be able to install default-jre.
You should also review all your files in /etc/apt/sources.list.d; if the .list.distUpgrade files look OK to you, rename them to drop the .distUpgrade part.
add a comment |
It looks like your upgrade from 16.04 to 18.04 didn’t finish properly, and it left your repository configuration mostly commented out.
To fix the Ubuntu repositories, edit /etc/apt/sources.list so it contains
deb http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
then run apt update and you should be able to install default-jre.
You should also review all your files in /etc/apt/sources.list.d; if the .list.distUpgrade files look OK to you, rename them to drop the .distUpgrade part.
It looks like your upgrade from 16.04 to 18.04 didn’t finish properly, and it left your repository configuration mostly commented out.
To fix the Ubuntu repositories, edit /etc/apt/sources.list so it contains
deb http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
then run apt update and you should be able to install default-jre.
You should also review all your files in /etc/apt/sources.list.d; if the .list.distUpgrade files look OK to you, rename them to drop the .distUpgrade part.
answered yesterday
Stephen KittStephen Kitt
199k27 gold badges473 silver badges543 bronze badges
199k27 gold badges473 silver badges543 bronze badges
add a comment |
add a comment |
user367063 is a new contributor. Be nice, and check out our Code of Conduct.
user367063 is a new contributor. Be nice, and check out our Code of Conduct.
user367063 is a new contributor. Be nice, and check out our Code of Conduct.
user367063 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f535633%2fcannot-install-default-jre-package-default-jre-has-no-installation-candidate%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What OS version are you running?
– ajgringo619
yesterday
Ubuntu 18.04.2 LTS
– user367063
yesterday
Is
openjdk-11-jreinstalled? If not, try that one.– ajgringo619
yesterday
It says unable to locate package when I try installing openjdk
– user367063
yesterday
1
Run
sudo apt update, then try again. Also tryapt search jre.– ajgringo619
yesterday