Ubuntu 22 Unable to Install Python3 pip3 due to dpkg: error processing archive

I tried to install pip3 on my Ubuntu version 22 but it produced error dpkg: error processing archive.

How To Solve dpkg : error processing when installing python3 pip3

1. Install python3 pip3 command

Error it produces of unmet dependencies

ubuntu 22 unmet dependencies when installing pip3
ubuntu 22 unmet dependencies when installing pip3

2. Command to fix the broken dependencies

Error of dpkg: error processing archive <filename>

ubuntu 22 error when try to solve unmet dependencies when install pip3
ubuntu 22 error when try to solve unmet dependencies when install pip3

3. Force overwrite that caused the error processing

In my case its is my nodejs

The output after did the command

ubuntu 22 dpkg after force overwrite
ubuntu 22 dpkg after force overwrite

4. Install again the pip

Now it is successfully installed.

ubuntu 22 successfully installed pip3 after force dpkg part 1
ubuntu 22 successfully installed pip3 after force dpkg part 1
ubuntu 22 successfully installed pip3 after force dpkg part 2
ubuntu 22 successfully installed pip3 after force dpkg part 2

5. Get your pip3 version

ubuntu 22 pip3 version
ubuntu 22 pip3 version

How To Install Nodejs v18 on Ubuntu 22

I installed Ubuntu 22 on my new PC. When I installed nodejs, the default version installed was v12. So I want to upgrade it to version 18.

I tried few methods but only using nvm it was successful.

Different Methods To Install NodeJS on Ubuntu 22

  1. Installing Nodejs with APT from default repositories- fail
  2. Installing Nodejs with APT using a NodeSource PPA – fail
  3. Installing Nodejs using Node Version Manager – success

Refer this tutorial from DigitalOcean

My Steps Installing Nodejs using Node Version Manager (nvm)

1) Firstly list the node version you want to install

ubuntu 22 - choose node version
ubuntu 22 – choose node version

2) Secondly, choose the version you want to install. I chose LTS v18 @ lts/hydrogen

ubuntu 22 - install node v 18
ubuntu 22 – install node v 18

3) Check if you have installed the right version.

ubuntu 22 - successfully installed node v18
ubuntu 22 – successfully installed node v18

If You Got Checksum Error

At first, I had the checksum error, when I checked on the internet it was due to curl installed using SNAP (which I did). I have to re-install my curl using APT and remove the snap path from the path environment.

ubuntu 22 - install node v 18
ubuntu 22 – install node v 18

Curl still point to snap/bin.

ubuntu 22 - curl still point to snap
ubuntu 22 – curl still point to snap

ubuntu 22 - installing node problem due to curl installed by snap
ubuntu 22 – installing node problem due to curl installed by snap

Remove the snap/bin from the environment. Edit it using nano

ubuntu 22 - edit the path at environment
ubuntu 22 – edit the path at environment

Ubuntu 22.04 Apache – 403 Forbidden You don’t have permission to access this resource

I tried to access my internal website using http://localhost but I got error of:

I am able to access the website via 127.0.0.1

I have checked my files access and all is good.

Solution

ubuntu 22 apache2 localhost able to access now
ubuntu 22 apache2 localhost able to access now

1. Edit your default.conf add localhost as ServerAlias (sudo nano /etc/apache2/sites-enabled/default.conf)

2. Edit your hosts as below (sudo nano /etc/hosts/)

3. Restart Your Apache2 server

 

MySQL Upload / Import Database via Command Line using Ubuntu 22

I imported / uploaded SQL database with file size of 210MB and 347MB via Ubuntu v22 terminal command line.

My MySQL version is: 8.0.32

mysql sql file size of 210mb
mysql sql file size of 210mb
mysql sql file size of 347mb
mysql sql file size of 347mb

The Command Line

How Long it took to Import The Data?

Below is the time it took to upload the data.

210MB: 20s
347MB: 1m30s

 

Stream Movies from Ubuntu Shared Folder to Samsung Smart TV

Set Up Sharing Folder Service at Ubuntu

Install minidlna service

Configure /etc/minidlna.conf (sets WHICH FOLDERS to use AND who is using the service)

edit /etc/minidlna.conf :

Notes: for vim, press insert to edit the file, then press escape “:x” to save changes.

Configure the path & friendly name

minidlna conf - media path
minidlna conf – media path

minidlna conf - friendly name
minidlna conf – friendly name

Configure user:

minidlna - conf - user root
minidlna – conf – user root

Save the changes

Configure /etc/default/minidlna (sets WHO the service runs as)

Configure user as root

minidlna - conf - user root
minidlna – conf – user root

Save the changes

Restart minidlna service

Access the Folder at Samsung Smart TV

Go to input source, you will see friendly name that has been set.

samsung smart tv - source view ubuntu nas
samsung smart tv – source view ubuntu nas
samsung smart tv - folders inside the ubuntu nas
samsung smart tv – folders inside the ubuntu nas

Video on Accessing the Ubuntu NAS

References:

http://mylinuxtechcorner.blogspot.com/2013/09/smart-tv-streaming-from-ubuntu-nas.html
Running minidlna on Ubuntu

Install Signal Messaging Desktop on Ubuntu

Every knows that WhatsApp changes its End Users License Agreement (EULA) . Lots of people are worried about data privacy.

That is why I’m migrating to Signal Messaging. I installed Signal Desktop on Ubuntu but I faced small hiccup which I shared how to solve it.

Download Signal for desktop

Download it here: https://signal.org/en/download/#

and follow the givenĀ  instructions.

Can get the signing key from the error messageInstall Signal official public software signing key

signal desktop install ubuntu - signing key
signal desktop install ubuntu – signing key

Add Signal repository to your list of repositories

Update Ubuntu package database and install signal

signal desktop installation ubuntu - error during installation
signal desktop installation ubuntu – error during installation

If Installation error like me, add the signing key

Can get the signing key from the error message

signal desktop install on ubuntu getting the signing key
signal desktop install on ubuntu getting the signing key

Then run the command

signal desktop installation ubuntu - add key
signal desktop installation ubuntu – add key

Reinstall again after adding the signing key

signal desktop installation ubuntu successful
signal desktop installation ubuntu successful

 

Reference:

Fix apt-get update “the following signatures couldn’t be verified because the public key is not available”