Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't uninstall package weasis_4.0.3-1_amd64 #419

Closed
georgesimeo opened this issue May 23, 2023 · 1 comment
Closed

Can't uninstall package weasis_4.0.3-1_amd64 #419

georgesimeo opened this issue May 23, 2023 · 1 comment
Milestone

Comments

@georgesimeo
Copy link

**Can't uninstall / remove Weasis **

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'synaptic'
  2. Click on 'mark for removal'
  3. Apply
  4. See error
    E: weasis: installed weasis package pre-removal script subprocess returned error exit status 127

The same problem is via apt

sudo apt remove weasis 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  weasis
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 133 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 447696 files and directories currently installed.)
Removing weasis (4.0.3-1) ...
/var/lib/dpkg/info/weasis.prerm: 20: UTILITY_SCRIPTS: not found
dpkg: error processing package weasis (--remove):
 installed weasis package pre-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
Errors were encountered while processing:
 weasis
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Desktop (please complete the following information):

  • OS: [Ubuntu 20.04.6 LTS ]
  • Weasis Version [4.0.3-1]
@georgesimeo georgesimeo changed the title Can't unistall Weasis package weasis_4.0.3-1_amd64 Can't uninstall Weasis package weasis_4.0.3-1_amd64 May 23, 2023
@georgesimeo georgesimeo changed the title Can't uninstall Weasis package weasis_4.0.3-1_amd64 Can't uninstall package weasis_4.0.3-1_amd64 May 23, 2023
@nroduit
Copy link
Owner

nroduit commented May 25, 2023

Yes, there's a bug in the script. It has been corrected in version 4.1. As a workaround, you can run
sudo rm /var/lib/dpkg/info/weasis.prerm

@nroduit nroduit added this to the 4.1.2 milestone Jun 12, 2023
@nroduit nroduit closed this as completed Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants