-1

I'm getting errors in my terminal every time I try to apt-get install something or update. I guess it has something to do with installing mongodb.

I'm new to Linux, and I followed this guide exactly on how to install it. I couldn't find a guide for 17.04 version so I did the 16.10, and now every time 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.
Zanna
  • 72,312
Steve
  • 1

1 Answers1

1

Run this command:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6

Then

sudo apt-add-repository 'deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse'

Then

sudo apt update

Arun
  • 2,011