我正在尝试安装火炬对于image
lua 包。当我运行bash install-deps
命令时,出现此错误:
...
E: The repository 'https://ppa.launchpadcontent.net/rock-core/qt4/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Some portion of the update is failed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Note, selecting 'libncurses-dev' instead of 'ncurses-dev'
Package ipython 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: Unable to locate package libqt4-dev
E: Package 'ipython' has no installation candidate
我使用这个答案添加了 Qt4 库 PPA问题,但是当我运行以下命令时:
sudo apt update
sudo apt install qt4-dev-tools libqt4-dev libqtcore4 libqtgui4
我收到此错误:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libqtcore4 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
However the following packages replace it:
libqt5core5a:i386 libqt5core5a qtchooser:i386 qtchooser
Package libqtgui4 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: Unable to locate package qt4-dev-tools
E: Unable to locate package libqt4-dev
E: Package 'libqtcore4' has no installation candidate
E: Package 'libqtgui4' has no installation candidate
还提到我ipython
按照这个答案安装问题,但我仍然收到错误。
答案1
我认为这些错误与您是否安装了“ipython”无关。我遇到了同样的错误(“无法找到软件包 libqt4-dev“) 在安装“libqt4-dev”时(我想使用 qt5,我的环境是Ubuntu22.04我也遇到了同样的问题)。我找到的解决方案是添加一个新的“add-apt-repository”:
$sudo add-apt-repository ppa:ubuntuhandbook1/ppa
$sudo apt-get update
然后运行命令:
$sudo apt-get install qt4-dev-tools libqt4-dev libqtcore4 libqtgui4
我希望这对你有帮助。