Program doesn't find installed lib in Linux - linux

I'm using a Raspberry Pi 4 with Ubuntu 20.04 LTS for ARM(arm64). After trying to install .deb file of Winscribe(armhf), logs show that I miss some package and installed it:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up windscribe-cli:armhf (1.4-51) ...
/usr/bin/windscribe: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
/usr/bin/windscribe: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
dpkg: error processing package windscribe-cli:armhf (--configure):
installed windscribe-cli:armhf package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
windscribe-cli:armhf
E: Sub-process /usr/bin/dpkg returned an error code (1)
After I tried to install libz.so.1 manually and succeed. Logs from apt:
sudo apt-get install zlib1g
Reading package lists... Done
Building dependency tree
Reading state information... Done
zlib1g is already the newest version (1:1.2.11.dfsg-2ubuntu1.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Even after is shows me the top error as Windscribe doesn't find lib.
Any help would be appreciated.

Related

Unable to install python3-tk on Ubuntu 18.04.2 LTS

I am running Ubuntu 18.04.2 LTS:
user#vmubu01:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
And I am unable to install python3-tk using 'apt-get install' command as you can see below:
user#vmubu01:~$ sudo apt-get install python3-tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
tix python3-tk-dbg
The following NEW packages will be installed:
python3-tk
0 upgraded, 1 newly installed, 0 to remove and 91 not upgraded.
3 not fully installed or removed.
Need to get 0 B/101 kB of archives.
After this operation, 891 kB of additional disk space will be used.
(Reading database ... 206924 files and directories currently installed.)
Preparing to unpack .../python3-tk_3.6.8-1~18.04_amd64.deb ...
Unpacking python3-tk:amd64 (3.6.8-1~18.04) ...
dpkg: error processing archive /var/cache/apt/archives/python3-tk_3.6.8-1~18.04_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3.6/tkinter/__init__.py', which is also in package libpython3.6-stdlib:amd64 3.6.8-1+xenial1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/python3-tk_3.6.8-1~18.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am also unable to install it using pip, see the error below:
user#vmubu01:~$ pip3.6 install python3-tk
Collecting python3-tk
ERROR: Could not find a version that satisfies the requirement python3-tk (from versions: none)
ERROR: No matching distribution found for python3-tk
If I try to run the 'apt --fix-broken install' command I get:
user#vmubu01:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
python3-tk
Suggested packages:
tix python3-tk-dbg
The following NEW packages will be installed:
python3-tk
0 upgraded, 1 newly installed, 0 to remove and 91 not upgraded.
3 not fully installed or removed.
Need to get 0 B/101 kB of archives.
After this operation, 891 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 206924 files and directories currently installed.)
Preparing to unpack .../python3-tk_3.6.8-1~18.04_amd64.deb ...
Unpacking python3-tk:amd64 (3.6.8-1~18.04) ...
dpkg: error processing archive /var/cache/apt/archives/python3-tk_3.6.8-1~18.04_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3.6/tkinter/__init__.py', which is also in package libpython3.6-stdlib:amd64 3.6.8-1+xenial1
Errors were encountered while processing:
/var/cache/apt/archives/python3-tk_3.6.8-1~18.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I please advise
Not sure this solution fits for every situation, but here is one that worked for me.
I had the same issue (except it was with Ubuntu 16.04), also tried what #Column01 wrote in comments:
sudo apt-get install python3.6-tk
Same problem.
But that gave me an idea. Checked:
$ python --version
Python 3.5.2
So the solution was as simple as:
sudo apt-get install python3.5-tk

docker.io error when upgrading packages on linux mint

So I have docker installed on Linux Mint 18.3 (dual-boot with Windows 7) and I can run and work with the containers without an issue. However, ever since I installed it, I keep getting errors while I try to upgrade my packages.
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up docker.io (1.13.1-0ubuntu1~16.04.2) ...
addgroup: The group `docker' already exists and is not a system group. Exiting.
dpkg: error processing package docker.io (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
docker.io
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to install docker.io again and see what happens:
$ sudo apt-get install docker.io
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker.io is already the newest version (1.13.1-0ubuntu1~16.04.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up docker.io (1.13.1-0ubuntu1~16.04.2) ...
addgroup: The group `docker' already exists and is not a system group. Exiting.
dpkg: error processing package docker.io (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
docker.io
E: Sub-process /usr/bin/dpkg returned an error code (1)
Running $ groups returns this:
$ groups
kosara adm dialout cdrom sudo dip plugdev lpadmin sambashare docker
I did some digging and ran $ sudo dpkg --configure -a:
$ sudo dpkg --configure -a
Setting up docker.io (1.13.1-0ubuntu1~16.04.2) ...
addgroup: The group `docker' already exists and is not a system group. Exiting.
dpkg: error processing package docker.io (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
docker.io
But it seems that a package that isn't fully installed is to blame, so I tried to fix it:
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up docker.io (1.13.1-0ubuntu1~16.04.2) ...
addgroup: The group `docker' already exists and is not a system group. Exiting.
dpkg: error processing package docker.io (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
docker.io
E: Sub-process /usr/bin/dpkg returned an error code (1)
I removed docker and did a clean install, to no avail. I'm not really sure what to try next and I couldn't find a solution that works for me so far. Any help would be welcome!

nodejs install issue in linux

sudo apt-get install nodejs
[sudo] password for akhil:
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-51 linux-headers-4.4.0-51-generic linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic
linux-image-4.4.0-51-generic linux-image-4.4.0-57-generic linux-image-extra-4.4.0-51-generic linux-image-extra-4.4.0-57-generic
ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 140 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python-gunicorn (19.4.5-1ubuntu1) ...
update-rc.d: error: initscript does not exist: /etc/init.d/gunicorn
dpkg: error processing package python-gunicorn (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gunicorn:
gunicorn depends on python-gunicorn (= 19.4.5-1ubuntu1); however:
Package python-gunicorn is not configured yet.
dpkg: error processing package gunicorn (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
python-gunicorn
gunicorn
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am trying to install nodejs on my system.But the above error occured.
I already installed gunicorn in my system.Please figureout what is the real issue?

Getting errors while installing Phppgadmin

"sudo apt-get install phppgadmin"
Reading package lists... Done
Building dependency tree
Reading state information... Done
phppgadmin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 65 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up phppgadmin (5.1-1) ...
* Reloading web server apache2 *
* Apache2 is not running
invoke-rc.d: initscript apache2, action "reload" failed.
dpkg: error processing package phppgadmin (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
phppgadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
What has to be done to remove this error and successfully install the phppgadmin
Try starting the apache process and then re-run the installation.

apt-get install mongodb-10gen failed

I want to install mongoDB on Debian. The problem is when I try to do that the output is like this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mongodb-10gen is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up mongodb-10gen (2.4.10) ...
invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've searched about that and found some solutions like:
install mongodb-10gen failed with apt-get
But when try to run this command:
apt-get remove mongodb-clients
The result is:
[root#Takhalof-srv ~]$ apt-get remove mongodb-clients
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mongodb-clients' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mongodb-10gen (2.4.10) ...
invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I try to run this command:
sudo service mongodb restart
The result is:
mongodb: unrecognized service
When I use apt-get -f install the result is:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mongodb-10gen (2.4.10) ...
invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)
I really confused and don't know what's the problem. What should I do?
The error in your first command strongly suggest that the MongoDB server(/daemon) isn't installed. Try installing mongodb-server, then doing apt-get -f install to finish configuring any half installed packages.

Resources