Category "ubuntu"

command 'scala' not found after set up by coursier

I use coursier to set up the environment of Scala using command ./cs setup in Ubuntu 20.04 LTS. It was said that all the requirements were installed. However, w

Matplotlib - pyplot is overwriting the backend agg config

I need to change the default matplotlib backend from agg to TkAgg. I have added the line backend: TkAgg to my matplotlibrc file located at ~/.config/matplotlib/

tensorflow lite program crashing with kivy on buildozer

I tried running this github program https://github.com/tito/experiment-tensorflow-lite It is basically about running tensorflow lite using kivy on android. I tr

How to add directory recursively on git safe.directory?

According to this QA, we may use safe.directory argument to add directory to be marked as whitelist, due to latest CVE found on git. But it seems there is no wa

Ubuntu pyautogui .screenshot() returns blackscreen image

Im trying to verify the location of some icons on the screen using .screenshot() function of pyautogui due to it always return None when using .locateOnScreen()

When trying to run sudo apt upgrade on my terminal in zorin 16 os, I get an error code (2). How can I solve this?

Preconfiguring packages ... dpkg: unrecoverable fatal error, aborting: files list file for package 'sublime-text' is missing final newline E: Sub-process /usr/b

ModuleNotFoundError: No module named 'apt_pkg' installing deadsnakes repository

I want to install Python 3.10 on Ubuntu 18.04 (I'm currently on Python 3.8) from the deadsnakes repository with the following set of commands I found on the int

terminate called after throwing an instance 'std::__ios_failure'

In Ubuntu20.04 gcc9.4.0 `void read_txt_config(const std::string &path) { std::cout << std::endl << "Reading configuration file: "; std::ostr

"pipenv" fails with AttributeError after upgrading from ubuntu 20.04 to 22.04?

I recently upgraded my distro version from ubuntu 20.04 to ubuntu 22.04 and now pipenv command does not work. Any solutions to fix this? > pipenv --help Tra

Can't drag and drop in Ubuntu 22.04

It seems like Desktop Icons NG (DING) is not instelled on my desktop. I can't drag and drop items from or in the desktop. When I try to install it manually it

Raspberry Pi 3 - Video error: select timeout() (Ubuntu)

We are trying to run an object detection program in a Raspberry Pi 3B+ with Ubuntu Server. We are connecting the following devices to the USB ports: USB Camera

How to configure neovim with update-alternatives for ex view and vimdiff behaviours?

Of course, we could create aliases, but then we loose the Debian integration. For instance, the 3 first works, as they are just aliases, but the 3 last fails: N

Ubuntu: using docker with snap and firewall is a problem

On a ubuntu 21.10, using docker as a snap (snap install docker). With my firewall enabled, i have a problem resolving DNS: $ docker run bash ping www.google.com

Compilation Failing for xalan-c in Ubuntu

I am trying to build xalan-c (version 1.12) with icu in Ubuntu but it fails. Could anyone help me with this. Environment : Ubuntu 20.04 Steps to reproduce : Cl

nginx: [emerg] "if" directive is not allowed here in /etc/nginx/nginx.conf:64

So I am trying to block certain web browsers (not that you need to know) and everyone says to add if ($http_user_agent ~* (Chrome) ) { return 403; } I do all of

Upgrade Ubuntu: python3 install is corrupted

I'm trying to upgrade Ubuntu from version 18 to version 20 using sudo do-release-update, however it complains about my Python being corrupted: Your python3 inst

Network performance between two hosts slow with Linux bridges and VXLAN

I'm trying to debug a network performance problem between two hosts: Dell R6515 Mellanox ConnectX-5 2x25Gb SFP28 Ubuntu 20.04 Kernel 5.13.0-40-generic These hos

Python Upgrading leads to terminal... not opening

I just upgraded python in ubuntu to python 3.10 to use the match/case statements, but now, my terminal won't open. Anywhere. I tired opening it on Visual Studio

Character set "utf8mb4" error between migration from mysql 5.7 (ubuntu 16.04 LTS) to mysql 8.0 (Ubuntu 20.04 LTS)

I am having some problems I can't figure out. I have a database "DatabaseA" on mysql 5.7 (server A), which I would like to migrate to "DatabaseA" on myql 8.0 (s

Can't load custom pylint module

I am following a simple tutorial that creates a custom checker/module for Pylint. The code looks like this. bad_code.py def func(): print("Bad code") r