beta-tester / RPi-GPS-PPS-StratumOne

setup a Raspberry Pi as a Stratum One time server (GPS with PPS)
GNU General Public License v3.0
128 stars 27 forks source link

gpsd-clients package unmet dependencies in Raspbian 11 Bullseye #13

Closed nm527 closed 2 years ago

nm527 commented 2 years ago

The gpsd installation fails on Raspbian 11 because gpsd-clients package is not available. (Renamed perhaps?)

Built on Raspberry Pi 2 Model B Rev 1.1 using: Raspberry Pi OS Lite 32-bit, Kernel version: 5.15, Debian version: 11 (bullseye)

Works perfectly with one small change to line 52.

Line 52 reads: sudo apt-get -y install gpsd gpsd-clients;

It works if line 52 is modified to read: sudo apt-get -y install gpsd;

beta-tester commented 2 years ago

thank you for the hint, but are you shure the package does not exists? i still can install it on a RPi Zero.

$ apt info gpsd-clients
Package: gpsd-clients
Version: 3.22-4
Priority: optional
Section: misc
Source: gpsd
Maintainer: Bernd Zeimetz <bzed@debian.org>
Installed-Size: 1.611 kB
Depends: libbluetooth3 (>= 4.91), libc6 (>= 2.29), libdbus-1-3 (>= 1.9.14), libusb-1.0-0 (>= 2:1.0.8), libgps28 (= 3.22-4), gpsd-tools (= 3.22-4), python3-matplotlib, python3-gps, python3-gi, python3-cairo, gir1.2-gtk-3.0, python3-serial, python3-gi-cairo, python3
Suggests: gpsd
Breaks: gpsd-tools (<< 3.20-10), python-gps
Replaces: gpsd-tools (<< 3.20-10), python-gps
Homepage: http://www.catb.org/gpsd/
Download-Size: 429 kB
APT-Sources: http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
Description: Global Positioning System - clients
 The gpsd service daemon can monitor one or more GPS devices connected to
 a host computer, making all data on the location and movements of the
 sensors available to be queried on TCP port 2947.
 .
 This package contains auxiliary tools and example clients for monitoring,
 testing, latency-profiling, device configuration and simulating gpsd.

PS.: the package gpsd-clients is not mandatory, it is only important, if you use things like `xgps``or gpsd in python

ComputerSmiths commented 2 years ago

Be aware that gpsd, at least my release:

gpsd: 3.23.2~dev (revision release-3.23.1-80-g821fd1b8c)

Will stop working if it loses lock on too many satellites (used birds drops to zero), and won't come back without 'service gpsd restart'

I haven't dared to try to upgrade gpsd to the latest release (3.24?) as I don't have a good backup, and I'm afraid of breaking everything. Soon...

And yes, one should ensure that the GPS antenna is in a location that this'll never happen, but that's not always possible.

On Sep 27, 2022, at 10:18 AM, beta-tester @.***> wrote:

ithank you for the hint, but are you shure the package does not exists? i still can install it on a RPi Zero.

$ apt info gpsd-clients Package: gpsd-clients Version: 3.22-4

nm527 commented 2 years ago

My mistake. It does exist! Interestingly, earlier this morning a manual install attempt of gpsd-clients results in unmet dependencies as shown below. However just now, a fresh apt update and now it will install.

Thank you both for your input. I'll chalk this up to the newness of the release and no fault of this project. Thank you both for your comments.

Before:

$ sudo apt-get -y install gpsd-clients
Reading package lists... Done
Building dependency tree... Done
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:
 libgtk-3-0 : Depends: libwayland-client0 (>= 1.20.0) but 1.18.0-2~exp1.1 is to be installed
              Recommends: libgtk-3-bin but it is not going to be installed
              Recommends: librsvg2-common but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

After

$ sudo apt-get -y install gpsd-clients
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  adwaita-icon-theme at-spi2-core blt dbus-user-session dconf-gsettings-backend dconf-service fonts-lyx gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-glib-2.0 gir1.2-gtk-3.0
  gir1.2-harfbuzz-0.0 gir1.2-pango-1.0 glib-networking glib-networking-common glib-networking-services gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme javascript-common
  libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libcairo-gobject2 libcolord2 libcups2 libdconf1 libepoxy0 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common
  libgirepository-1.0-1 libgtk-3-0 libgtk-3-bin libgtk-3-common libjs-jquery libjs-jquery-ui libjson-glib-1.0-0 libjson-glib-1.0-common libpangoxft-1.0-0 libproxy1v5 librest-0.7-0 librsvg2-2
  librsvg2-common libsoup-gnome2.4-1 libsoup2.4-1 libtcl8.6 libtk8.6 libwayland-client0 libwayland-cursor0 libwayland-egl1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1
  libxkbcommon0 libxrandr2 libxss1 libxtst6 python-matplotlib-data python3-cairo python3-cycler python3-dateutil python3-gi python3-gi-cairo python3-gps python3-kiwisolver python3-matplotlib
  python3-pyparsing python3-serial python3-tk tk8.6-blt2.5 ttf-bitstream-vera x11-common
Suggested packages:
  blt-demo apache2 | lighttpd | httpd colord cups-common gvfs libjs-jquery-ui-docs librsvg2-bin tcl8.6 tk8.6 python-cycler-doc dvipng ffmpeg ghostscript inkscape ipython3 python-matplotlib-doc
  python3-cairocffi python3-gobject python3-nose python3-pyqt5 python3-scipy python3-sip python3-tornado texlive-extra-utils texlive-latex-extra ttf-staypuft python-pyparsing-doc python3-wxgtk3.0
  | python3-wxgtk tix python3-tk-dbg
The following NEW packages will be installed:
  adwaita-icon-theme at-spi2-core blt dbus-user-session dconf-gsettings-backend dconf-service fonts-lyx gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-glib-2.0 gir1.2-gtk-3.0
  gir1.2-harfbuzz-0.0 gir1.2-pango-1.0 glib-networking glib-networking-common glib-networking-services gpsd-clients gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme javascript-common
  libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libcairo-gobject2 libcolord2 libcups2 libdconf1 libepoxy0 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common
  libgirepository-1.0-1 libgtk-3-0 libgtk-3-bin libgtk-3-common libjs-jquery libjs-jquery-ui libjson-glib-1.0-0 libjson-glib-1.0-common libpangoxft-1.0-0 libproxy1v5 librest-0.7-0 librsvg2-2
  librsvg2-common libsoup-gnome2.4-1 libsoup2.4-1 libtcl8.6 libtk8.6 libwayland-client0 libwayland-cursor0 libwayland-egl1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1
  libxkbcommon0 libxrandr2 libxss1 libxtst6 python-matplotlib-data python3-cairo python3-cycler python3-dateutil python3-gi python3-gi-cairo python3-gps python3-kiwisolver python3-matplotlib
  python3-pyparsing python3-serial python3-tk tk8.6-blt2.5 ttf-bitstream-vera x11-common
0 upgraded, 81 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.6 MB of archives.
After this operation, 130 MB of additional disk space will be used.
beta-tester commented 2 years ago

It does exist! Interestingly, earlier this morning a manual install attempt of gpsd-clients results in unmet dependencies as shown below. However just now, a fresh apt update and now it will install.

no problem, good to hear that it works.

PS.: in the meantime i flashed the Raspi OS Lite image from 2022-09-22 to a SD-card and run this project with no issues.