Category "ubuntu"

echoing PROMPT_COMMAND from terminal and from bash script

while trying to write a bash script i encountered a strange issue when i try to execute it. i want to echo the $PROMPT_COMMAND variable thus, i have the followi

getting error when trying to install python3-venv in vagrant ubuntu bionic64

I am trying to install virtual environment in ubuntu (apt-get install python3-venv) syntax correct can you resolve my problem why i am getting below error E: C

How can I use Php7.4 in my Apache in Ubuntu 22?

Recently I upgrade my Ubuntu from 20 to 22. I was using Php7.4 in Ubuntu 20 with the Apache server. After upgrading to Ubuntu 22, the Php Upgrades to 8.1 automa

OCI runtime create failed: container_linux.go:380

I am trying to start a container from the given image below but I am getting the following error: ERROR: for code_challenge_api Cannot start service api: OCI

Prometheus Node_Exporter missing power stats

I am trying to get the power supply stats off a containerized node exporter(Run on docker with wordpress,SQL,prometheus, cadvisor & grafana). On windows(Lap

How to install GitLab Runner on Ubuntu Server?

I have downloaded the package for the system: curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_${arch}.deb" And then instal

How to show cursor during application debug c OpenGl on ubuntu in Visual Studio Code

window = glfwCreateWindow(winW, winH, "TestApp", NULL, NULL); After calling this command, the mouse cursor disappears. When a breakpoint is triggered after thi

Why is Elasticsearch 8x. starting interactively but not as a service Ubuntu 20.04?

The tip for fixing this issue on Ubuntu 16.04 does not seem to work. Here's a link to one of the areas of various tips: https://discuss.elastic.co/t/cant-start-

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