How To Install Git On Ubuntu 22.04 LTS [2023]

How To Install Git On Ubuntu 22.04 LTS

In this tutorial post, we will show you the ways to install Git on Ubuntu 22.04 LTS. Git is a free and open-source distributed version control system.

How To Install Git On Ubuntu 22.04 LTS [2023]

Before starting the installation of Git on Ubuntu, we need to make sure that all packages installed on Ubuntu 22.04 are up to date. Run the following command to see whether the packages are up to date or not.

 apt update -y

In most cases, Ubuntu 22.04 LTS should have the git package installed by default. Run the following command to check if you have git installed or not. If you already have git installed on your system, this command will display the version of git you currently have installed on your system.

 git --version
Output
git version 2.34.1

If the git package is not installed, run the following commands in your Ubuntu 22.04 LTS:

apt update
apt install git

Enter ‘Y’ to continue the installation.

To verify whether the installation was successful or not, you can run the git –version command again.

Meanwhile, if you want to install a different version of Git then run the following command to check which git version is available to install.

 apt-cache policy git

How To Install git from Source On Ubuntu 22.04 LTS

If you want to Install the latest or different version of git then you can do it by installing git from the source. Run the following commands one by one to update the packages and install all the dependencies needed.

 apt update
 apt install libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext cmake gcc

If you are confused about the version, you can visit the website https://mirrors.edge.kernel.org/pub/software/scm/git/ and you can choose which git version you want to install.  Now, after finalizing the version, run the following command to download Git.

 wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz

Now unpack the compressed tarball file:

 tar -xzf git-2.9.5.tar.gz

Next move to the git directory:

 cd git-2.9.5

Now, it’s time to install git on Ubuntu.

 make prefix=/usr/local all
 make prefix=/usr/local install
 exec bash

Run the following command to check if the installation was completed or not

 git --version

How To Install Python On Ubuntu 22.04 LTS

How to Install Python on Ubuntu 22.04 LTS

In this tutorial, we will show you the easy way to install Python on Ubuntu 22.04 LTS.

How To Install Python On Ubuntu 22.04 LTS

Run the following command to check whether python is installed on Ubuntu or not:

python

Run the following to check if Python3 is installed as Python3 comes by default with Ubuntu 22.04. To check the installed version of “python3”, run the following command:

python3

Install python-is-python3 On Ubuntu 22.04 LTS

Run the following command to install “python-is-python3” package on Ubuntu 22.04 LTS. This package redirects Python to Python3 by creating a symbolic link of Python3 for Python.

sudo apt install python-is-python3

Run the following command to verify the availability of the default Python3:

python3 --version

How to Uninstall Python From Ubuntu 22.04 LTS?

sudo apt remove python3

How to Install a Different Version of Python From Source On Ubuntu 22.04 LTS?

First, run the following command to install the required dependencies on Ubuntu.

sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev libbz2-dev

Now, download the required Python package with the following command:

wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tgz

Now, run the following command to extract the Python Source Files:

tar -xvf Python-3.11.1.tgz

After extracting Python, run the following command to configure Python:

cd Python-3.11.1
./configure--enable-optimizations

Compile the source file:

make

Now, it’s time to install Python with the following command:

sudo make altinstall

After all this steps, run the following command to check the version of Python:

python3.11 --version

How To Remove Software In Ubuntu 22.04 LTS [ All Ubuntu Version]

How To Remove Software In Ubuntu 22.04 LTS [ All Ubuntu Version]

This post describes the steps to remove or uninstall software packages From Ubuntu. There are multiple ways to remove the software from Ubuntu 22.04 LTS and another version of Ubuntu. You can remove some of the software from Ubuntu via GUI and some of the software via the command line interface (CLI).

How To Remove Software In Ubuntu

GUI method:

You can use Ubuntu Software to remove software in Ubuntu.

  • First, you need to click the Ubuntu Software icon in the Dock or search for Software in the Activities search bar.
  • After launching Ubuntu Software, search for an application that you want to remove from Ubuntu. In Ubuntu Software, you will see the three tabes, Explore, Installed, and Updates tab. The installed tab includes all installed software and the Updates tab shows a list of software that has updates available.
  • In the Ubuntu Software app, click the Installed button at the top and Find the application that you want to remove from Ubuntu.
  • Click Uninstall or Click the delete button to remove the software from Ubuntu.
  • You might need to provide the password for the confirmation.

Via  command line console

Run the commands below to list all installed Debian packages.

sudo apt list --installed

Run the following command with the package name to remove the software from Ubuntu.

sudo apt remove package_name

If you want to remove multiple software or package at once then run the following command:

