Issue with dependencies installing allmon3

Raspbian 10 install here…

I keep getting stuck in a loop here. it seems python3-aiohttp-session is no longer available.
If I try installing allmon3 overriding dependency checks, it installs but then I have a broken install…

root@asl1:/home/repeater# apt install python3-aiohttp-session
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package python3-aiohttp-session is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘python3-aiohttp-session’ has no installation candidate
root@asl1:/home/repeater# ^C
root@asl1:/home/repeater# dpkg -i --force-depends allmon3_0.11.0-1_all.deb
(Reading database … 144904 files and directories currently installed.)
Preparing to unpack allmon3_0.11.0-1_all.deb …
Unpacking allmon3 (0.11.0-1) over (0.11.0-1) …
dpkg: allmon3: dependency problems, but configuring anyway as you requested:
allmon3 depends on python3-aiohttp-session; however:
Package python3-aiohttp-session is not installed.

Setting up allmon3 (0.11.0-1) …
apache2_invoke proxy_http: already enabled
apache2_invoke proxy_wstunnel: already enabled
apache2_invoke rewrite: already enabled
apache2_invoke: Enable configuration allmon3
Processing triggers for man-db (2.8.5-2) …
root@asl1:/home/repeater# apt upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
allmon3 : Depends: python3-aiohttp-session but it is not installable
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
root@asl1:/home/repeater#

Could you state which OS & ver you are applying this to.

@N3fyi - Please make sure you are carfeully following the directions for Debian 10 / Raspbian 10. You should not be installing those Python3 packages using apt/deb but rather pip3. Please see Install Debian 10 / Raspian 10 Software and follow those directions carefully.

How did I miss that as the first line?
LOL would not be the first time !

I was following the instructions the best I could, but it would keep giving me an issue about python3-xxxx dependencies… so that’s when I installed them using python3 deb packages instead…

I stripped those out and used pip3, but now I’m still getting the dependencies errors, which then leave the install in a broken state

