How to install the libwebkitgtk package on Ubuntu 20.04 LTS?

跟風遠走 提交于 2021-02-04 18:11:28

问题


So I am trying to install Solar2D (formerly known as Corona SDK) to make a mobile game. After installing the dependencies, when I run Solar 2D I get the following error:

/home/user/CoronaSimulator/CoronaSimulator: error while loading shared libraries: libwebkitgtk-3.0.so.0: cannot open shared object file: No such file or directory

I tried installing libwebkitgtk using sudo apt-get install libwebkitgtk-1.0-0 but I get the following message in Terminal:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libwebkitgtk-1.0-0 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 'libwebkitgtk-1.0-0' has no installation candidate

回答1:


Following the steps here fixed the issue for me

Open terminal and write this:

  1. sudo nano /etc/apt/sources.list

  2. Add this entry to the file and save:

    deb http://cz.archive.ubuntu.com/ubuntu bionic main universe

  3. sudo apt-get update

  4. sudo apt-get install libwebkitgtk-1.0-0 -> if you are using Vega and jdk of 64 bits

    sudo apt-get install libwebkitgtk-1.0-0:i386 -> if you are using Vega and jdk of 32 bits




回答2:


This is not a full answer, but I solved my similar problem by discovering that a prior older dependency was needed to be installed first before libwebkitgtk-3 would successfully install. Specifically, I needed libjavascriptcoregtk to be installed on the system before I could successfully attempt to install libwebkitgtk. I'm not sure if libjavascriptcoregtk was needed by libwebkitgtk or by the program I'm using, but either way, it was apparently required first.

So there may be some other dependencies you need to have satisfied first before your install can proceed.



来源:https://stackoverflow.com/questions/62301866/how-to-install-the-libwebkitgtk-package-on-ubuntu-20-04-lts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!