RDS
Posts: 721
Joined: Tue Oct 06, 2015 8:17 am
Location: Lancashire, UK

Unable to locate package libmariadb3

Tue Oct 08, 2019 9:41 pm

I am trying to load MotionEye to use for CCTV but I am getting the above error.
I have read that this may be because my Python 3 image is outdated as libmariadb3 has been added recently.

Could someone advise if this is likely and if so, how to get around the problem.
Thank you

DirkS
Posts: 9968
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Unable to locate package libmariadb3

Tue Oct 08, 2019 11:29 pm

Where did you read that?
What 'Python 3 image'?
And is the title an error message you get? If that's the case then show us the full error message and the code that causes it.

fruitoftheloom
Posts: 20927
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Unable to locate package libmariadb3

Wed Oct 09, 2019 4:55 am

RDS wrote:
Tue Oct 08, 2019 9:41 pm
I am trying to load MotionEye to use for CCTV but I am getting the above error.
I have read that this may be because my Python 3 image is outdated as libmariadb3 has been added recently.

Could someone advise if this is likely and if so, how to get around the problem.
Thank you

You are following the correct instructions to install MotionEye in Raspbian Buster ??

https://github.com/ccrisan/motioneye/wi ... n-Raspbian
Retired disgracefully.....

RDS
Posts: 721
Joined: Tue Oct 06, 2015 8:17 am
Location: Lancashire, UK

Re: Unable to locate package libmariadb3

Wed Oct 09, 2019 10:09 am

@DirkS
I read about the Python3 comment on another Q&A board (I don't know why I bothered with that one as this Forum has always served me very well!)

The instructions I was trying to follow, were the ones linked to by fruitoftheloom in the post above.

I started by entering the following line into the Terminal:
pi@raspberrypi:~ $ sudo apt-get install ffmpeg libmariadb3 libpq5 libmicrohttpd12

This resulted in the following:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libmariadb3

So, I tried it by removing the libmariadb3 element, as follows:

Code: Select all

pi@raspberrypi:~ $ sudo apt-get install ffmpeg libpq5 libmicrohttpd12Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpq5 is already the newest version (9.6.11-0+deb9u1).
libpq5 set to manually installed.
ffmpeg is already the newest version (7:3.2.12-1~deb9u1+rpt1).
ffmpeg set to manually installed.
The following package was automatically installed and is no longer required:
  realpath
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  libmicrohttpd12
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 67.2 kB of archives.
After this operation, 134 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive-bm.raspbian.org/raspbian stretch/main armhf libmicrohttpd12 armhf 0.9.51-1 [67.2 kB]
Fetched 67.2 kB in 0s (153 kB/s)     
Selecting previously unselected package libmicrohttpd12.
(Reading database ... 133446 files and directories currently installed.)
Preparing to unpack .../libmicrohttpd12_0.9.51-1_armhf.deb ...
Unpacking libmicrohttpd12 (0.9.51-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libmicrohttpd12 (0.9.51-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...

To me, this appeared to work alright, so I tried libmariadb3 on it's own, as follows:

Code: Select all

pi@raspberrypi:~ $ sudo apt-get install libmariadb3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libmariadb3
which gave the error above.
Last edited by RDS on Wed Oct 09, 2019 12:59 pm, edited 5 times in total.

RDS
Posts: 721
Joined: Tue Oct 06, 2015 8:17 am
Location: Lancashire, UK

Re: Unable to locate package libmariadb3

Wed Oct 09, 2019 10:12 am

@fruitoftheloom
Yes, your link is the same one that I used.

gkreidl
Posts: 6119
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Unable to locate package libmariadb3

Wed Oct 09, 2019 10:21 am

libmariadb3 is in the repository. Run
sudo apt-get update
and try again.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

DirkS
Posts: 9968
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Unable to locate package libmariadb3

Wed Oct 09, 2019 10:34 am

libmariadb3 is a new package in Raspbian / Debian buster; it was not available in Stretch: https://packages.debian.org/buster/libmariadb3

Had a bit of a dig and looking at the revision history of the installation instructions it seems that the dependency was introduced *after* the Buster release. I would say the dev forgot to change the Raspbian release in the wiki.

Maybe you should contact the dev to make sure this is the case

RDS
Posts: 721
Joined: Tue Oct 06, 2015 8:17 am
Location: Lancashire, UK

Re: Unable to locate package libmariadb3

Wed Oct 09, 2019 1:04 pm

@gkreidl

Thank you but I have tried your suggestion, unfortunately is still gives the same error.

Code: Select all

pi@raspberrypi:~ $ sudo apt-get update
Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:4 http://archive.raspberrypi.org/debian stretch/main armhf Packages [221 kB]
Get:5 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [45.0 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian stretch/contrib armhf Packages [56.9 kB]
Get:7 http://raspbian.raspberrypi.org/raspbian stretch/non-free armhf Packages [95.5 kB]
Fetched 12.1 MB in 11s (1,095 kB/s)                                            
Reading package lists... Done
pi@raspberrypi:~ $ sudo apt-get install libmariadb3
Reading package lists... Done
Building dependency tree        
Reading state information... Done
E: Unable to locate package libmariadb3

User avatar
rpdom
Posts: 15417
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Unable to locate package libmariadb3

Wed Oct 09, 2019 1:12 pm

As mentioned above, libmariadb3 is available in Raspbian Buster, but you are running Raspbian Stretch.

You could try using the upgrade procedure from Stretch to Buster that is mentioned in the Blog, but that is not really recommended. The best option is to start with a new SD card (keep the old one for now, as it has a working system on it) and install the latest Raspbian Buster image on it.

RDS
Posts: 721
Joined: Tue Oct 06, 2015 8:17 am
Location: Lancashire, UK

Re: Unable to locate package libmariadb3

Wed Oct 09, 2019 2:32 pm

@rpdom
Thank you. It had not registered with me that Buster was a replacement for Stretch, as I thought that Stretch was the latest.
I will try what you suggest.

Return to “Python”