Cannot install openjdk-7-jdk on Ubuntu 14 [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm currently using ubuntu 14 as my OS. I want to install openjdk-7-jdk on Ubuntu but I have an error when I typed sudo apt-get install openjdk-7-jdk. Here is the error message :
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
google-chrome-stable : Depends: libappindicator1 but it is not going to be installed
openjdk-7-jdk : Depends: openjdk-7-jre (= 7u79-2.5.6-0ubuntu1.14.04.1) but it is not going to be installed
Recommends: libxt-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I've tried sudo apt-get -f install openjdk-7-jdk but did not work.
Please help me. Thanks.

you have some broken packages so before installing openjdk . run command
sudo apt-get -f install
it will install all broken dependency then run command
sudo apt-get install openjdk-7-jdk
it will work

Related

apt-get installation prblem [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
when i install any package in kali linux 2019.2 it happens some error..
root#kali:~# apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
virtualbox-6.1 : Depends: libqt5x11extras5 (>= 5.6.0) but it is not going
to be installed
Depends: libsdl1.2debian (>= 1.2.11) but it is not going
to be installed
Recommends: libsdl-ttf2.0-0 but it is not going to be
installed
Recommends: linux-image but it is not installable
#how can i fixed this error!
In this case you have to use apt install -f

Having trouble installing mongodb on ubuntu version 18.04 LTS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I've recently installed Ubuntu version 18.04 LTS and just started to learn to use use linux and terminal. I want to install mongodb. I'm following the steps from this website.
i ran the following lines in the terminal
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
after i run the fourth line the following appears
tasif#Tasif-Dell:/$ sudo apt-get install -y mongodb-org
[sudo] password for tasif:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-server but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.
Then when i want to start mongodb the following message is displayed
tasif#Tasif-Dell:/$ sudo service mongod start
[sudo] password for tasif:
Failed to start mongod.service: Unit mongod.service not found.
installing libcurl3 fixed it for me
sudo apt install libcurl3
Unfortunately, there's no non-development release of MongoDB for 18.04 yet. (Current as of 2018-07-12)
https://repo.mongodb.org/apt/ubuntu/dists/bionic/ shows that there's only a dev release.
Your specific problem is that you are not installing all the dependencies for Mongo, which can probably be fixed with:
sudo apt-get install -f
Per this ask Ubuntu answer.

How to install npm on debian vagrant box? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
How can I install npm inside Debian vagrant box? I try this, but it's not wotking.
vagrant#packer-debian-7:~$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 82 not upgraded.
vagrant#packer-debian-7:~$ nodejs -v
v0.10.29
vagrant#packer-debian-7:~$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package npm
vagrant#packer-debian-7:~$ npm -v
-bash: npm: command not found
My host OS is Ubuntu
The debian way would be to add the repo and install with apt-get
curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get update
sudo apt-get install --yes nodejs
That will install nodejs and npm the debian way
Here you have a vagrant provision i build that comes with nodejs
https://github.com/Sudakatux/vagrant-liferay-others
run command :
wget https://npmjs.org/install.sh
sudo chmod +x install.sh
sudo ./install.sh
it will install npm to your vagrant box.
Scroll down on the nodesource installation page (https://github.com/nodesource/distributions/blob/master/README.md#debinstall). You need to install build-essentials, which includes npm.
# use `sudo` on Ubuntu or run this as root on debian
apt-get install -y build-essential

How to remove an incomplete package by using apt-get? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I've tried to install android-studio via apt-get in Ubuntu and find that a dependency package with a size of 233 M is required to download from Google. Since I'm in China the network condition is so bad that I cannot download the package completely, and finally I have to give up.
However here comes a problem: now every time I execute apt-get I will get a hint of Incomplete dependency and be asked to download the package above. If I execute sudo apt-get remove android-studio an error will occur:
dpkg: error processing package android-studio (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
An error occurred when processing:
android-studio
E: Sub-process /usr/bin/dpkg returned an error code (1)
My apt-get was stuck. So how can I remove an incomplete package entirely?
Try running following commands on the terminal:
sudo apt-get autoremove
sudo apt-get --purge remove
sudo dpkg --remove --force-remove-reinstreq tspc
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get -f install
These may clear or fix broken packages and try to install again.
Open synaptic Install synaptic. Then go to status and choose Broken. Then remove completely the broken packages.

Linux Debian - unmet dependencies [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
How can I remove unmet dependencies on my Linux Debian?
Result of apt-get -f install is following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libc-bin: Breaks: libc6 (< 2.10) but 2.7-18lenny7 is installed
libc-dev-bin: Depends: libc6 (> 2.13) but 2.7-18lenny7 is installed
Recommends: manpages-dev but it is not installed
libssh2-1: Depends: libgcrypt11 (>= 1.4.2) but 1.4.1-1 is installed
libssh2-1-dev: Depends: libssh2-1 (= 0.18-1) but 1.2.6-1 is
installed
locales: Depends: glibc-2.13-1
nscd: Depends: libc6 (> 2.13) but 2.7-18lenny7 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be
caused by held packages.
E: Unable to correct dependencies
uname -r result:
2.6.18-274.7.1.el5.028stab095.1
I also tried to apt-get remove libssh2-1, apt-get remove libc-dev-bin etc. but it doesn't work for me. It's annoying and I cannot install any other packages.
Any suggestions how can I fix that?
Try follow this step 1 by 1
apt-get autoclean
apt-get -f install
dpkg --configure -a
apt-get -f install
apt-get -u dist-upgrade
or try "aptitude" instead of "apt-get"

Resources