Ubuntu24.04安装libwebkit2gtk-4.0
apt源的更新
Ubuntu24.04已经移除了libwebkit2gtk-4.0的库,因此直接采用默认源安装会搜索不到,因此需要再apt源里面增加一些内容。首先打开源配置文件
使用文本编辑器vim或者gedit都可以,这里使用gedit
sudo gedit /etc/apt/sources.list.d/ubuntu.sources
打开之后,在里面新增以下内容
Types: deb
URIs: http://br.archive.ubuntu.com/ubuntu/
Suites: jammy noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring