LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-09-2020, 10:42 AM   #1
jkcray
Member
 
Registered: Feb 2019
Location: Ireland
Distribution: Ubuntu 20.04 LTS
Posts: 65

Rep: Reputation: Disabled
apt-get error removing insync


Hi.
I get the following when I run apt-get:

Code:
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'd be grateful for any advice.
Thanks.
 
Old 09-09-2020, 11:19 AM   #2
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
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.

Last edited by sgosnell; 09-09-2020 at 11:23 AM.
 
Old 09-09-2020, 11:51 AM   #3
jkcray
Member
 
Registered: Feb 2019
Location: Ireland
Distribution: Ubuntu 20.04 LTS
Posts: 65

Original Poster
Rep: Reputation: Disabled
Hi.
I tried your suggestion. (thanks).
But no go.

Code:
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.
 
Old 09-09-2020, 12:24 PM   #4
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Perhaps try the Insync Forums
 
Old 09-09-2020, 12:54 PM   #5
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,179

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
From the error you posted, it is missing its bundled python
Code:
/usr/lib/insync/py: not found
You could try tricking it with
Code:
touch /usr/lib/insync/py
then try removing it again.
 
2 members found this post helpful.
Old 09-09-2020, 01:05 PM   #6
jkcray
Member
 
Registered: Feb 2019
Location: Ireland
Distribution: Ubuntu 20.04 LTS
Posts: 65

Original Poster
Rep: Reputation: Disabled
Thanks very much.

Once I recreated /usr/lib/insync,
cd /usr/lib/insync and entered touch py and chmod a+rwx py

that worked perfectly!

Very grateful....

Last edited by jkcray; 09-09-2020 at 01:06 PM.
 
  


Reply

Tags
apt-get



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Last Chance to Get the Insync Native Google Drive Client for Free LXer Syndicated Linux News 0 05-14-2015 12:40 PM
LXer: Insync: Google Drive Client For Linux (Beta 2 Released, DEB And RPM Packages Available For Dow LXer Syndicated Linux News 0 08-11-2012 12:01 AM
LXer: Access And Sync Google Drive Using InSync Under Ubuntu/Linux Mint LXer Syndicated Linux News 0 08-02-2012 11:21 PM
LXer: Insync solves Google Drive for the Linux Desktop LXer Syndicated Linux News 0 07-27-2012 09:50 PM
[SOLVED] [php] Php question concerning using href's and onclick insync. errigour Programming 3 04-01-2012 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration