scrcpy: can not install with sudo apt install scrcpy

The documentation says that I can install scrcpy as a package like sudo apt install scrcpy

jay@leny:~$ sudo apt install scrcpy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package scrcpy

System:

Operating System: Kubuntu 19.10
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4
Kernel Version: 5.3.0-46-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-6500U CPU @ 2.50GHz
Memory: 15.5 GiB of RAM

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21

Most upvoted comments

Could u please update the documentation?

It’s already up to date, it says that you can apt install since Ubuntu 20.04.

Is there an alternative besides snap?

Update your distrib, or build from sources.

Anyway, you should never run scrcpy as root! why?

  1. you should never give root access to a program which don’t need it.
  2. it could cause other permissions issues.

adb: error: failed to get feature set: no devices/emulators found

Your first problem is making your device detected by adb devices (independently of scrcpy).

Just to be sure, I guess you correctly enabled USB debugging on the device?

Where does your adb come from (the distro or manually installed)? If your device is not detected, it’s probably due to missing udev rules, but in 20.04 with the adb packet it should work out-of-the-box I guess.

It’s in universe (scrcpy). You need to enable universe packages in Ubuntu.

I am using Ubuntu 20.04 and can’t install.

Why? What’s the problem and error message?