在 arm64 架构的 Ubuntu 上安装 PhantomJS 二进制文件

huangapple go评论59阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年4月13日 22:41:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76006777.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定