PDA

View Full Version : [SOLVED] Can not install git.



saladavid293
March 6th, 2020, 02:07 AM
I am trying to install git so I can get kali linux tools. here is the output

root@ubuntu:/home/dbb3881# apt-get install 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.

I haven't installed anything yet expect what you need.

Bashing-om
March 6th, 2020, 02:34 AM
saladavid293; Hello - Welcome to the forum.

For diagnostic purposes, please post back the outputs of terminal commands:


lsb_release -a
sudo apt update
sudo apt upgrade
dpkg -l liberror-perl
apt policy liberror-perl

code tag tutorial:
http://ubuntuforums.org/showthread.php?t=2171721&p=12776168#post12776168


then we look in that horse's mouth

saladavid293
March 6th, 2020, 02:39 AM
@bashing-om
root@ubuntu:/home/dbb3881# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

Could not resolve 'us.archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Could not resolve 'security.ubuntu.com'
Err:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Could not resolve 'us.archive.ubuntu.com'
Err:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Could not resolve 'us.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.



root@ubuntu:/home/dbb3881# sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@ubuntu:/home/dbb3881# dpkg -l liberror-perl
dpkg-query: no packages found matching liberror-perl

root@ubuntu:/home/dbb3881# apt policy liberror-perl
liberror-perl:
Installed: (none)
Candidate: (none)
Version table:

saladavid293
March 6th, 2020, 02:40 AM
@bashing-om
root@ubuntu:/home/dbb3881# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

Could not resolve 'us.archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Could not resolve 'security.ubuntu.com'
Err:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Could not resolve 'us.archive.ubuntu.com'
Err:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Could not resolve 'us.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...onic/InRelease (http://us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease) Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...ates/InRelease (http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease) Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...orts/InRelease (http://us.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease) Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/di...rity/InRelease (http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease) Could not resolve 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.



root@ubuntu:/home/dbb3881# sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@ubuntu:/home/dbb3881# dpkg -l liberror-perl
dpkg-query: no packages found matching liberror-perl

root@ubuntu:/home/dbb3881# apt policy liberror-perl
liberror-perl:
Installed: (none)
Candidate: (none)
Version table:

Bashing-om
March 6th, 2020, 03:00 AM
saladavid293; Huh ?

Are you behind some kind of proxy that blocks access ?

What results:


ping -c3 us.archive.ubuntu.com
ping -c3 91.189.91.26




sometimes I wonder

saladavid293
March 6th, 2020, 03:03 AM
root@ubuntu:/home/dbb3881# ping -c3 us.archive.ubuntu.com
ping: us.archive.ubuntu.com: Name or service not known

root@ubuntu:/home/dbb3881# ping -c3 91.189.91.26
connect: Network is unreachable

Bashing-om
March 6th, 2020, 03:15 AM
saladavid293; Hokay 1

Proxy ? what on your system is blocking access ?

My results:


sysop@x1804mini:~$ ping -c3 us.archive.ubuntu.com
PING us.archive.ubuntu.com (91.189.91.26) 56(84) bytes of data.
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=1 ttl=52 time=68.6 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=2 ttl=52 time=67.3 ms
64 bytes from hanger.canonical.com (91.189.91.26): icmp_seq=3 ttl=52 time=65.9 ms

--- us.archive.ubuntu.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 65.916/67.293/68.661/1.120 ms


sysop@x1804mini:~$ ping -c3 91.189.91.26
PING 91.189.91.26 (91.189.91.26) 56(84) bytes of data.
64 bytes from 91.189.91.26: icmp_seq=1 ttl=52 time=63.2 ms
64 bytes from 91.189.91.26: icmp_seq=2 ttl=52 time=101 ms
64 bytes from 91.189.91.26: icmp_seq=3 ttl=52 time=69.7 ms

--- 91.189.91.26 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 63.275/78.271/101.823/16.861 ms
sysop@x1804mini:~$



gots to be a reason

saladavid293
March 6th, 2020, 03:25 AM
>_< I just realized I wasn't connected to the internet. I'm so sorry for wasting your time.

Bashing-om
March 6th, 2020, 03:32 AM
saladavid293' LOL -

Yeah; That will cause it :D

If this matter is now concluded to your satisfaction:
Please mark this thread solved;
aides others seeking the solution,
helps keep the forum clean and
precludes others miss-directing efforts to aid.
https://wiki.ubuntu.com/UnansweredPostsTeam/SolvedThreads



Up Up and away