Impossible to install applications on Ubuntu 22.04 Lts - qgis

I get this error when I try to install Qgis 3.22.7 on Ubuntu 22.04 LTS. But first I was delete Qgis 3.24, In order to have some plugins. And then this happen: 'Error : opening the cache (E:Malformed entry1 in list file/etc/apt/sources.list.d/archive_uri-https_qgis_org_ubuntu-ltr-jammy.list(Component), E:The list of sources could not be read.)'
enter image description here

Related

How to install glib2.64 on Ubuntu 16.04

I have Ubuntu 16.04.6 LTS and installed glib version returned by pkg-config --modversion glib-2.0 is 2.48.2.
I want to install latest glib 2.64 for my development uses.
I tried with sudo apt-get install libgtk2.0-dev but it is saying I have already latest version installed 2.48.2-0ubuntu4.6.
I would recommend upgrading to a later LTS version, or using a VM, a Docker container, or a Flatpak container.
If that's not possible, you might try building it and installing it yourself into a different prefix (configure with meson -Dprefix=/opt/glib or whatever). You could look into using a tool such as JHBuild to manage the prefix, but it might be more complicated than you need.

Issues related to GtkToplevelAccessible in Ubuntu 18.04

I am trying to run voyant-tool in Ubuntu 18.04 with openjdk version "1.8.0_242" and getting following error: GLib-GObject-WARNING **: 12:59:29.522: invalid cast from 'GtkToplevelAccessible' to 'JawToplevel'. The GUI is opening but not allowing to select any option. The same is running happily in Ubuntu 16,04 with the same Java version. Tried a couple of quick fix after Googling it but not able to solve it.
Try this -
sudo apt install openjdk-11-jdk

How snapcraft nodejs plugin handle the Node.js environment when you create an app snap for different OS?

I'm try to understand how the nodejs plugin i'm using to create snap node.js app handle the Node.js environment ? Example in this application :
parts:
webserver:
source: .
plugin: nodejs
nodejs-version: "12.13.1"
nodejs-package-manager: "yarn"
nodejs-yarn-version: "v1.21.1"
I'm defining to use Node.js v12.13.1 and Yarn v1.21.1 lunching the snapcraft commands:
snapcraft clean
snapcraft --debug
snap install my-snap-file.snap --dangerous
Now i'm able to run the command/service on my machine (amd64 Ubuntu 16.04 LTS) with Node.js v12.2.0 installed but i cant find the node.js env not in multipass instance not in another machine with installed Ubuntu Core 18, i mean i can't run command as node --version and so on and even the snap app doesn't work neither command neither service.
Other problem i've discovered digging in the Ubuntu Core 18 env installed on RaspBerry Pi3 is : When i've installed my snap with nodejs app in the folder /snap//bin i cannot run the ./node exec ! i get the error :
./node: 1: ./node: Syntax error: "(" unexpected
My questions are :
Why i get the ./node error ?
my-snap-file.snap bundle the Node.js v12.3.1 inside the mysnap ?
how i can test the node.js is working with the right version in multipass and other machine where i've installed only the snap bundling node.js ?
THks
Thanks to forum.snapcraft.io i've solved the issue ... i'm posting here to help people to solve these kind of issues too. This error is due to the snap that is NOT build on the actual target architecture you want to run it on. Make sure you build eg. armhf (raspberry pi3) actually on an armhf architecture device.
architectures:
- build-on: amd64
run-on: [amd64, armhf]
here you tell snapcraft that building on amd64 produces binary snaps that can run on amd64 and armhf … which is indeed not true (since building on amd64 will pull in only amd64 binaries). i’d drop that statement completely and make sure to build the armhf version on an armhf device (or on build.snapcraft.io). (Credits Ogra)
Read the Link about architectures in snapcraft.yaml
https://forum.snapcraft.io/t/architectures/4972

Install swift 4 on bash on Ubuntu on Windows 10

I try to install Swift 4 on bash on Ubuntu on Windows 10
My version of Ubuntu:
me#DESKTOP:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
I did apt-get upgrade and apt-get update
I follow Linux steps here: to install Swift 4
Eventually I end up with the error:
me#DESKTOP:~$ swift
/home/me/swift4/swift-4.0.2-RELEASE-ubuntu16.04/usr/bin/lldb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
I have python2 installed:
me#DESKTOP:~$ python2 --version
Python 2.7.12
I wonder how to make it works.
Installing libpython2.7 successfully resolves the error
$ apt-get install libpython2.7
However it still failed to launch the swift repl due to kernel permissions issue.
Using docker image (or Virtual Box like OP) is a better way to go.
reference
https://bugs.swift.org/browse/SR-2743

Install robo3t on Ubuntu 16.04 LTS issue

I've tried to install robo3t in Ubuntu 16.04 LTS. When I run command ./robo3t, I received an error:
./robo3t: error while loading shared libraries: /home/robo3t-1.1.1-linux-x86_64-c93c6b0/bin/../lib/libQt5Network.so.5: file too short
Please help me resolve this issue! Thanks all
vist https://askubuntu.com/questions/386281/error-while-loading-shared-libraries-libglu-so-1
below command in my aws ubuntu 16.04 instance solved for me
sudo apt-get install libglu1