Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
google-chrome-stable libegl-mesa0 libgbm1 libgl1-mesa-dri
libgl1-mesa-dri:i386 libglapi-mesa libglapi-mesa:i386 libglx-mesa0
libglx-mesa0:i386 libosmesa6 libosmesa6:i386 libxatracker2 linux-generic
linux-generic-hwe-18.04 linux-headers-generic
linux-headers-generic-hwe-18.04 linux-image-generic
linux-image-generic-hwe-18.04 mesa-va-drivers mesa-vdpau-drivers netplan.io
0 upgraded, 0 newly installed, 0 to remove and 21 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]
Setting up insync (1.5.7.37371-artful) ...
/var/lib/dpkg/info/insync.postinst: 406: /var/lib/dpkg/info/insync.postinst: /usr/lib/insync/py: not found
dpkg: error processing package insync (--configure):
installed insync package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
insync
E: Sub-process /usr/bin/dpkg returned an error code (1)
Insync is clearly the problem but I can't remove it.
Code:
sudo apt-get remove insync
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
insync
0 upgraded, 0 newly installed, 1 to remove and 21 not upgraded.
1 not fully installed or removed.
After this operation, 400 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 353367 files and directories currently installed.)
Removing insync (1.5.7.37371-artful) ...
/var/lib/dpkg/info/insync.prerm: 53: /var/lib/dpkg/info/insync.prerm: /usr/lib/insync/py: not found
dpkg: error processing package insync (--remove):
installed insync package pre-removal script subprocess returned error exit status 127
/var/lib/dpkg/info/insync.postinst: 406: /var/lib/dpkg/info/insync.postinst: /usr/lib/insync/py: not found
dpkg: error while cleaning up:
installed insync package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
insync
E: Sub-process /usr/bin/dpkg returned an error code (1)
I don't recall having this issue when I removed insync, which I've paid for but consider it a lost investment. It doesn't work well, IME. My only suggestion would be to
Code:
sudo apt --fix-broken install
then
Code:
sudo apt remove --purge insync
then remove any references to the insync repository from /etc/apt/sources.list and /etc/apt/sources.list.d. I have no idea if insync is the reason your packages are being held.
sudo apt --fix-broken install
[sudo] password for kinsella:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up insync (1.5.7.37371-artful) ...
/var/lib/dpkg/info/insync.postinst: 406: /var/lib/dpkg/info/insync.postinst: /usr/lib/insync/py: not found
dpkg: error processing package insync (--configure):
installed insync package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
insync
E: Sub-process /usr/bin/dpkg returned an error code (1)
And
Code:
sudo apt remove --purge insync
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
insync*
0 upgraded, 0 newly installed, 1 to remove and 21 not upgraded.
1 not fully installed or removed.
After this operation, 400 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 353367 files and directories currently installed.)
Removing insync (1.5.7.37371-artful) ...
/var/lib/dpkg/info/insync.prerm: 53: /var/lib/dpkg/info/insync.prerm: /usr/lib/insync/py: not found
dpkg: error processing package insync (--remove):
installed insync package pre-removal script subprocess returned error exit status 127
/var/lib/dpkg/info/insync.postinst: 406: /var/lib/dpkg/info/insync.postinst: /usr/lib/insync/py: not found
dpkg: error while cleaning up:
installed insync package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
insync
E: Sub-process /usr/bin/dpkg returned an error code (1)
The annoying thing is that I encountered the same (insync) problem on my laptop 6 months ago but I don't remember how I resolved it!
Distracted by Covid 19....
Last edited by jkcray; 09-09-2020 at 12:19 PM.
Reason: An additional thought.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.