rustdesk
rustdesk copied to clipboard
Install on debian failed
Describe the bug you encountered:
$ sudo apt install -fy ./rustdesk.deb E: Unable to recover http://deb.debian.org/debian/pool/main/p/python-pip/python-pip-whl_20.3.4-4_all.deb 404 Not Found [IP : 2a01:e0c:1:1598::2 80] E: Could not recover http://deb.debian.org/debian/pool/main/p/python-pip/python3-pip_20.3.4-4_all.deb 404 Not Found [IP: 2a01:e0c:1:1598::2 80] E: Can't get some archives, maybe you need to run apt-get update or try with --fix-missing?
Indeed, if I go to http://deb.debian.org/debian/pool/main/p/python-pip, I can find python-pip-whl_20.3.4-4+deb11u1_all.deb python3-pip_20.3.4-4+deb11u1_all.deb
but no
python-pip-whl_20.3.4-4_all.deb python3-pip_20.3.4-4_all.deb
What did you expect to happen instead?
that installation goes through :-)
apt-get update?
Sorry, I tried it already, I forgot to mention it.
A few posts on the net mention other two potential solutions: apt clean
and apt update --fix-missing
.
I'm having same issue, can't install using the deb & there is no other option available for ubuntu or ubuntu based distros(appimage/flatpak)
appimage is so download, click and play... and universal :heart: deb is more ecological and stable (but debian based only) so if it could work, it's already great :-)
pynput dependency is causing us a lot of problems. We will rewrite pynput with Rust in next release to remove this dep.
Would it be possible to depend on python3-pynput instead of installing it in postinst via pip(3) for the Debian package?
You could have a Depends: python3-pynput | python3-pip
and only call pip install in postinst if actually necessary.
Btw, looking at postinst:
[ -d /run/systemd/system ]
is the canonical check to see if systemd is the current active init system.
I would also recommend to simply install /usr/share/rustdesk/files/systemd/rustdesk.service as /lib/systemd/system/rustdesk.service and then you just need to enable it.
There is no good reason to manually copy the file from /usr/share/rustdesk/files.
same issue
(base) user@Ubuntu:~/Downloads$ sudo dpkg -i rustdesk-1.1.9.deb
(Reading database ... 245934 files and directories currently installed.)
Preparing to unpack rustdesk-1.1.9.deb ...
Failed to stop rustdesk.service: Unit rustdesk.service not loaded.
Unpacking rustdesk (1.1.9) over (1.1.9) ...
dpkg: dependency problems prevent configuration of rustdesk:
rustdesk depends on libxdo3; however:
Package libxdo3 is not installed.
rustdesk depends on python3-pip; however:
Package python3-pip is not installed.
dpkg: error processing package rustdesk (--install):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Errors were encountered while processing:
rustdesk
apt clean
and apt update --fix-missing
seems no works.
same issue
(base) user@Ubuntu:~/Downloads$ sudo dpkg -i rustdesk-1.1.9.deb (Reading database ... 245934 files and directories currently installed.) Preparing to unpack rustdesk-1.1.9.deb ... Failed to stop rustdesk.service: Unit rustdesk.service not loaded. Unpacking rustdesk (1.1.9) over (1.1.9) ... dpkg: dependency problems prevent configuration of rustdesk: rustdesk depends on libxdo3; however: Package libxdo3 is not installed. rustdesk depends on python3-pip; however: Package python3-pip is not installed. dpkg: error processing package rustdesk (--install): dependency problems - leaving unconfigured Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for gnome-menus (3.36.0-1ubuntu1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu3) ... Processing triggers for mime-support (3.64ubuntu1) ... Errors were encountered while processing: rustdesk
apt clean
andapt update --fix-missing
seems no works.
AFAIK dpkg
doesn't install dependencies. on Ubuntu, you may want to try gdebi
(it's a standard, preinstalled, Ubuntu tool).
sudo apt install -fy ./rustdesk-xx.deb
Thanks, you are right, I use sudo apt install -fy ./rustdesk-1.1.9.deb
, then it shows
Setting up python3-pip (20.0.2-5ubuntu1.6) ...
Setting up python3.8-dev (3.8.10-0ubuntu1~20.04.4) ...
Setting up rustdesk (1.1.9) ...
Collecting pynput
Downloading pynput-1.7.6-py2.py3-none-any.whl (89 kB)
ERROR: Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 425, in _error_catcher
yield
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 507, in read
data = self._fp.read(amt) if not fp_closed else b""
File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "/usr/lib/python3.8/http/client.py", line 459, in read
n = self.readinto(b)
File "/usr/lib/python3.8/http/client.py", line 503, in readinto
n = self.fp.readinto(b)
File "/usr/lib/python3.8/socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.8/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 357, in run
resolver.resolve(requirement_set)
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
local_path = unpack_url(
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 282, in unpack_url
return unpack_http_url(
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 158, in unpack_http_url
from_path, content_type = _download_http_url(
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 303, in _download_http_url
for chunk in download.chunks:
File "/usr/lib/python3/dist-packages/pip/_internal/utils/ui.py", line 160, in iter
for x in it:
File "/usr/lib/python3/dist-packages/pip/_internal/network/utils.py", line 15, in response_chunks
for chunk in response.raw.stream(
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 564, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 529, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 430, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
dpkg: error processing package rustdesk (--configure):
installed rustdesk package post-installation script subprocess returned error exit status 2
Setting up python3-dev (3.8.2-0ubuntu2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
/sbin/ldconfig.real: /usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7 is not a symbolic link
Errors were encountered while processing:
rustdesk
E: Sub-process /usr/bin/dpkg returned an error code (1)
Retry and it works, thank you.
(base) user@Ubuntu:~/Downloads$ sudo apt install -fy ./rustdesk-1.1.9.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'rustdesk' instead of './rustdesk-1.1.9.deb'
rustdesk is already the newest version (1.1.9).
0 upgraded, 0 newly installed, 0 to remove and 90 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up rustdesk (1.1.9) ...
Collecting pynput
Downloading pynput-1.7.6-py2.py3-none-any.whl (89 kB)
|████████████████████████████████| 89 kB 72 kB/s
Collecting python-xlib>=0.17; "linux" in sys_platform
Downloading python_xlib-0.31-py2.py3-none-any.whl (179 kB)
|████████████████████████████████| 179 kB 41 kB/s
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pynput) (1.14.0)
Collecting evdev>=1.3; "linux" in sys_platform
Downloading evdev-1.5.0.tar.gz (26 kB)
Building wheels for collected packages: evdev
Building wheel for evdev (setup.py) ... done
Created wheel for evdev: filename=evdev-1.5.0-cp38-cp38-linux_x86_64.whl size=99652 sha256=6a72405be3caf6f36690e89ed2e198a5341a42eb9d9e674da2b7d89b37871339
Stored in directory: /root/.cache/pip/wheels/7f/d9/9f/e55af4e0ac894421abd4e2d86a425d9e7f9ab222761fb98078
Successfully built evdev
Installing collected packages: python-xlib, evdev, pynput
Successfully installed evdev-1.5.0 pynput-1.7.6 python-xlib-0.31
Created symlink /etc/systemd/system/multi-user.target.wants/rustdesk.service → /etc/systemd/system/rustdesk.service.
(base) user@Ubuntu:~/Downloads$ sudo apt install -fy ./rustdesk-1.1.9.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'rustdesk' instead of './rustdesk-1.1.9.deb'
rustdesk is already the newest version (1.1.9).
0 upgraded, 0 newly installed, 0 to remove and 90 not upgraded.
Retry and it works, thank you.
can be closed.
sudo apt install -fy ./rustdesk-xx.deb
worked on me, thank you very much! =)