英文:
Installing phantomjs binary on arm64 Ubuntu
问题
有一个针对arm64架构的phantomjs软件包可用,可以参考这里和特别是这里,适用于focal (20.04LTS)
。
但我正在尝试在以下系统上安装phantomjs二进制文件:
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
# uname -i
aarch64
这是否可能?或者有没有办法在这个系统上安装phantomjs二进制文件?
英文:
It appears that a phantomjs package is available for arm64 architecture... see here and particularly here... it's for focal (20.04LTS)
.
But I'm trying to install the phantomjs binary on the following system:
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
# uname -i
aarch64
Is this possible? Or are there any way to install a phantomjs binary on this system?
答案1
得分: 2
Here is the translated code part:
看起来可以通过添加以下方式来实现:
$ sudo -s
# echo 'deb [arch=arm64] http://archive.ubuntu.com/ubuntu focal main universe' >> /etc/apt/sources.list.d/phantomjs.list
# apt update
# apt policy phantomjs
phantomjs:
Installed: (none)
Candidate: 2.1.1+dfsg-2ubuntu1
Version table:
2.1.1+dfsg-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu focal/universe arm64 Packages
您需要更改存储库/镜像以适应您的特殊架构 arch64。
另一种选择:
$ wget https://launchpad.net/ubuntu/+source/phantomjs/2.1.1+dfsg-2ubuntu1/+build/19118060/+files/phantomjs_2.1.1+dfsg-2ubuntu1_arm64.deb
$ sudo apt install ./phantomjs_2.1.1+dfsg-2ubuntu1_arm64.deb
$ sudo apt install -f # 如果有依赖关系问题
英文:
Looks possible by adding
$ sudo -s
# echo 'deb [arch=arm64] http://archive.ubuntu.com/ubuntu focal main universe' >> /etc/apt/sources.list.d/phantomjs.list
# apt update
# apt policy phantomjs
phantomjs:
Installed: (none)
Candidate: 2.1.1+dfsg-2ubuntu1
Version table:
2.1.1+dfsg-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu focal/universe arm64 Packages
You need to change repository/mirror to serve your special architecture arch64.
Another alternative
$ wget https://launchpad.net/ubuntu/+source/phantomjs/2.1.1+dfsg-2ubuntu1/+build/19118060/+files/phantomjs_2.1.1+dfsg-2ubuntu1_arm64.deb
$ sudo apt install ./phantomjs_2.1.1+dfsg-2ubuntu1_arm64.deb
$ sudo apt install -f # if dependencies are not happy
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论