Apt Tries To Configure Non-Existant Packages

If none of the more specific forums is the right place to ask

Apt Tries To Configure Non-Existant Packages

Postby Freddie » 2005-10-15 14:48

I have a problem with Apt. The problem is that Apt is trying to configure a package which I thinks still exists but in reality has been deleted. The problem was caused by my installing 'Webmin' via Apt, then using its auto-updater to update it and then Apt tried to update the version which did not exist, so I went and deleted Webmins folders. Here is part of the error message (it is the same for each package):
Setting up webmin-core (1.230-1) ...
/etc/webmin/webmin.acl: No such file or directory
dpkg: error processing webmin-core (--configure):
subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of webmin-mailboxes:
webmin-mailboxes depends on webmin-core; however:
Package webmin-core is not configured yet.
dpkg: error processing webmin-mailboxes (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
webmin-mysql
webmin-proftpd
webmin-core
webmin-mailboxes
E: Sub-process /usr/bin/dpkg returned an error code (1)
freddie@macserv:~$

Does anyone know how I can tell Apt to just forget about those packages as if they were not there (which they aren't) and to move on?
Thanks for all of your help.
Freddie
 
Posts: 6
Joined: 2005-08-11 19:35

Re: Apt Tries To Configure Non-Existant Packages

Postby jobezone » 2005-10-15 14:57

Freddie wrote:Does anyone know how I can tell Apt to just forget about those packages as if they were not there (which they aren't) and to move on?
Thanks for all of your help.

I didn't understand very well how you got into that situation, and as far as telling apt to ignore those packages, I also don't know if it's possible. Try checking the manual pages of apt-get, dpkg, and aptitude (i.e.
Code: Select all
man apt-get
).

Myself, I would try telling apt-get to forcefully remove those packages, by running:
Code: Select all
apt-get -f remove webmin-mysql webmin-proftpd webmin-core webmin-mailboxes
.
And also, if possible, kindly ask apt-get to fix any problems, by running:
Code: Select all
apt-get -f install
.
The Debian Documentation website contains the FAQ, Installation Manual and the Release Notes for Etch. They're helpful if you want to learn more about debian!
User avatar
jobezone
 
Posts: 220
Joined: 2005-06-12 07:20
Location: Portugal

Postby Freddie » 2005-10-15 15:40

Nope, none of those worked, it is still moaning about how it can not configure a package because it can not find it.
Here is how I got into this mess:
I installed webmin via Apt, however the version in the repositories was out of date (very out of date) so I used webmins auto-update feature. Then the version in the repositories was updated... After fouling itself up totally I deleted all of the webmin folders and ran the uninstall script which came with webmin. I am now where I am at the moment. I need to tell Debian that they no longer exit and to stop trying to configure them. Apt must keep a list of jobs to do, somewhere, if I could find it I would be able to fix it.
Freddie
 
Posts: 6
Joined: 2005-08-11 19:35

Postby jobezone » 2005-10-15 15:52

Freddie wrote:Nope, none of those worked, it is still moaning about how it can not configure a package because it can not find it.

But can you show the errors you get when you tried the commands I sugested above?
I need to tell Debian that they no longer exit and to stop trying to configure them. Apt must keep a list of jobs to do, somewhere, if I could find it I would be able to fix it.

I think that that's dpkg's department. I'm not too knowledgable with it, but try seeing the manual of dpkg.
Actually, I've just seen it's man page: Try this:
Code: Select all
dpkg --remove --pending


"If -a or --pending is given instead of a package
name, then all packages unpacked, but marked to be removed or
purged in file /var/lib/dpkg/status, are removed or purged,
respectively."

Or try:
Code: Select all
dpkg --audit

" Searches for packages that have been installed only partially on
your system. dpkg will suggest what to do with them to get them
working."
The Debian Documentation website contains the FAQ, Installation Manual and the Release Notes for Etch. They're helpful if you want to learn more about debian!
User avatar
jobezone
 
Posts: 220
Joined: 2005-06-12 07:20
Location: Portugal

Postby Freddie » 2005-10-15 21:55

Here are the results of running those two operations, it seems to know that they are broken but not what to do about them:
Code: Select all
freddie@macserv:~$ sudo dpkg --audit
Password:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 webmin-mailboxes     user mail reading module for webmin

The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 webmin-mysql         mysql-server control module for webmin
 webmin-core          core modules for webmin
 webmin-proftpd       Proftpd module for webmin

freddie@macserv:~$ sudo dpkg --remove --pending
(Reading database ... 75153 files and directories currently installed.)
Removing webmin-mysql ...
/etc/webmin/webmin.acl: No such file or directory
dpkg: error processing webmin-mysql (--remove):
 subprocess pre-removal script returned error exit status 2
/etc/webmin/webmin.acl: No such file or directory
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 2
Removing webmin-core ...
/etc/webmin/webmin.acl: No such file or directory
dpkg: error processing webmin-core (--remove):
 subprocess pre-removal script returned error exit status 2
Removing webmin-proftpd ...
/etc/webmin/webmin.acl: No such file or directory
dpkg: error processing webmin-proftpd (--remove):
 subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
 webmin-mysql
 webmin-core
 webmin-proftpd
freddie@macserv:~$

There has to be a way to do it...
Freddie
 
Posts: 6
Joined: 2005-08-11 19:35

Postby jobezone » 2005-10-15 22:22

Freddie wrote:Here are the results of running those two operations, it seems to know that they are broken but not what to do about them:
Code: Select all
freddie@macserv:~$ sudo dpkg --audit
Password:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 webmin-mailboxes     user mail reading module for webmin

The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 webmin-mysql         mysql-server control module for webmin
 webmin-core          core modules for webmin
 webmin-proftpd       Proftpd module for webmin

freddie@macserv:~$ sudo dpkg --remove --pending
(Reading database ... 75153 files and directories currently installed.)
Removing webmin-mysql ...
/etc/webmin/webmin.acl: No such file or directory
dpkg: error processing webmin-mysql (--remove):
 subprocess pre-removal script returned error exit status 2
/etc/webmin/webmin.acl: No such file or directory
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 2
Removing webmin-core ...
/etc/webmin/webmin.acl: No such file or directory
dpkg: error processing webmin-core (--remove):
 subprocess pre-removal script returned error exit status 2
Removing webmin-proftpd ...
/etc/webmin/webmin.acl: No such file or directory
dpkg: error processing webmin-proftpd (--remove):
 subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
 webmin-mysql
 webmin-core
 webmin-proftpd
freddie@macserv:~$

There has to be a way to do it...

Really, take a look at dpkg's manual page, by running:
Code: Select all
man dpkg


In fact, one of the quotes I placed before from the man page of dpkg, it is said about the /var/lib/dpkg/status file. Back it up, edit it, and delete the full entries for those 4 packages. I've never done this myself, but if you back up the file first (making a copy with another name, or something), you'll be able to revert it if it pisses off apt.
The Debian Documentation website contains the FAQ, Installation Manual and the Release Notes for Etch. They're helpful if you want to learn more about debian!
User avatar
jobezone
 
Posts: 220
Joined: 2005-06-12 07:20
Location: Portugal


Return to General Questions

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable