"Unable to locate package subsurface" in ubuntu

128 views
Skip to first unread message

Manolis Darakis

unread,
Jan 21, 2024, 6:19:44 AM1/21/24
to Subsurface Divelog
Just to let you know that there seems to be something wrong with the Ubuntu PPA.

In order to move to the latest rolling release, I removed the old subsurface snap from my ubuntu system and I successfully added the daily PPA. I then updated apt but when I try to install subsurface I keep getting "Unable to locate package subsurface" error.
All these in a fully updated Ubuntu 23.10 system.

~$sudo add-apt-repository ppa:subsurface/subsurface-daily
Returns (among others):
Found existing deb entry in /etc/apt/sources.list.d/subsurface-ubuntu-subsurface-daily-mantic.sources

~$sudo apt update
Returns (among others):
All packages are up to date.

And then:

~$ sudo apt install subsurface
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
No apt package "subsurface", but there is a snap with that name.
Try "snap install subsurface"
E: Unable to locate package subsurface

 My apologies up in front in case I am doing something wrong (which is something quite probable).

Cheers

Dirk Hohndel

unread,
Jan 21, 2024, 1:57:55 PM1/21/24
to Subsurface User Forum
Hi Manolis...

On Jan 21, 2024, at 03:19, Manolis Darakis wrote:

Just to let you know that there seems to be something wrong with the Ubuntu PPA.

This is very strange...

In order to move to the latest rolling release, I removed the old subsurface snap from my ubuntu system and I successfully added the daily PPA. I then updated apt but when I try to install subsurface I keep getting "Unable to locate package subsurface" error.
All these in a fully updated Ubuntu 23.10 system.

~$sudo add-apt-repository ppa:subsurface/subsurface-daily
Returns (among others):
Found existing deb entry in /etc/apt/sources.list.d/subsurface-ubuntu-subsurface-daily-mantic.sources

So that sounds about right (I don't have a 23.10 system, I tend to stick with LTS versions, but on the surface


~$sudo apt update
Returns (among others):
All packages are up to date.

It would possibly say that if you haven't installed Subsurface from that PPA, yet.

And then:

~$ sudo apt install subsurface
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
No apt package "subsurface", but there is a snap with that name.
Try "snap install subsurface"
E: Unable to locate package subsurface

And that's what I don't get - because for me it then immediately offers to install the Subsurface package and its dependencies.

What do you see when you check the app info:

$ sudo apt info subsurface
Package: subsurface
Version: 6.0.5066.0-1~jammy
Priority: optional
Section: utils
Maintainer: Subsurface CI Bot <di...@subsurface-divelog.org>
Installed-Size: 22.6 MB
Depends: libbluetooth3 (>= 4.91), libc6 (>= 2.34), libgcc-s1 (>= 3.3.1), libgit2-1.1 (>= 1.1.0), libmtp9 (>= 1.1.3), libqt5bluetooth5 (>= 5.9.0~rc2), libqt5core5a (>= 5.15.1), libqt5gui5 (>= 5.14.1) | libqt5gui5-gles (>= 5.14.1), libqt5location5 (>= 5.15.1), libqt5network5 (>= 5.14.1), libqt5positioning5 (>= 5.6.0), libqt5printsupport5 (>= 5.0.2), libqt5qml5 (>= 5.0.2), libqt5quick5 (>= 5.9.0~beta) | libqt5quick5-gles (>= 5.9.0~beta), libqt5quickwidgets5 (>= 5.11.0), libqt5svg5 (>= 5.6.0~beta), libqt5webkit5 (>= 5.212.0~alpha3), libqt5widgets5 (>= 5.14.1), libsqlite3-0 (>= 3.5.9), libstdc++6 (>= 11), libusb-1.0-0 (>= 2:1.0.16), libxml2 (>= 2.7.4), libxslt1.1 (>= 1.1.27), libzip4 (>= 1.0), qml-module-qtlocation, qml-module-qtpositioning, qml-module-qtquick2
Download-Size: 9,811 kB
Description: Dive log program
 Subsurface is an open source divelog program that runs on Windows, Mac and Linux.
 Subsurface is able to track single- and multi-tank dives using air, Nitrox or
 TriMix. It also allows logging of weights and exposure protection used, dive
 masters and dive buddies and enables the user to rate dives and provide
 additional dive notes.

Does it look similar (with different versions, of course)?

What do you get when you run

ls -l /var/lib/apt/lists/*subsurface*subsurface-daily*Packages
cat /var/lib/apt/lists/*subsurface*subsurface-daily*Packages
awk '$1 == "Package:" { if (a[$2]++ == 0) print $2; }' /var/lib/apt/lists/*subsurface*subsurface-daily*Packages

Hopefully that will shed some light on the issue...

/D

emmdarakis

unread,
Jan 21, 2024, 3:44:29 PM1/21/24
to subsurfac...@googlegroups.com
Here we go:

$ sudo apt info subsurface
N: Unable to locate package subsurface
N: Unable to locate package subsurface
E: No packages found

And
$ ls -l /var/lib/apt/lists/*subsurface*subsurface-daily*Packages

cat /var/lib/apt/lists/*subsurface*subsurface-daily*Packages
awk '$1 == "Package:" { if (a[$2]++ == 0) print $2; }' /var/lib/apt/lists/*subsurface*subsurface-daily*Packages
-rw-r--r-- 1 root root 590 Δεκ   5 09:23 /var/lib/apt/lists/ppa.launchpadcontent.net_subsurface_subsurface-daily_ubuntu_dists_mantic_main_binary-amd64_Packages
Package: subsurface-qt-private-headers
Priority: optional
Section: devel
Installed-Size: 890

Maintainer: Subsurface CI Bot <di...@subsurface-divelog.org>
Architecture: amd64
Version: 5.15.10-3~mantic
Filename: pool/main/s/subsurface-qt-private-headers/subsurface-qt-private-headers_5.15.10-3~mantic_amd64.deb
Size: 75868
MD5sum: f7e07d8ff34c1768b04a343099cbe8f3
SHA1: f3e5bd3e3de719db79fee8bdbe8d796e21b34f06
SHA256: a81a590cd78359b810978d743f920701514c72cc4aee03c4f9d60905c244626d
Description: QTLocation and QTPositioning private headers
Description-md5: 0f5c774e3aa3c4dc63cff7cadae5026a

subsurface-qt-private-headers

I hope these help.

Regards
Manolis


--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/CBDFDB0B-4CF6-48B0-9499-33ABDD7F80FC%40hohndel.org.

Dirk Hohndel

unread,
Jan 21, 2024, 3:54:36 PM1/21/24
to subsurfac...@googlegroups.com
It does explain a lot.
For Mantis it's not showing a Subsurface package, yet when I looked at the build log, it looked like the build completed.

I need to dig into this some more why it's not published.

Thanks for the additional details.

/D
>> <https://groups.google.com/d/msgid/subsurface-divelog/CBDFDB0B-4CF6-48B0-9499-33ABDD7F80FC%40hohndel.org?utm_medium=email&utm_source=footer>
>> .
>>
>

--
From my phone

Dirk Hohndel

unread,
Jan 21, 2024, 7:55:28 PM1/21/24
to Subsurface User Forum
Ok, I found the issue and fixed it. If you run `apt update` now it should find the subsurface package.

Thanks for bringing this to my attention!

/D

emmdarakis

unread,
Jan 22, 2024, 1:08:24 AM1/22/24
to subsurfac...@googlegroups.com
Works like a charm,
Thanks...

Reply all
Reply to author
Forward
0 new messages