sudo apt install gksu -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gksu 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 'gksu' has no installation candidate
答案1
我假设您使用的是 Ubuntu 18.04 及更高版本。
该gksu
计划是已弃用适用于 Ubuntu 18.04 及更高版本。另一种方法是pkexec
,预装了 Ubuntu 18.04+。
您可以在以下位置找到更多选项Pekka Lehtikoski 的回答在我需要一个 18.04 版的 gksu。