Got an error from Linux min about Mongo DB - mongodb

I have installed MongoDB on my Linux meant. I can't figure out the error.
Actually, it is a warning like this
W: http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Release.gpg: Signature by key 492EAFE8CD016A07919F1D2B9ECBEC467F0CEB10 uses weak digest algorithm (SHA1)
Can anyone help me to figure out the problem.
EDIT:
I wrote sudo apt-get update in the terminal. I got this warning in the last line on the each update.

Try sudo apt-get upgrade instead of sudo apt-get update
To see if any package upgrades are available use
sudo apt update (notice it's just apt) does provide feedback about the results.
By using apt, you will either see a message that
All packages are up to date
or
The following packages will be upgraded
Also see apt list --upgradeable.

Related

Error while running 'make install' command to install Apache AGE

After successfully installing postgresql from source code, I got an error while installing Apache AGE. I have attached a screenshot of the error below. It would be great if someone can help out.Terminal view of command and error
I am searching online to find a solution but haven't been able to found yet.
From the image, it looks like you are using postgres 12.13.
For postgres 12, you should checkout to age for pg12 branch by doing git checkout release/PG12/1.1.1 and then make install.
I was also getting errors in a configuration which were resolved by using this command first.
sudo apt-get install build-essential libreadline-dev zlib1g-dev flex bison
Try this and this will solve your problem too
In addition to installing the essential libraries before the actual installation using:
sudo apt-get install build-essential libreadline-dev zlib1g-dev flex bison (Note: The above command is for Ubuntu only. If you are not on Ubuntu, See here)
It is also recommended to install the postgreSQL development files using:
sudo apt install postgresql-server-dev-xx
This is not the exact command to be typed in the terminal. Check out the link
here to see the exact compatible command to execute according to the version of Linux you are currently using.

How to solve the error of Postgresql Client not installed on Ubuntu 18.04

Just install the Postgresql on Ubuntu 18.04 and having the error of PostgreSQL client
Warning: No existing local cluster is suitable as a default target.
Please see man pg_wrapper(1) how to specify one.
Error: You must install at least one postgresql-client-<version> package
I tried all the solutions that are on the StackOverflow and other forums but not succeed to solve the error
Following are the solutions that I tried
1. psql --cluster 10/apps [other arguments]
when I try the first solution it give me the error
Error: Invalid version 10 specified with --cluster
2. psql -p 5432
3. sudo apt-get install postgresql-client-10
when try the third solution it shows the following
postgresql-client-10 is already the newest version (10.5-0ubuntu0.18.04).
4. gedit ~/.bashrc
PATH=/usr/local/pgsql/bin:$PATH
export PATH
Can someone tell what the exact solution to solve the error.
Your 3rd solution is almost there, make sure to run sudo apt-get install postgresql-10 too.

Ubuntu 16.04 message of the day not updating number of package updates.

For the last month my amazon EC2 instance running Ubuntu 16.04 has had the same message of the day (motd):
30 packages can be updated.
10 updates are security updates.
I have run the suggested commands:
sudo apt-get dist-upgrade
sudo apt-get update
sudo apt-get upgrade
After rebooting the instance the motd does not change. There are no packages to update, it is only the motd not updating.
The issue was resolved by changing the shebang in the apt-check script from:
sudo vi /usr/lib/update-notifier/apt-check
#!/usr/bin/python3
to
#!/usr/bin/python3.5
python3 was calling a python interpreter without the module apt_pkg installed. After changing it back to the default python3.5 the motd is updating properly.
If anyone else has a similar problem in the future you can run this command to manually check if there are packages available to update:
python3.5 /usr/lib/update-notifier/apt-check --human-readable
or
sudo /usr/lib/update-notifier/update-motd-updates-available
The following commands fixed my issue:
sudo apt update
sudo apt upgrade
Notice that my commands do not contain -get. As far as I can tell, apt and apt-get are two different things. It looks like the Message Of The Day (MOTD) on my installation was referring to apt.

Cannot install uv4l raspicam

I am having a problem installing the uv4l raspicam on my Raspberry Pi 2. I have done everything multiple times according to the instructions in http://www.linux-projects.org/modules/sections/index.php?op=viewarticle&artid=14 and search the web over and over but no solutions.
For me it seems that the first instruction for saving the key goes ok, although I don't know how to verify it. If I check apt-key list, I don't know what there should be..?
After I have added the line to the sources.list and I try to perform apt-get update, it says:
Failed to fetch http://www.linux-projects.org/listing/uv4l_repo/raspbian/dists/jessie/main/binary-armhf/Packages 404 Not Found
I tried to put both wheezy and jessie ending to the sources.list, and even updated my raspbian version in between, because I couldn't get it working but it didn't help.
Failed to fetch http://www.linux-projects.org/listing/uv4l_repo/raspbian/dists/wheezy/main/binary-armhf/Packages 404 Not Found
And after trying to update it was vain to even try further because the install command fails as well:
E: Unable to locate package uv4l
E: Unable to locate package uv4l-raspicam
Any ideas what I am missing??
Thanks!
The OP seems that simply has a typo problem, but IMO the people that arrives here is trying to solve the Unable to locate package uv4l when they run:
sudo apt-get install uv4l
So I'll try to give a more detailed steps on how to solve this problem.
First install the key for the repository where uv4l is located, to do so run:
wget http://www.linux-projects.org/listing/uv4l_repo/lrkey.asc && sudo apt-key add ./lrkey.asc
Then edit the /etc/apt/sources.list and add this repository at the end of the file:
deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy main
Finally update the packages list:
sudo apt-get update
And now you can correctly download the uv4l.
sudo apt-get install uv4l
And how stupid can one be...
Remember to write everything correctly raspbian NOT raspian...

Where is libpq-fe.h on a Travis-CI instance?

I'm trying to build a postgres database adapter (luapgsql) as part of my setup:
install:
- sudo luarocks install --server=http://rocks.moonscript.org/dev luapgsql
But the build can't find libpq-fe.h:
Error: Could not find expected file libpq-fe.h, or libpq-fe.h for PQ --
you may have to install PQ in your system and/or pass PQ_DIR or
PQ_INCDIR to the luarocks command. Example: luarocks install luapgsql
PQ_DIR=/usr/local
I've tried what's suggested above, apt-get install libpq-dev and just find \ -name libpq-fe.h. No luck so far. Any ideas where it might be?
So it turns out that running pg_config as part of the install: was the answer. I could read the output in the log.
In the end, the line that worked for me for installing luapgsql on travis is:
sudo luarocks install --server=http://rocks.moonscript.org/dev luapgsql PQ_INCDIR=/usr/include/postgresql PQ_LIBDIR=/usr/lib/x86_64-linux-gnu