i tried both command , but none of them worked :-
Summary
milesdredd@milesdredd-hp-notebook:~$ sudo apt-get update && sudo apt-get dist-upgrade && apt-get -f install
[sudo] password for milesdredd:
Hit:1 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://packages.microsoft.com/repos/code stable InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 https://packages.zorinos.com/stable focal InRelease
Hit:6 http://ppa.launchpad.net/libretro/stable/ubuntu focal InRelease
Hit:7 https://packages.zorinos.com/patches focal InRelease
Hit:8 http://ppa.launchpad.net/zorinos/apps/ubuntu focal InRelease
Hit:9 https://packages.zorinos.com/apps focal InRelease
Hit:10 https://packages.zorinos.com/drivers focal InRelease
Hit:11 http://ppa.launchpad.net/zorinos/drivers/ubuntu focal InRelease
Hit:12 http://ppa.launchpad.net/zorinos/patches/ubuntu focal InRelease
Hit:13 http://ppa.launchpad.net/zorinos/stable/ubuntu focal InRelease
Get:14 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Ign:15 http://repo.vivaldi.com/stable/deb stable InRelease
Hit:16 http://repo.vivaldi.com/stable/deb stable Release
Fetched 114 kB in 9s (12.6 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
code-insiders
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 77.0 MB of archives.
After this operation, 23.6 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://packages.microsoft.com/repos/code stable/main amd64 code-insiders amd64 1.59.0-1626067901 [77.0 MB]
20% [1 code-insiders 19.0 MB/77.0 MB 25%] 1,020 kB/s 56s^Fetched 77.0 MB in 60s (1,282 kB/s)
(Reading database ... 311878 files and directories currently installed.)
Preparing to unpack .../code-insiders_1.59.0-1626067901_amd64.deb ...
Unpacking code-insiders (1.59.0-1626067901) over (1.59.0-1625810794) ...
Setting up code-insiders (1.59.0-1626067901) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for shared-mime-info (1.15-1) ...
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
Summary
milesdredd@milesdredd-hp-notebook:~$ sudo apt install -y git
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not installable
E: Unable to correct problems, you have held broken packages.
Summary
milesdredd@milesdredd-hp-notebook:~$ sudo apt install -f perl-base=5.22.1-9
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '5.22.1-9' for 'perl-base' was not found