root@asl1:/home/repeater# apt remove python3-aiohttp python3-websockets
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ‘python3-aiohttp’ is not installed, so not removed
Package ‘python3-websockets’ is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
root@asl1:/home/repeater# pip3 install aiohttp
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: aiohttp in /usr/local/lib/python3.7/dist-packages (3.8.4)
Requirement already satisfied: attrs>=17.3.0 in /usr/lib/python3/dist-packages (from aiohttp) (19.3.0)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.7/dist-packages (from aiohttp) (3.1.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/lib/python3/dist-packages (from aiohttp) (4.5.2)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.7/dist-packages (from aiohttp) (4.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/lib/python3/dist-packages (from aiohttp) (1.3.0)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.7/dist-packages (from aiohttp) (1.3.3)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.7/dist-packages (from aiohttp) (1.3.1)
Requirement already satisfied: asynctest==0.13.0 in /usr/local/lib/python3.7/dist-packages (from aiohttp) (0.13.0)
Requirement already satisfied: typing-extensions>=3.7.4 in /usr/local/lib/python3.7/dist-packages (from aiohttp) (4.6.3)
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: 12. Virtual Environments and Packages — Python 3.11.4 documentation
root@asl1:/home/repeater# pip3 install aiohttp_session
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: aiohttp_session in /usr/local/lib/python3.7/dist-packages (2.12.0)
Requirement already satisfied: aiohttp>=3.8 in /usr/local/lib/python3.7/dist-packages (from aiohttp_session) (3.8.4)
Requirement already satisfied: typing-extensions>=3.7.4 in /usr/local/lib/python3.7/dist-packages (from aiohttp_session) (4.6.3)
Requirement already satisfied: attrs>=17.3.0 in /usr/lib/python3/dist-packages (from aiohttp>=3.8->aiohttp_session) (19.3.0)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.7/dist-packages (from aiohttp>=3.8->aiohttp_session) (3.1.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/lib/python3/dist-packages (from aiohttp>=3.8->aiohttp_session) (4.5.2)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.7/dist-packages (from aiohttp>=3.8->aiohttp_session) (4.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/lib/python3/dist-packages (from aiohttp>=3.8->aiohttp_session) (1.3.0)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.7/dist-packages (from aiohttp>=3.8->aiohttp_session) (1.3.3)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.7/dist-packages (from aiohttp>=3.8->aiohttp_session) (1.3.1)
Requirement already satisfied: asynctest==0.13.0 in /usr/local/lib/python3.7/dist-packages (from aiohttp>=3.8->aiohttp_session) (0.13.0)
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: 12. Virtual Environments and Packages — Python 3.11.4 documentation
root@asl1:/home/repeater# pip3 install websockets
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: websockets in /usr/local/lib/python3.7/dist-packages (11.0.3)
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: 12. Virtual Environments and Packages — Python 3.11.4 documentation
root@asl1:/home/repeater# wget https://github.com/AllStarLink/Allmon3/releases/download/rel_t_0_11_0/allmon3_0.11.0-1_all.deb
–2023-06-20 10:05:35-- https://github.com/AllStarLink/Allmon3/releases/download/rel_t_0_11_0/allmon3_0.11.0-1_all.deb
Resolving github.com (github.com)… 140.82.112.3
Connecting to github.com (github.com)|140.82.112.3|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/607798319/17e16a00-e769-4f37-89d0-b9533e8a9638?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230620%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230620T140535Z&X-Amz-Expires=300&X-Amz-Signature=0df6671a0e99c2285a5a58d2666caa8a585766932446f34b5bdc5f273d376253&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=607798319&response-content-disposition=attachment%3B%20filename%3Dallmon3_0.11.0-1_all.deb&response-content-type=application%2Foctet-stream [following]
–2023-06-20 10:05:35-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/607798319/17e16a00-e769-4f37-89d0-b9533e8a9638?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230620%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230620T140535Z&X-Amz-Expires=300&X-Amz-Signature=0df6671a0e99c2285a5a58d2666caa8a585766932446f34b5bdc5f273d376253&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=607798319&response-content-disposition=attachment%3B%20filename%3Dallmon3_0.11.0-1_all.deb&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)… 185.199.111.133, 185.199.110.133, 185.199.109.133, …
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 3590584 (3.4M) [application/octet-stream]
Saving to: ‘allmon3_0.11.0-1_all.deb.7’

allmon3_0.11.0-1_all.deb.7 100%[======================================================================================================>] 3.42M 6.14MB/s in 0.6s

2023-06-20 10:05:36 (6.14 MB/s) - ‘allmon3_0.11.0-1_all.deb.7’ saved [3590584/3590584]

root@asl1:/home/repeater# dpkg -i --force-depends allmon3_0.11.0-1_all.deb
Selecting previously unselected package allmon3.
(Reading database … 144703 files and directories currently installed.)
Preparing to unpack allmon3_0.11.0-1_all.deb …
Unpacking allmon3 (0.11.0-1) …
dpkg: allmon3: dependency problems, but configuring anyway as you requested:
allmon3 depends on python3-websockets; however:
Package python3-websockets is not installed.
allmon3 depends on python3-aiohttp; however:
Package python3-aiohttp is not installed.
allmon3 depends on python3-aiohttp-session; however:
Package python3-aiohttp-session is not installed.

Setting up allmon3 (0.11.0-1) …
apache2_invoke proxy_http: already enabled
apache2_invoke proxy_wstunnel: already enabled
apache2_invoke rewrite: already enabled
apache2_invoke: Enable configuration allmon3
Processing triggers for man-db (2.8.5-2) …

broken install is what I’m left with:

root@asl1:/home/repeater# apt upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
allmon3 : Depends: python3-websockets but it is not installed
Depends: python3-aiohttp but it is not installed
Depends: python3-aiohttp-session but it is not installable
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
root@asl1:/home/repeater#

I’ll have to test this more on Debian 10. I may need to create a Debian 10 specific .deb file since that platform is so old that having a common package might not be viable.

I’ll just build a server with debian 11 if it’s supported, but I didn’t see much info on if this could run ASL successfully so I picked 10…

There’s a lot of people using Debian 10 with ASL2 and it’s not a lot of work.

@N3fyi - Try the _debian10.deb file from Release Allmon3 0.11.1 · AllStarLink/Allmon3 · GitHub. I believe that will clear up your dependency issues.

Unfortunately left with the same issue… also pls note the version the instructions point to is outdated (changed 0 to 1 to fix)… thank you for working on this though

023-06-21 10:17:38 (6.42 MB/s) - ‘allmon3_0.11.1-1_debian10.deb’ saved [3590922/3590922]

root@asl1:/home/repeater# dpkg -i --force-depends allmon3_0.11.0-1_debian10.deb
dpkg: error: cannot access archive ‘allmon3_0.11.0-1_debian10.deb’: No such file or directory
root@asl1:/home/repeater# dpkg -i --force-depends allmon3_0.11.1-1_debian10.deb
Selecting previously unselected package allmon3.
(Reading database … 144729 files and directories currently installed.)
Preparing to unpack allmon3_0.11.1-1_debian10.deb …
Unpacking allmon3 (0.11.1-1) …
dpkg: allmon3: dependency problems, but configuring anyway as you requested:
allmon3 depends on python3-websockets; however:
Package python3-websockets is not installed.
allmon3 depends on python3-aiohttp; however:
Package python3-aiohttp is not installed.
allmon3 depends on python3-aiohttp-session; however:
Package python3-aiohttp-session is not installed.

Setting up allmon3 (0.11.1-1) …

Configuration file ‘/etc/allmon3/web.ini’
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** web.ini (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/allmon3/web.ini …
apache2_invoke proxy_http: already enabled
apache2_invoke proxy_wstunnel: already enabled
apache2_invoke rewrite: already enabled
apache2_invoke: Enable configuration allmon3
Processing triggers for man-db (2.8.5-2) …

after running deb10 specific package:

root@asl1:/home/repeater# apt upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
allmon3 : Depends: python3-websockets but it is not installed
Depends: python3-aiohttp but it is not installed
Depends: python3-aiohttp-session but it is not installable
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

Try this AFTER making a copy of your /etc/allmon3 files somewhere outside of /etc/allmon3 folder:

apt remove allmon3 python3-aiohttp python3-aiohttp-session python3-websockets
apt purge allmon3 python3-aiohttp python3-aiohttp-session python3-websockets

Then check for correct pip-based installation of the python modules:

$ pip3 freeze | grep -E '(aio|websock)'
aiohttp==3.8.4
aiohttp-session==2.12.0
aiosignal==1.3.1
websockets==11.0.2

You should have those 4 modules listed. If not, install the missing ones with pip3 install _____. Then attempt to reinstall the allmon3 v0.11.1 _debian10-marked package with dpkg -i.

1 Like