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 am trying to install Java 7. I tested my Java version first, please see the below code
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$ java -version
java version "1.6.0_30"
OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.1)
OpenJDK Client VM (build 23.25-b01, mixed mode, sharing)
I tried uninstalling this first, using below command:
sudo apt-get remove openjdk-6-jdk
It gave me the following result.
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$ sudo apt-get remove openjdk-6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-6-jdk is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$
I also tried using sudo apt-get remove default-jdk but same.
So how can I install Java 7?
From the directions posted here,
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Then you can use update-java-alternatives,
sudo update-java-alternatives -l
sudo update-java-alternatives -s <The correct Java 7 JDK>
You could install openjdk-7-jdk directly by
apt-get install openjdk-7-jdk
After that, you could use update-java-alternatives to set it as your default Java
update-java-alternatives -l
update-java-alternatives -s <jname>
Related
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
I want to install this package to utilize some kodi addons. It needs version 2.4.3 at least but I can not update it to the newest version because apt thinks this is already the newest version but it definetely is not.
This is what somebody else already helped me with:
Your system must have issues getting newer updates because Debian Buster ships with IA v2.4.4:
https://www.deb-multimedia.org/dists/stable/main/binary-armhf/package/kodi-inputstream-adaptive
This happens when I want to install newest version:
pi#raspberrypi:~ $ sudo apt-get install kodi-inputstream-adaptive
Reading package lists... Done
Building dependency tree
Reading state information... Done
kodi-inputstream-adaptive is already the newest version (2.4.2-1~buster).
0 upgraded, 0 newly installed, 0 to remove and 154 not upgraded.
You could try to add it manually.
Add the following line to /etc/apt/sources.list:
deb http://www.deb-multimedia.org buster main
Update packages:
sudo apt-get update
Install keyring:
sudo apt-get install deb-multimedia-keyring
Then try to install it again
sudo apt-get install kodi-inputstream-adaptive
Reference.
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.
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
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 6 years ago.
Improve this question
I am having some trouble when installing samba on Centos6.5.
I use this command:
sudo yum install samba samba-client samba-common
But I keep getting this Error:
Error: Package: samba-winbind-clients-3.6.9-164.el6.i686 (tejas-barot-alub-tv)
Requires: samba-winbind = 3.6.9-164.el6
Installed: samba-winbind-3.6.9-168.el6_5.x86_64 (#updates)
samba-winbind = 3.6.9-168.el6_5
Available: samba-winbind-3.6.9-164.el6.x86_64 (tejas-barot-alub-tv)
samba-winbind = 3.6.9-164.el6
Available: samba4-winbind-4.0.0-58.el6.rc4.x86_64 (tejas-barot-alub-tv)
samba-winbind = 4.0.0-58.el6.rc4
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I see that I have the required packages, but how to I change the version of them, so I can install Samba on my server?
Try Running :
yum clean all
then
yum install samba-winbind-clients
Try this:
yum install samba4 samba4-client samba4-common
or see this tutorial
I found a solution -
Remove any installed Samba versions: - sudo yum remove samba4-libs samba-common samba-winbind-clients samba-winbind samba-client
Install samba - sudo yum install samba
Test: service smb start
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'm using Linux Mint 11 64 bit. I needed some packages to install newest software and found them in ubuntu repositories.
To do this I added
deb http://security.ubuntu.com/ubuntu oneiric-security main
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ oneiric main
to my
/etc/apt/sources.list.
I made automatically sudo apt-get update + sudo apt-get upgrade and it installed ~900 packages from that repository (and removed some of my Mint too...). My system changed to Ubuntu-like dist, installed new graphical interface - probably GNOME3 (I liked my GNOME2 really much..). I am now unable to start GNOME2 at all.
Is there any way to undo this changes? I've removed that lines from sources.list, tried sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
but it didn't help.
Thanks.
You can use ppa-purge - install with sudo apt-get install ppa-purge
See this article for more info
That will roll back your packages so it is safe to remove the repo and keep the software and your system wont blow up.
EDIT (based on user1131467's comment): for full-blown repositories, these answers will help, but it is much more manual:
https://askubuntu.com/a/3675/38901 and
https://superuser.com/a/195071/110574
No sorry, you are pretty screwed. You now have newer versions of most of the packages, so even if you remove the oneiric repo it will still opt to keep the new ones.
The best option is to backup and reinstall.