Re: How to make dpkg forget a package was ever there?
William Ballard wrote: On Mon, Jan 10, 2005 at 12:22:50AM -0500, Roberto Sanchez wrote: I have edited /var/lib/dpkg/status to recover from a b0rked system after a power outage in the middle of a fairly big dist-upgrade. Just be careful, as you have the potential to really hose dpkg's idea of what is on your system. I'll show you the bit I want to edit out: begins... present in the `icu' and `icu-locales` packages. Package: fglrx-4.3.0-kernel-2.6.9 Status: purge ok not-installed Priority: extra Section: non-free/x11 Architecture: i386 Package: unrar continues I want to remove the middle bit, related to fglrx-4.3.0-kernel-2.6.9. Just chomp it out? It also appears in status-old. Removing the Architecture line seems safest if you want to mess with the status file[which I don't recommend]. Alternatively, apply the attached patch to vrms[which is just a perl script]. Random ironic aside, shouldn't vrms have a copyright/license header and the top of the perl script or does /usr/share/doc/vrms/copyright suffice? A quick survey of perl scripts in /usr/bin/ showed most have a copyright/license header but for instance bonobo-slay also doesn't. --- /usr/bin/vrms 2002-08-05 22:59:06.0 -0400 +++ ./vrms 2005-01-10 00:57:29.0 -0500 @@ -92,7 +92,7 @@ my (@pkglines) = split(/\n/, $clump); ### iff more than for lines, package is installed, so process it ### (speed-up by skipping don't-care entries) - if(@pkglines > 4) { + if(@pkglines > 5) { my $pkg = ""; ### name of this package my $pkgstatus = ""; ### status my $plan = ""; ### install plan (hold, deinstall, purge, install, etc.) signature.asc Description: OpenPGP digital signature
Re: How to make dpkg forget a package was ever there?
On Mon, Jan 10, 2005 at 12:46:46AM -0500, Roberto Sanchez wrote: > Doesn't seem like it would be a problem. I would say, though, that the > correct behavior for vrms is to ignore the package. If you have purged > it, all traces a presumably gone. Thus, the package is no longer there. > I would recommend filing a bug report. Once a sinner, always a sinner I guess :-) My penance is to reformat and reinstall. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to make dpkg forget a package was ever there?
Quoting William Ballard <[EMAIL PROTECTED]>: > On Mon, Jan 10, 2005 at 12:22:50AM -0500, Roberto Sanchez wrote: > > I have edited /var/lib/dpkg/status to recover from a b0rked system after > a > > power outage in the middle of a fairly big dist-upgrade. Just be > careful, > > as you have the potential to really hose dpkg's idea of what is on your > > system. > > I'll show you the bit I want to edit out: > begins... > present in the `icu' and `icu-locales` packages. > > Package: fglrx-4.3.0-kernel-2.6.9 > Status: purge ok not-installed > Priority: extra > Section: non-free/x11 > Architecture: i386 > > Package: unrar > continues > > I want to remove the middle bit, related to fglrx-4.3.0-kernel-2.6.9. > Just chomp it out? > > It also appears in status-old. Doesn't seem like it would be a problem. I would say, though, that the correct behavior for vrms is to ignore the package. If you have purged it, all traces a presumably gone. Thus, the package is no longer there. I would recommend filing a bug report. -Roberto Sanchez This message was sent using IMP, the Internet Messaging Program. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to make dpkg forget a package was ever there?
On Mon, Jan 10, 2005 at 12:22:50AM -0500, Roberto Sanchez wrote: > I have edited /var/lib/dpkg/status to recover from a b0rked system after a > power outage in the middle of a fairly big dist-upgrade. Just be careful, > as you have the potential to really hose dpkg's idea of what is on your > system. I'll show you the bit I want to edit out: begins... present in the `icu' and `icu-locales` packages. Package: fglrx-4.3.0-kernel-2.6.9 Status: purge ok not-installed Priority: extra Section: non-free/x11 Architecture: i386 Package: unrar continues I want to remove the middle bit, related to fglrx-4.3.0-kernel-2.6.9. Just chomp it out? It also appears in status-old. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to make dpkg forget a package was ever there?
Quoting William Ballard <[EMAIL PROTECTED]>: > vrms still lists some non-free packages on my system as "purged." > References to these are found in /var/lib/dpkg/status. > Can I just edit this file? > I have edited /var/lib/dpkg/status to recover from a b0rked system after a power outage in the middle of a fairly big dist-upgrade. Just be careful, as you have the potential to really hose dpkg's idea of what is on your system. -Roberto This message was sent using IMP, the Internet Messaging Program. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
How to make dpkg forget a package was ever there?
vrms still lists some non-free packages on my system as "purged." References to these are found in /var/lib/dpkg/status. Can I just edit this file? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]