LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-25-2022, 10:40 PM   #16
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705

Hi,

please try:
Code:
#!/bin/sh
exit 0
# ESP Package Manager v3.7.0
/opt/brother/scanner/udev-rules/type1/install -e
Evo2.
 
Old 05-25-2022, 11:21 PM   #17
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I'm pretty sure the printer would be supported by some of Mint's repo drivers.
Have you tried to ask your printer dialog to search for the appropriate driver? Or CUPS?
 
Old 05-26-2022, 05:31 PM   #18
JustGotHere
LQ Newbie
 
Registered: May 2022
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
Hi,


This means that the script /var/lib/dpkg/info/brother-udev-rule-type1.prerm did not exit cleanly because the file /opt/brother/scanner/udev-rules/type1/install
is missing. Issues like this are not uncommon in low quality third party packages provided by hardware vendors.

Anyway please post that script somewhere that we can see. If it is short, maybe just here in [code] tags.
The ultimate solution will probably be just a one line edit, adding "exit 0" near the start of that script.

Evo2.
So I placed "exit 0" in the following:

Code:
#!/bin/sh
exit 0
# ESP Package Manager v3.7.0
/opt/brother/scanner/udev-rules/type1/install -e
And ran into an issue. It won't let me save the changes because it is placed in the var folder.
I get the message:

Quote:
Could not save the file /var/lib/dpkg/info/brother-udev-rule-type1.prerm.
You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again.
I'm gonna look around for that command that gives me access to var, I forgot it.
 
Old 05-26-2022, 05:34 PM   #19
JustGotHere
LQ Newbie
 
Registered: May 2022
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
I'm pretty sure the printer would be supported by some of Mint's repo drivers.
Have you tried to ask your printer dialog to search for the appropriate driver? Or CUPS?
I might have seen that, but it's been at least a year since I installed the files, co I couldn't tell for sure. The reason I looked for the driver from Brother is because I was having trouble printing PDF's with the one linux found.

If that'd be the final solution, how to remove all traces of this current driver?
 
Old 05-27-2022, 01:08 PM   #20
JustGotHere
LQ Newbie
 
Registered: May 2022
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
Hi,

please try:
Code:
#!/bin/sh
exit 0
# ESP Package Manager v3.7.0
/opt/brother/scanner/udev-rules/type1/install -e
Evo2.
Evo I can't gain access to edit /var files. If you're still there I could really use your help please.
 
Old 05-27-2022, 06:41 PM   #21
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by JustGotHere View Post
Evo I can't gain access to edit /var files. If you're still there I could really use your help please.
You need to be root. For example
Code:
sudo nano /var/lib/dpkg/info/brother-udev-rule-type1.prerm
Evo2.
 
Old 05-27-2022, 07:47 PM   #22
JustGotHere
LQ Newbie
 
Registered: May 2022
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
You need to be root. For example
Code:
sudo nano /var/lib/dpkg/info/brother-udev-rule-type1.prerm
Evo2.
It worked and I added the text, but the problem persists...

Quote:
reb@reb-HP-250-G7-Notebook-PC:~$ sudo apt-get update
Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
Hit:2 http://ppa.launchpad.net/cybermax-de...ackport/ubuntu focal InRelease
Get:3 https://brave-browser-apt-release.s3.brave.com stable InRelease [4317 B]
Hit:4 http://deb.playonlinux.com bionic InRelease
Hit:5 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal InRelease
Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:8 https://repo.protonvpn.com/debian unstable InRelease [2521 B]
Ign:9 http://packages.linuxmint.com uma InRelease
Get:10 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1100 B]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:12 http://packages.linuxmint.com uma Release [24,1 kB]
Get:13 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages [5185 B]
Get:14 http://packages.linuxmint.com uma Release.gpg [833 B]
Hit:15 http://archive.canonical.com/ubuntu focal InRelease
Get:16 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:17 https://repo.protonvpn.com/debian unstable/main all Packages [70,2 kB]
Get:18 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1480 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1822 kB]
Get:20 http://packages.linuxmint.com uma/upstream amd64 Packages [48,6 kB]
Get:21 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [440 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [657 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [335 kB]
Get:24 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [255 kB]
Get:25 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [40,7 kB]
Get:26 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [10,4 kB]
Get:27 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [938 kB]
Get:28 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [278 kB]
Get:29 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [134 kB]
Get:30 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [703 kB]
Get:31 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [15,3 kB]
Get:32 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1000 kB]
Get:33 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [142 kB]
Get:34 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [924 kB]
Get:35 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [551 kB]
Get:36 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [126 kB]
Get:37 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [66,7 kB]
Get:38 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [14,4 kB]
Get:39 http://archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [680 kB]
Get:40 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2464 B]
Get:41 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [207 kB]
Get:42 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [391 kB]
Get:43 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [20,7 kB]
Get:44 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]
Get:45 http://archive.ubuntu.com/ubuntu focal-backports/main i386 Packages [35,2 kB]
Get:46 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [44,5 kB]
Get:47 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 DEP-11 Metadata [7976 B]
Get:48 http://archive.ubuntu.com/ubuntu focal-backports/universe i386 Packages [13,2 kB]
Get:49 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [23,6 kB]
Get:50 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [30,8 kB]
Fetched 11,9 MB in 4s (3050 kB/s)
Reading package lists... Done
Quote:
reb@reb-HP-250-G7-Notebook-PC:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package brother-udev-rule-type1 needs to be reinstalled, but I can't find an archive for it.
Update manager is in a perpetual state of "Checking for Updates". When opened, it won't load
 
