unable to install mongodb properly on Ubuntu 17.04 - linux

Hello i'm getting errors in my terminal everytime i try to apt-get install something or update , i guess it has something to do with installing mongodb , i'm new to linux , i followed this guide exactly on how to install it , i couldnt find a guide for 17.04 version so i did the 16.10 , now everytime i try to apt-get something i get this error
Reading package lists... Done
W: GPG error:
http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0
Release: The
following signatures couldn't be verified because the public key is
not available: NO_PUBKEY 9ECBEC467F0CEB10
W: The repository
'http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 Release' is
not signed.
N: Data from such a repository can't be authenticated and
is therefore potentially dangerous to use.
N: See apt-secure(8)
manpage for repository creation and user configuration details.
plus i have an alert in my top bar:
an error occured please run package manager from the right-click menu
or apt-get in a terminal to see what is wrong
the error message was :
Error brokenCount > 0. this usually means that your installed packages
have unmet dependencies.

I think the problem is that the mongodb repository is not signed. You need to signed using apt-key adv ...
In the URL https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ there're some ubuntu repositories for mongodb, last available version is 16.04 . Tutorial for setup is also available.
Best luck

Related

Error while installing nodejs v18 on ubuntu 20.04

How can i fix this error?
I got this error when i tried to install nodejs v18 using these commands
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
THE ERROR:
E: Repository 'http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal InRelease' changed its 'Label' value from 'Lutris stable' to 'lutris'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
I tried removing the previous node version but it didn't work.
Execute this command:
sudo apt-get update --allow-releaseinfo-change
See the apt man page for more info:
--allow-releaseinfo-change
Allow the update command to continue downloading data from
a repository which changed its information of the release
contained in the repository indicating e.g a new major
release. APT will fail at the update command for such
repositories until the change is confirmed to ensure the
user is prepared for the change. See also apt-secure(8)
for details on the concept and configuration

Is there a repository engine issue for google cloud datalab on Linux Mint 18.3?

I am getting an error when I try to install google cloud datalab:
$ sudo apt-get update
...
Ign:18 http://packages.cloud.google.com/apt cloud-sdk-sylvia/main Translation-en
Reading package lists... Done
W: The repository 'http://packages.cloud.google.com/apt cloud-sdk-sylvia Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://packages.cloud.google.com/apt/dists/cloud-sdk-sylvia/main/binary-amd64/Packages 404 Not Found [IP: 2607:f8b0:4007:803::200e 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
$ sudo apt-get install google-cloud-sdk-datalab
[sudo] password for ...:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package google-cloud-sdk-datalab
Does anyone have any ideas? Has anyone made datalab work with linux mint 18.3?
I had the same problem. You have to install Google SDK directly. Here is the link: google-cloud-sdk-200.0.0-linux-x86_64.tar.gz
Extract the file, then run ./install.sh then close the shell, open a new shell and run gcloud init
Source: Google Cloud Quickstart for Linux
I followed same steps and faced same problem. So just removed newly added repo from /etc/apt/sources.list.d/google-cloud-sdk.list and installed gcloud sdk with simple
sudo apt-get update && sudo apt-get install google-cloud-sdk
ignoring all steps with repos and keys. And everything works fine.
PS I had Python 2.7 already installed
EDIT though this solutions works for basic operations like gcloud init I had to additionally follow Quick Start as mentioned in #kurdtpage answer to make gcloud components update and all other components work

"Error Executing Command, Exiting" Error upon installation of NodeJS

