Error while installing python3 and pip3 in kali linux - python-3.3

I have use the following commands at the time of installation:
tar -xvf python-3.3.0.tgz
cd python-3.3.0
./configure
make
sudo make altinstall
sudo apt-get install python3-pip
Error:
root#kali:~/Desktop/Python-3.3.0# sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libc-bin : Depends: libc6 (< 2.20) but 2.21-0ubuntu4 is to be installed
libc6-dbg : Depends: libc6 (= 2.19-18) but 2.21-0ubuntu4 is to be installed
python3-pip : Depends: python3-colorama but it is not going to be installed
Depends: python3-distlib but it is not going to be installed
Depends: python3-html5lib but it is not going to be installed
Depends: python3-requests but it is not going to be installed
Depends: python3-setuptools but it is not going to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I have tried 'apt-get -f install' this command.
It gives following error:
root#kali:~/Desktop/Python-3.3.0# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc-bin libc6-dbg
The following packages will be upgraded:
libc-bin libc6-dbg
2 upgraded, 0 newly installed, 0 to remove and 1464 not upgraded.
3 not fully installed or removed.
Need to get 0 B/4,322 kB of archives.
After this operation, 2,792 kB disk space will be freed.
Do you want to continue? [Y/n] Y
WARNING: The following packages cannot be authenticated!
libc-bin libc6-dbg
Install these packages without verification? [y/N] y
Reading changelogs... Done
(Reading database ... 323301 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.21-0ubuntu4_amd64.deb ...
Unpacking libc-bin (2.21-0ubuntu4) over (2.19-18) ...
dpkg: error processing archive /var/cache/apt/archives/libc-bin_2.21-0ubuntu4_amd64.deb (--unpack):
trying to overwrite '/usr/sbin/update-locale', which is also in package locales 2.19-18
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
/var/cache/apt/archives/libc-bin_2.21-0ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
How to resolve this error?
And how to install requests package for python3

tar -xvf python-3.3.0.tgz
cd python-3.3.0
./configure
make
sudo make altinstall
Next:
Download get-pip.py form below URL.
https://bootstrap.pypa.io/get-pip.py
install this as a 'py' file. Go to Linux terminal type in
root# python get-pip.py
Assuming downloaded file is located in 'root'
Now it would work fine

Related

How can I fix the error =>E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. While installing MongoDB

I am trying to install MongoDb in Ubuntu 20.04.4 LTS
I am following the steps in the documentation here
But when I execute the command in STEP 4
I am getting the error as shown in the screenshot below.
venki#ubuntu:~$ sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree
Reading state information... Done
mongodb-org is already the newest version (6.0.0).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mongodb-org-database : Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
venki#ubuntu:~$
venki#ubuntu:~$
venki#ubuntu:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
mongodb-org-database : Depends: mongodb-org-server but it is not installed
Depends: mongodb-org-mongos but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
venki#ubuntu:~$ sudo dpkg --configure -a
venki#ubuntu:~$ sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree
Reading state information... Done
mongodb-org is already the newest version (6.0.0).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mongodb-org-database : Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
venki#ubuntu:~$ sudo dpkg --remove mongodb-org-shell
I tried uninstalling following the steps in official documentation here
And tried to start installing from STEP 1 again. But the error still stays.
I also tried to make this work by executing the following commands :
sudo dpkg --configure -a
sudo dpkg --remove mongodb-org-database-tools-extra
sudo dpkg --remove mongodb-org-shell
But this does not seem to work either.
Can someone please help me out here ?

"mongodb-org : Depends: mongodb-org-server but it is not going to be installed" when installing mongodb in Ubuntu 20.04

I've committed the error of installing mongodb first by sudo apt install mongodb, removing it and then trying to install as the official documentation says so for Ubuntu 20.04 (Linux Mint), but now I can't install any other package because it gives me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
mongodb-org-tools : Depends: mongodb-database-tools but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Tried sudo apt reinstall sudo apt --fix-broken install sudo apt purge <package_name> sudo apt remove <package_name> sudo apt-get install -f
When running sudo apt install --fix-broken:
sudo apt install --fix-broken
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
mongodb-database-tools mongodb-org-mongos mongodb-org-server
The following NEW packages will be installed:
mongodb-database-tools mongodb-org-mongos mongodb-org-server
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/89,2 MB of archives.
After this operation, 148 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 414079 files and directories currently installed.)
Preparing to unpack .../mongodb-org-server_4.4.6_amd64.deb ...
Unpacking mongodb-org-server (4.4.6) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-server_4.4.6_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mongod', which is also in package mongodb-server-core 1:3.6.9+really3.6.8+90~g8e540c0b6
d-0ubuntu5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../mongodb-org-mongos_4.4.6_amd64.deb ...
Unpacking mongodb-org-mongos (4.4.6) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-mongos_4.4.6_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mongos', which is also in package mongodb-server-core 1:3.6.9+really3.6.8+90~g8e540c0b6
d-0ubuntu5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../mongodb-database-tools_100.3.1_amd64.deb ...
Unpacking mongodb-database-tools (100.3.1) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-database-tools_100.3.1_amd64.deb (--unpack):
trying to overwrite '/usr/bin/bsondump', which is also in package mongo-tools 3.6.3-0ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mongodb-org-server_4.4.6_amd64.deb
/var/cache/apt/archives/mongodb-org-mongos_4.4.6_amd64.deb
/var/cache/apt/archives/mongodb-database-tools_100.3.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I try to reinstall mongodb following the official doc it gives me again the same error I've mentioned before.
Thanks in advance.
This solved my problem;
dpkg -l | grep mongo will show the list of packages, then dpkg -r <nameofpkg> could be used for each packages for the output of dpkg -l | grep mongo.
Solved it.
sudo apt-get clean
sudo pkexec synaptic >> filter by "broken" >> remove completely the package
sudo apt-get install -f
Tanks for the help.