sudo apt remove package-name-1 package-name-2

Run the following command to completely remove packages and their configuration settings files:

sudo apt purge package-name

For the Snap package, run the following command to list out the installed software or package.

snap list

Run the following command to remove Snap packages using the commands below:

sudo snap remove package-name

 

How To Install VirtualBox 7 On Ubuntu 22.04 LTS [2023]

How To Install VirtualBox 7 On Ubuntu 22.04 LTS [2023]

VirtualBox is a popular system virtualization software. It is powerful x86 and AMD64/Intel64 virtualization cross-platform virtual software that is loaded with plenty of features. It is available in both free and professional editions.

VirtualBox runs smoothly on Linux, Windows, macOS, and Solaris-based operating systems. At the time of this article writing, Virtual Box 7 is the latest version of the software and has tons of new improvements over VirtualBox 6.  It comes with a lot of new features and bug fixes.  Some of the features that you can find on Virtual Box 7 support virtual TPM 1.2 and 2.0 devices, and added support for EFI secure boot for the virtual machines. VirtualBox 7 now uses Vorbis as the default audio format instead of Opus (previously used) for WebM containers while recording the screen of the VM.

Today in this article, we are going to show you how to install VirtualBox 7 on Ubuntu 22.04 LTS.

How To Install VirtualBox 7 On Ubuntu 22.04 LTS [2023]

First, you need to download the VirtualBox 7 on Ubuntu 22.04 LTS from the official website of VirtualBox. You can download it from this link. You need to download the VirtualBox 7 for Ubuntu from the Linux section. You need to download the VirtualBox 7 DEB package file. Now, run the update command to update your Ubuntu.

sudo apt update

We assume that your downloaded file is in the download directory.

cd ~/Downloads

Now, run the following command to install VirtualBox 7 on Ubuntu 22.04 LTS. Press Y to confirm the installation and wait for a while.

sudo apt install .virtualbox-7.0_7.0.4-154605~Ubuntu~jammy_amd64.deb

After a while, your installation will be completed. Now you need to search VirtualBox in the application menu of Ubuntu 22.04 LTS to access VirtualBox 7.
Summary: Let us know if you find any error in this article and want us to update it. Let us know your suggestion.

How To Install WhatsApp On Ubuntu 22.04 LTS

How To Install WhatsApp On Ubuntu 22.04 LTS

In this tutorial post, we will show you a method to install WhatsApp on Ubuntu 22.04 LTS. WhatsApp is a famous chat messaging app currently owned by Facebook (Meta). We will be installing a third-party “WhatsApp for Linux” app that you can use to access WhatsApp. WhatsApp for Linux is an unofficial WhatsApp desktop application.

How To Install WhatsApp On Ubuntu 22.04 LTS

We will install WhatsApp For Linux on Ubuntu 22.04 LTS via snaps. If you’re running Ubuntu 16.04 LTS (Xenial Xerus) or later, including Ubuntu 22.04 LTS, you don’t need to do anything. Snap is already installed in the latest version of Ubuntu.
Alternatively, snapd can be installed from the command line:

sudo apt update
sudo apt install snapd

Now, it’s time to install WhatsApp on Ubuntu 22.04 LTS.

Install WhatsApp for Linux

To install WhatsApp for Linux, simply use the following command in your Ubuntu terminal.

sudo snap install whatsapp-for-linux

 

How To Fix “package dependencies cannot be resolved” Error In Ubuntu 22.04 LTS

How To Fix “package dependencies cannot be resolved” Error In Ubuntu 22.04 LTS

If you are having issues like “package dependencies cannot be resolved” while installing some packages in Ubuntu 22.04 LTS then this Ubuntu 22.04 LTS tutorial post is for you. We have the solution for the “package dependencies cannot be resolved” error In Ubuntu 22.04 LTS.

You might see the error message something like this below:

This error could be caused by required additional software packages which are missing or not installable. 
Furthermore, there could be a conflict between software packages that are not allowed to be installed 
at the same time.

How To Fix “package dependencies cannot be resolved” Error In Ubuntu 22.04 LTS

A dependency is a set of packages that a program needs to work correctly in Linux. You need to have a proper set of required dependencies so that your apps will run without any issues on Ubuntu 22.04 LTS.

You need to perform the following task to resolve this error in Ubuntu 22.04 LTS.

  • Enable all repositories in Ubuntu 22.04 LTS.
  • Update the software in Ubuntu 22.04 LTS.
  • Upgrade the software to Ubuntu 22.04 LTS.
  • Clean the package dependencies in Ubuntu 22.04 LTS.
  • Clean cached packages in Ubuntu 22.04 LTS.
  • Remove “on-hold” or “held” packages from Ubuntu 22.04 LTS.
  • Use the -f flag with the install subcommand.