I am using Ubuntu 16.04LTS.
I typed in the following command in the terminal:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
In return, I am receiving the following error:
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/tualatrix/next/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/tualatrix/next/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
I just installed the very old version of NodeJS and NPM from the Ubuntu repositories because I could not install the most current version. However, I still want the most current version of Node and NPM.
I had the same issue. The problem is not the nodejs installation script but another package in your package list in /etc/apt/sources.list.
The following worked for me:
1) Create backup of the file /etc/apt/sources.list just to be on the safe side:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bu
2) Remove the packages that cause the issue:
Open /etc/apt/sources.list with root permissions, e.g.
sudo nano /etc/apt/sources.list
and remove the
http://ppa.launchpad.net/tualatrix/next/ubuntu/dists/xenial/main/binary-amd64/Packages
parts. In my case it was skype that caused the issue; you can identify the critical packages by the lines that start with E: Failed to fetch.
Afterwards, the following works fine (taken from the installation instructions):
cd ~
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install nodejs
sudo apt-get install build-essential
If one then types
nodejs -v
it will return
v8.9.4
(or whatever version you specified).
In case you already have anaconda installed, I recommend to install node.js inside an environment which keeps things clean. A detailed explanation on how to do this can be found here. Basically all it needs is
conda create -n webdev nodejs
plus desired python modules in case you would like to use e.g. Flask or Django.

Can't install CS50 library on Ubuntu 17.04

Trying to install the library in my Ubuntu 17.04 machine and also with some other machines with Ubuntu 17.4 but seems like in not yet supported because I'm always facing the following problem
W: The repository 'http://ppa.launchpad.net/cs50/ppa/ubuntu zesty Release' does not have a Release file.
E: Failed to fetch http://ppa.launchpad.net/cs50/ppa/ubuntu/dists/zesty/main/source/Sources 404 Not Found
which cause this problem E: Unable to locate package libcs50 when attempting to install it using sudo apt-get install libcs50 as mensioned in the REDME file.
Anyone faced the same problem and solved it.
Thanks in advance
Just for helping people who faced the same problem :
I Opened an issues in the GitHub repository and they fixed it : Just follow the instructions in the README.

PhpStorm Installation issue on Ubuntu 14.04

I am back here again with one more issue that I am having installing PhpStorm on my Ubuntu 14.04. To do so I followed the following steps:
Step 1. sudo apt-get purge openjdk* which gave me a long list mostly saying Package is not installed, so not removed. A few examples:
Package 'openjdk-7-dbg' is not installed, so not removed
Package 'openjdk-7-doc' is not installed, so not removed
...
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Step 2: sudo add-apt-repository ppa:webupd8team/java which ended up saying this:
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:
oracle-java7-set-default : Depends: oracle-java7-installer but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Step 3: Despite those error messages popped up I went ahead and ran sudo apt-get update which executed OK.
Step 4: Tried to run sudo apt-get install oracle-java7-installer which again popped up a lot of negative remarks!
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:
oracle-java7-installer : Depends: java-common (>= 0.24) but it is not installable
Recommends: gsfonts-x11 but it is not installable
E: Unable to correct problems, you have held broken packages.
So I did not go further with rest of the following commands:
sudo apt-get install oracle-java7-set-default
wget http://download-cf.jetbrains.com/webide/PhpStorm-7.1.3.tar.gz
tar -xvf PhpStorm-7.1.3.tar.gz
cd PhpStorm-133.982/bin
./phpstorm.sh
I have no idea what is going wrong! Somebody please help this absolute newbie to install it.
On another note, if PhpStorm fails to install somehow on my PC, please suggest me a good software which runs on Ubuntu with an inbuilt SASS compiler so that I do not have to run a command every time from terminal? And it would be even better if that software I can get for free! PhpStorm is only a 30-day trial.
EDIT
Strange, I'm using PhpStarm on Ubuntu 14.04 and ant works fine. IntelliJ IDEs are really great.
I have these Java from the same repo you are using.
java-common-0.51
java-wrappers-0.1.27
oracle-java7-installer-7u80+7u60arm-0~webupd8~1
Let's try to purge all the Java packages from you system and then install the Oracle Java again.
Use dpkg -l | grep java to discover all the installed java-related packages.
Then, use apt-get purge on all of them.
Skip the javascipt packages of course.
Then, try to install oracle-java7-installer again. I hope it will be installed correctly.
To install Phpstorm in Ubuntu just follow these steps
1.Run sudo apt install snapd
2.Then sudo snap install phpstorm --classic
3.Then type phpstorm in shell and press enter to launch Phpstorm
Read more about these here

Resources