dpkg: unable to make backup symlink for

I'm setting up my new PC by chromebook.
When I do sudo apt-get update && sudo apt-get upgrade, this error is occured.
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
openssh-server : Depends: openssh-client (= 1:7.4p1-10+deb9u4) but 1:7.4p1-10+deb9u7 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
1.I do'sudo apt --fix-broken install'.
Then another error occured in dpkg.
The following packages will be upgraded: openssh-server
1 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
15 not fully installed or removed.
Need to get 0 B/289 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 40252 files and directories currently installed.)
Preparing to unpack .../openssh-server_1%3a7.4p1-10+deb9u7_arm64.deb ...
Unpacking openssh-server (1:7.4p1-10+deb9u7) over (1:7.4p1-10+deb9u4) ...
dpkg: error processing archive /var/cache/apt/archives/openssh- server_1%3a7.4p1-10+deb9u7_arm64.deb (--unpack):
unable to make backup symlink for './usr/share/man/man5/authorized_keys.5.gz': No such file or directory
Errors were encountered while processing:
/var/cache/apt/archives/openssh-server_1%3a7.4p1-10+deb9u7_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
2.I do mkdir -r ./usr/share/man/man5.
But I cant.
3.I do ln -s /usr/share/man/man5/authorized_keys.5.gz ./usr/share/man/man5/authorized_keys.5.gz
But I cant.
How should I do?? :(
Sorry! self solved.
I re-installed dependency packages.
sudo apt remove --purge cros-sftp
sudo apt remove --purge cros-guest-tools
apt --fix-broken install

Dependency problems in Linux

I try to install a software for a thermal camera, but it gives the error message:
pi#raspberrypi:~ $ sudo dpkg -i /media/pi/PETI/libirimager-1.1.7-i386.deb
Selecting previously unselected package libirimager.
(Reading database ... 112361 files and directories currently installed.)
Preparing to unpack .../libirimager-1.1.7-i386.deb ...
Unpacking libirimager (1.1.7) ...
dpkg: dependency problems prevent configuration of libirimager:
libirimager depends on libudev-dev (>= 1.0).
libirimager depends on gcc (>= 4.6).
libirimager depends on build-essential (>= 1.14.18).
libirimager depends on cmake (>= 2.6).
dpkg: error processing package libirimager (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libirimager
I tried the dpkg --configure -a , but did not solve the problem.
The linux is totaly new for me, so I am unfamiliar with these orders.
(Raspbian Jessie, i386)
try:
apt install -f
or install all dependencies and try again.
$ sudo dpkg -i /media/pi/PETI/libirimager-1.1.7-i386.deb
Not the best command ... No dependencies will be installed. Please do :
$ sudo gdebi /media/pi/PETI/libirimager-1.1.7-i386.deb
... Which will also install the available dependencies.

Can't install new linux kernel even after squeeze-backports

I'm trying to upgrade my kernel version from 2.6.32 to 3.2.0.0. When I try:
sudo apt-get install linux-image-3.16.0-4-amd64
I get the following error message:
linux-image-3.16.0-4-amd64 : Depends: linux-base (>= 3~) but 2.6.32-48squeeze6 is to be installed
Recommends: firmware-linux-free (>= 3~) but it is not going to be installed
Recommends: irqbalance but it is not going to be installed
Breaks: initramfs-tools (< 0.110~) but 0.98.8 is to be installed
I read that the problem has to do with having two kernel versions at once, so I tried the squeeze backports option. After adding the line:
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
to my /etc/apt/sources.list, and running the following command:
sudo apt-get install -t squeeze-backports linux-image-3.16.0-4-amd64
I get the same error message as above. Can someone explain to me what the problem is, and how I would proceed to install the new kernel?
By the way, when I type in sudo apt-get install -f, I have the following message:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libfuzzy-dev : Depends: libfuzzy2 (= 2.12-1) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Resources