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

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

Installing phantomjs binary on arm64 Ubuntu

问题

有一个针对arm64架构的phantomjs软件包可用,可以参考这里和特别是这里,适用于focal (20.04LTS)

但我正在尝试在以下系统上安装phantomjs二进制文件:

  1. # lsb_release -a
  2. No LSB modules are available.
  3. Distributor ID: Ubuntu
  4. Description: Ubuntu 22.04.2 LTS
  5. Release: 22.04
  6. Codename: jammy
  7. # uname -i
  8. 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:

  1. # lsb_release -a
  2. No LSB modules are available.
  3. Distributor ID: Ubuntu
  4. Description: Ubuntu 22.04.2 LTS
  5. Release: 22.04
  6. Codename: jammy
  7. # uname -i
  8. 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:

看起来可以通过添加以下方式来实现:

  1. $ sudo -s
  2. # echo 'deb [arch=arm64] http://archive.ubuntu.com/ubuntu focal main universe' >> /etc/apt/sources.list.d/phantomjs.list
  3. # apt update
  4. # apt policy phantomjs
  5. phantomjs:
  6. Installed: (none)
  7. Candidate: 2.1.1+dfsg-2ubuntu1
  8. Version table:
  9. 2.1.1+dfsg-2ubuntu1 500
  10. 500 http://archive.ubuntu.com/ubuntu focal/universe arm64 Packages

您需要更改存储库/镜像以适应您的特殊架构 arch64。


另一种选择:

  1. $ wget https://launchpad.net/ubuntu/+source/phantomjs/2.1.1+dfsg-2ubuntu1/+build/19118060/+files/phantomjs_2.1.1+dfsg-2ubuntu1_arm64.deb
  2. $ sudo apt install ./phantomjs_2.1.1+dfsg-2ubuntu1_arm64.deb
  3. $ sudo apt install -f # 如果有依赖关系问题
英文:

Looks possible by adding

  1. $ sudo -s
  2. # echo 'deb [arch=arm64] http://archive.ubuntu.com/ubuntu focal main universe' >> /etc/apt/sources.list.d/phantomjs.list
  3. # apt update
  4. # apt policy phantomjs
  5. phantomjs:
  6. Installed: (none)
  7. Candidate: 2.1.1+dfsg-2ubuntu1
  8. Version table:
  9. 2.1.1+dfsg-2ubuntu1 500
  10. 500 http://archive.ubuntu.com/ubuntu focal/universe arm64 Packages

You need to change repository/mirror to serve your special architecture arch64.


Another alternative

  1. $ wget https://launchpad.net/ubuntu/+source/phantomjs/2.1.1+dfsg-2ubuntu1/+build/19118060/+files/phantomjs_2.1.1+dfsg-2ubuntu1_arm64.deb
  2. $ sudo apt install ./phantomjs_2.1.1+dfsg-2ubuntu1_arm64.deb
  3. $ 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:

确定