Old 05-28-2022, 12:48 AM   #23
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by JustGotHere View Post
So I placed "exit 0" in the following:

Code:
#!/bin/sh
exit 0
# ESP Package Manager v3.7.0
/opt/brother/scanner/udev-rules/type1/install -e
This is nonsense.
The script exits gracefully before doing anything.
The 'exit 0' has to be the last line of the script.
 
Old 05-28-2022, 03:15 AM   #24
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by ondoho View Post
This is nonsense.
The script exits gracefully before doing anything.
The 'exit 0' has to be the last line of the script.
That is exactly the point. The script is failing because the thing it is trying to execute does not exist.

It is a pre-remove script. OP was trying to uninstal this broken package. Presumably OP manually removed /opt/brother/scanner/udev-rules/type1/install and the pre-remove script is too dumb to deal with that situation.

Evo2.

Last edited by evo2; 05-28-2022 at 03:21 AM.
 
Old 05-28-2022, 03:20 AM   #25
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by JustGotHere View Post
It worked and I added the text, but the problem persists...

Update manager is in a perpetual state of "Checking for Updates". When opened, it won't load
You should now be able to remove the package.
Code:
sudo dpkg --purge brother-udev-rule-type1
Evo2.
 
Old 05-28-2022, 08:30 AM   #26
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by evo2 View Post
That is exactly the point. The script is failing because the thing it is trying to execute does not exist.

It is a pre-remove script. OP was trying to uninstal this broken package. Presumably OP manually removed /opt/brother/scanner/udev-rules/type1/install and the pre-remove script is too dumb to deal with that situation.
I stand corrected!
 
1 members found this post helpful.
Old 05-30-2022, 02:58 PM   #27
JustGotHere
LQ Newbie
 
Registered: May 2022
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
You should now be able to remove the package.
Code:
sudo dpkg --purge brother-udev-rule-type1
Evo2.
This is what I get:

Quote:
reb@reb-HP-250-G7-Notebook-PC:/var/lib$ sudo dpkg --purge brother-udev-rule-type1
dpkg: error processing package brother-udev-rule-type1 (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
brother-udev-rule-type1
 
Old 05-30-2022, 04:04 PM   #28
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by JustGotHere View Post
This is what I get:
Code:
reb@reb-HP-250-G7-Notebook-PC:/var/lib$ sudo dpkg --purge brother-udev-rule-type1
dpkg: error processing package brother-udev-rule-type1 (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
brother-udev-rule-type1
Use the --force-remove-reinstreq dpkg option.

Ie
Code:
sudo dpkg --purge --force-remove-reinstreq brother-udev-rule-type1
Evo2.

Last edited by evo2; 05-30-2022 at 04:08 PM.
 
Old 05-30-2022, 04:33 PM   #29
JustGotHere
LQ Newbie
 
Registered: May 2022
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
Use the --force-remove-reinstreq dpkg option.

Ie
Code:
sudo dpkg --purge --force-remove-reinstreq brother-udev-rule-type1
Evo2.
Well, that worked, and the Update Manager is responsive again. But when trying to install an update for it, I'm faced with these (single?) errors:

Quote:
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
 
Old 05-30-2022, 04:59 PM   #30
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by JustGotHere View Post
Well, that worked, and the Update Manager is responsive again. But when trying to install an update for it, I'm faced with these (single?) errors:
Code:
E: libglib2.0-0: 2.3392:dependency problems - leaving triggers unprocessed
What is the output of
Code:
apt-cache show libglib2.0-0
and
Code:
apt-cache policy libglib2.0-0
Evo2.

P.S. Please use [code] tags, not [quote] tags for code.
 
  


Reply



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
[SOLVED] apt install gives eror "E: The package notebot needs to be reinstalled..." srikk Linux - Software 4 11-12-2019 09:07 AM
apt_pkg.Error: E:The package needs to be reinstalled, but I can't find an archive for it. Reading package lists... Done theluckygupta Linux - Newbie 2 08-11-2019 08:52 AM
[SOLVED] Debian9 apt: package x needs to be reinstalled, but no archive found jvermeulen Debian 27 07-19-2018 03:24 AM
how can I add a type1 font to ghostscript? adrianmariano Linux - Software 2 04-26-2014 07:37 PM
Type1(postscript) fonts sharapchi Slackware 4 11-14-2005 06:25 PM

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

All times are GMT -5. The time now is 11:34 PM.

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