First, run the following commands:

sudo apt update
sudo apt upgrade
sudo apt -f install

Or you can run the following commands in your Ubuntu 22.04 terminal.

Command to update your package list
sudo apt-get update

Command to clean up any partial packages
sudo apt-get autoclean

Command to clean up the apt-cache
sudo apt-get clean

Command to clean up any unneeded dependencies
sudo apt-get autoremove

Run the following command to remove the broken package. Replace the package_name with the real name of the package that you are having issue while installing.

sudo dpkg --remove -force --force-remove-reinstreq package_name

Install FFmpeg On Ubuntu 22.04 LTS

Install FFmpeg On Ubuntu 22.04 LTS

What Is FFmpeg?
FFmpeg is a cross-platform solution to record, convert and stream audio and video. It is an open-source tool that is used to decode, encode, transcode, mux, demux, stream, filter, and play multimedia files.

In this tutorial, we will show you the easy way to install FFmpeg on Ubuntu 22.04 LTS.

Install FFmpeg On Ubuntu 22.04 LTS

First, run the following commands to upgrade and update your Ubuntu 22.04 LTS:

sudo apt update &&sudo apt upgrade

Now, it’s time to install FFmpeg on Ubuntu 22.04 LTS. FFmpeg packages are available on Ubuntu repositories by default. You can easily install it with the apt command.

sudo apt install ffmpeg

To see the version of FFmpeg installed in your system, run the following command.

ffmpeg -version

Run the following command to know the available encoders or decoders:

ffmpeg -encoders
ffmpeg -decoders

How To Convert Files Using FFmpeg On Ubuntu 22.04 LTS

Run the following command to Convert a video file from mp4 to WebM:

ffmpeg -i file1name.mp4 output-file.webm

Run the following command to force the frame rate of the output file to 24 fps:

ffmpeg -i inputfilename.avi -r 24 output.avi

Run the following command to Convert an audio file from mp3 to ogg:

ffmpeg -i itsubuntu.mp3 itsubuntu.ogg

Run the following command to set the video bit rate of the output file to 64 kbit/s:

ffmpeg -i inputfilename.avi -b:v 64k -bufsize 64k output.avi

 

 

Just in case you want to remove FFmpeg from your Ubuntu, then run the following command:

sudo apt remove ffmpeg

How to Enable & Configure Hot-Corners in Ubuntu 22.04 LTS

This simple tutorial shows how to enable and customize hot-corner actions in Ubuntu 22.04 LTS with default GNOME desktop.

Your system can do a custom action, when moving mouse corner to hit one of the 4 (top-left, top-right, bottom-left, and bottom-right) screen edges. That’s hot-corners function.

By default, the top-left hot-corner is enabled for triggering the overview screen. You can however enable all the 4 corners and specify custom actions via an extension in all GNOME based Linux.

Step 1: Install Extension Manager

For Ubuntu 22.04 & 22.10, it’s easy to install and manager extensions via “Extension Manager” tool. First, search for and install the tool from Ubuntu Software app.

Install Extension Manager in Ubuntu 22.04

After that, click on top-left ‘Activities’ button to open overview screen. Then search for and open the ‘Extension Manager’ app.

Step 2: Install Custom Hot Corners extension

Once ‘Extension Manager’ opens, navigate to ‘Browse’ tab. Then, search for and install ‘Custom Hot Corners – Extended‘ extension.

Install Hot Corners Extension via ‘Extension Manager’

After installed it, switch back ‘Installed’ tab and click on the gear button to configure hot-corners.

Open Hot Corners settings

Under ‘Monitor‘ tab, choose one of the 4 corners via first row icons. Then select an action to do via the drop-down menu right below.

As you see, it also support custom actions for “Ctrl + mouse hit hot-corner”, “mouse click or scroll on corner”, “Ctrl + click or scroll on corner”.

And you can specify following actions to do with the extension: Show Activities overview, show app grid, run custom command, launch screenshot UI, hide all app windows (current or all monitors), switch workspaces, navigate windows, toggle screen brightness, nightlight, video playback control and more.

The extension is a bit overloaded in my opinion as it also support adding keyboard shortcuts and custom menu for all supported actions, though you may just skip to leave them all disabled.

Linux Kernel 6.0 Released, Multiple Ways To Upgrade Linux Kernel In Ubuntu 22.04 LTS

Multiple Ways To Upgrade Linux Kernel In Ubuntu 22.04 LTS

After being in development for almost two months, Linux kernel 6.0, Linus Torvalds announced the release and general availability of Linux 6.0 as a major kernel series.

He says:

So, as is hopefully clear to everybody, the major version number
change is more about me running out of fingers and toes than it is
about any big fundamental changes.

But of course there's a lot of various changes in 6.0 - we've got over
15k non-merge commits in there in total, after all, and as such 6.0 is
one of the bigger releases at least in numbers of commits in a while.

The shortlog of changes below is only the last week since 6.0-rc7. A
little bit of everything, although the diffstat is dominated by drm
(mostly amd new chip support) and networking drivers.

And this obviously means that tomorrow I'll open the merge window for
6.1. Which - unlike 6.0 - has a number of fairly core new things lined
up. But for now, please do give this most recent kernel version a
whirl,

              Linus

Meanwhile, In this post, we will show you the Multiple Ways To Upgrade Linux Kernel In Ubuntu 22.04 LTS

How To Upgrade Linux Kernel In Ubuntu 22.04 LTS

Note: Please make sure that you have a backup of your important file before upgrading the Linux kernel on Ubuntu 22.04 LTS.

First Method:

In this step, we will use UkTools to upgrade Linux Kernel in Ubuntu 22.04 LTS. Run the following  command to download and install UkTools in Ubuntu:

git clone https://github.com/usbkey9/uktools && cd uktools
make

Run the following command to upgrade Kernel:

do-kernel-upgrade

Run the following command to remove old and unused kernels in Ubuntu :

do-kernel-purge

Second Method:

In this method, we will use the bash script to update and upgrade the Linux kernel. We will use Linux Kernel Utilities which is a set of BASH shell scripts that can be used to update Linux kernels. There are 3 scripts in this shell script:

  • compile_linux_kernel.sh
  • update_ubuntu_kernel.sh
  • remove_old_kernels.sh

Compile_linux_kernel.sh:-  To compile and install the latest Linux Kernel from the source.

update_ubuntu_kernel.sh:- To downloads and install/update the already compiled Ubuntu Kernel.

remove_old_kernel.sh:- To removes all inactive and unused Linux Kernels from the system.

Run the following commands to install Linux Kernel utilities in Ubuntu 22.04 LTS:

git clone https://github.com/mtompkins/linux-kernel-utilities.git
cd linux-kernel-utilities/
chmod 750 *.sh
git pull

Now, Run the following command to list the available Kernel. Follow the on-screen instruction and select the latest kernel.

./compile_linux_kernel.sh

Run the following command to compile and install the latest available Linux Kernel:

./compile_linux_kernel.sh --latest

Run the following command to install precompiled Kernel:

./update_ubuntu_kernel.sh

To compile a kernel from a local archive file

./compile_linux_kernel.sh --archive=linux-x.x.x.tar.xz

It will list all available pre-compiled Linux Kernels from Kernel.ubuntu.com. You can see the number and you need to enter the desired number to install the selected Kernel.

Now restart your Ubuntu system.

Meanwhile, To download and install the latest precompiled Ubuntu kernel from kernel.ubuntu.com, Run the following command:

./update_ubuntu_kernel.sh --latest

Now, Run the following command to remove old kernels.

./remove_old_kernels.sh

Third Method:

We will use ubuntu-mainline-kernel.sh bash script utility tool to upgrade Linux kernel in Ubuntu. Run the following command to download and install the utility tool in Ubuntu 22.04 LTS.

wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
chmod +x ubuntu-mainline-kernel.sh
sudo mv ubuntu-mainline-kernel.sh /usr/local/bin/

Now, run the following command to install the latest version of Linux Kernel in Ubuntu and Linux mint.

ubuntu-mainline-kernel.sh -i

How To Fix the “No Installation Candidate” Error in Ubuntu 22.04 LTS

How To Fix the “No Installation Candidate” Error in Ubuntu

You will encounter this error when you are about to install something valid on Ubuntu. In this tutorial post, we will show you the reason behind it, and also we will provide you with the solution for the “No Installation Candidate” error in Ubuntu.

How To Fix the “No Installation Candidate” Error in Ubuntu 22.04 LTS

The reason for this error:

  • If you mistype the name of a package
  • If you try to install an application that is not in the default repository.

Try to run the update and upgrade your system to get the latest versions of the packages.

sudo apt update && sudo apt upgrade

Now, you can easily install any package that is available in your default repository.

Add a Third-Party Repository To Fix the “No Installation Candidate” Error.

In this step, you need to install the required third-party repository of the software or apps that you are trying to install on Ubuntu. The packages might not be available on the default respository.

After adding the third party repo, you can run the following command to install the specific package.
sudo add-apt-repository REPOSITORY_PPA_Name