Re: dselect+apt -- how to clear cache?
Arcady == Arcady Genkin [EMAIL PROTECTED] writes: Arcady Yes, I did that. However, when I select Install, I still Arcady get the same thing: What does dpkg -l package and/or apt-get install package do? where package is one that is installed, and selected to be installed, but apt-get is trying to remove. The first command should say if there are any errors in the current state of the package, the second command should say if the fault is dselects or not (I think). -- Brian May [EMAIL PROTECTED]
Re: dselect+apt -- how to clear cache?
On Thu, Dec 30, 1999 at 01:57:48AM -0500, Arcady Genkin wrote I've made some bad move while using dselect one day, and now I have 40 packages triggered for removal. 8-( Oh horror! I figure that this is saved in some file, for any time I try to install a package with dselect now, it wants to remove the 40 packages along with installing the new ones. This happens when I choose install. ,[ This is what I see: ] | The following packages will be REMOVED: | netscape-base-4 libmd5-perl libcurses-perl debhelper nosql | libcompress-zlib-perl libtime-hires-perl libdelimmatch-perl perl | debmake libhtml-parser-perl sysutils libterm-readkey-perl | procmail-lib dupload navigator-smotif-45 netscape-base-45 | perl-5.004-doc xkeycaps dftp cvs-buildpackage perl-suid | libio-stringy-perl devscripts pkg-order signify liblockdev0-perl | dpkg-dev quake2 netscape-java-45 perlmenu navigator-base-45 dpkg-ftp | libnet-perl libmime-base64-perl dpkg-repack xaw-wrappers debsums | alias alien | 14 packages upgraded, 0 newly installed, 40 to remove and 0 not upgraded. | 1 packages not fully installed or removed. | Need to get 4745kB/11.3MB of archives. After unpacking 30.3MB will be freed. ` Is there any way I could tell dselect that thank you, I want my system left just the way it is right now. I want to clear that list of packages lined up for removal. See my reply to this list under the subject Re: Bad points for debian (was: resetting dpkg) I provided a perl scrpt that probably does what you want. Please be careful to get the right message: I also posted an awk script that was broken enough that you don't want to use it. John P. -- [EMAIL PROTECTED] [EMAIL PROTECTED] Oh - I - you know - my job is to fear everything. - Bill Gates in Denmark
Re: dselect+apt -- how to clear cache?
Arcady Genkin wrote: Any ideas, anyone? I'm pretty much at the end of my rope. I tried looking in various /var directories, hoping to find some cache file for dselect or apt, but alas... how about the status* files in /var/lib/dpkg ? -- hafi
Re: dselect+apt -- how to clear cache?
John Pearson [EMAIL PROTECTED] writes: See my reply to this list under the subject Re: Bad points for debian (was: resetting dpkg) I provided a perl scrpt that probably does what you want. Please be careful to get the right message: I also posted an awk script that was broken enough that you don't want to use it. Hi, John, I just tried your script. Well, it didn't work. I suspect that I already did what it was going to do, manually. I went in and did a + on every package that had *__ flag. It looks like the status lines in /var/lib/dpkg/status are what I want them to be, and yet, when choosing Install I am told that 38 packages will be *removed*. Arrgh! ,[ Here's a little script job: ] | tea:/var/lib/dpkg# chmod +x reset-selections.pl | tea:/var/lib/dpkg# ./reset-selections.pl my-selections | tea:/var/lib/dpkg# less my-selections | tea:/var/lib/dpkg# cat my-selections | dpkg --set-selections | tea:/var/lib/dpkg# dselect | Reading Package Lists... Done | Building Dependency Tree... Done | Correcting dependencies... Done | The following packages will be REMOVED: | netscape-base-4 libmd5-perl libcurses-perl debhelper nosql | libcompress-zlib-perl libtime-hires-perl libdelimmatch-perl perl debmake | libhtml-parser-perl sysutils libterm-readkey-perl procmail-lib dupload | navigator-smotif-45 netscape-base-45 dftp cvs-buildpackage perl-suid | libio-stringy-perl devscripts pkg-order signify liblockdev0-perl dpkg-dev | quake2 netscape-java-45 perlmenu navigator-base-45 dpkg-ftp libnet-perl | libmime-base64-perl dpkg-repack xaw-wrappers debsums alias alien | 14 packages upgraded, 0 newly installed, 38 to remove and 0 not upgraded. | 1 packages not fully installed or removed. | Need to get 4745kB/11.3MB of archives. After unpacking 25.6MB will be freed. | Do you want to continue? [Y/n] ` Here's something interesting. ,[ Snippage from /var/lib/dpkg/status: ] | Package: netscape-base-4 | Status: install ok installed | [...] | Package: libmd5-perl | Status: install ok installed | [...] | Package: libcurses-perl | Status: install ok installed | [... and so on ...] ` So, as you see, all of the packages that dselect wants to _remove_ are not set to be removed in /var/lib/dpkg/status. Any ideas? What's gonna happen if I remove the /var/lib/dpkg/status* files altogether? -- Arcady Genkin http://www.thpoon.com 'What good is my pity? Is not the pity the cross upon which he who loves man is nailed?..' (Zarathustra - F. Nietzsche)
Re: dselect+apt -- how to clear cache?
On Thu, Dec 30, 1999 at 11:51:50PM -0500, Arcady Genkin wrote John Pearson [EMAIL PROTECTED] writes: See my reply to this list under the subject Re: Bad points for debian (was: resetting dpkg) I provided a perl scrpt that probably does what you want. Please be careful to get the right message: I also posted an awk script that was broken enough that you don't want to use it. Hi, John, I just tried your script. Well, it didn't work. I suspect that I already did what it was going to do, manually. I went in and did a + on every package that had *__ flag. It looks like the status lines in /var/lib/dpkg/status are what I want them to be, and yet, when choosing Install I am told that 38 packages will be *removed*. Arrgh! ,[ Here's a little script job: ] | tea:/var/lib/dpkg# chmod +x reset-selections.pl | tea:/var/lib/dpkg# ./reset-selections.pl my-selections | tea:/var/lib/dpkg# less my-selections | tea:/var/lib/dpkg# cat my-selections | dpkg --set-selections | tea:/var/lib/dpkg# dselect | Reading Package Lists... Done | Building Dependency Tree... Done | Correcting dependencies... Done | The following packages will be REMOVED: | netscape-base-4 libmd5-perl libcurses-perl debhelper nosql | libcompress-zlib-perl libtime-hires-perl libdelimmatch-perl perl debmake | libhtml-parser-perl sysutils libterm-readkey-perl procmail-lib dupload | navigator-smotif-45 netscape-base-45 dftp cvs-buildpackage perl-suid | libio-stringy-perl devscripts pkg-order signify liblockdev0-perl dpkg-dev | quake2 netscape-java-45 perlmenu navigator-base-45 dpkg-ftp libnet-perl | libmime-base64-perl dpkg-repack xaw-wrappers debsums alias alien | 14 packages upgraded, 0 newly installed, 38 to remove and 0 not upgraded. | 1 packages not fully installed or removed. | Need to get 4745kB/11.3MB of archives. After unpacking 25.6MB will be freed. | Do you want to continue? [Y/n] ` Many of these packages depend on perl, which is one of the packages marked for removal; if perl didn't get 're-selected' then that would account for most of the removals listed. Are you upgrading from slink to potato, or do you otherwise have perl5 or perl6 selected for installation? What do you get when you go # grep '^perl' my-selections For that matter, what happens when you try # apt-get dselect-upgrade from the command line? Here's something interesting. ,[ Snippage from /var/lib/dpkg/status: ] | Package: netscape-base-4 | Status: install ok installed | [...] | Package: libmd5-perl | Status: install ok installed | [...] | Package: libcurses-perl | Status: install ok installed | [... and so on ...] ` So, as you see, all of the packages that dselect wants to _remove_ are not set to be removed in /var/lib/dpkg/status. Any ideas? netscape-base-4 and perl are common dependencies for most of the stuff that dselect wants to remove, and both conflict with other packages that provide similar functionality (perl5, netscape4 | netscape3); do you get any unexpected conflicts if you select these packages for installation in dselect? What's gonna happen if I remove the /var/lib/dpkg/status* files altogether? You get to reconstruct it by hand, or start from scratch, or both. Don't do that :-) John P. -- [EMAIL PROTECTED] [EMAIL PROTECTED] Oh - I - you know - my job is to fear everything. - Bill Gates in Denmark
Re: dselect+apt -- how to clear cache?
Arcady Genkin wrote: I've made some bad move while using dselect one day, and now I have 40 packages triggered for removal. 8-( Oh horror! Not so horrible, haven't we all done that? Have you tried to return to the Select menu and toggle all those files to install (+) rather than remove (-). Then try Install again. It worked for me when I did the same thing ;-) John I figure that this is saved in some file, for any time I try to install a package with dselect now, it wants to remove the 40 packages along with installing the new ones. This happens when I choose install. ,[ This is what I see: ] | The following packages will be REMOVED: | netscape-base-4 libmd5-perl libcurses-perl debhelper nosql | libcompress-zlib-perl libtime-hires-perl libdelimmatch-perl perl | debmake libhtml-parser-perl sysutils libterm-readkey-perl | procmail-lib dupload navigator-smotif-45 netscape-base-45 | perl-5.004-doc xkeycaps dftp cvs-buildpackage perl-suid | libio-stringy-perl devscripts pkg-order signify liblockdev0-perl | dpkg-dev quake2 netscape-java-45 perlmenu navigator-base-45 dpkg-ftp | libnet-perl libmime-base64-perl dpkg-repack xaw-wrappers debsums | alias alien | 14 packages upgraded, 0 newly installed, 40 to remove and 0 not upgraded. | 1 packages not fully installed or removed. | Need to get 4745kB/11.3MB of archives. After unpacking 30.3MB will be freed. ` Is there any way I could tell dselect that thank you, I want my system left just the way it is right now. I want to clear that list of packages lined up for removal. Thanks for any input! -- Arcady Genkinhttp://www.thpoon.com 'What good is my pity? Is not the pity the cross upon which he who loves man is nailed?..' (Zarathustra - F. Nietzsche) -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Powered by the Penguin
Re: dselect+apt -- how to clear cache?
John Carline [EMAIL PROTECTED] writes: I've made some bad move while using dselect one day, and now I have 40 packages triggered for removal. 8-( Oh horror! Not so horrible, haven't we all done that? Have you tried to return to the Select menu and toggle all those files to install (+) rather than remove (-). Then try Install again. It worked for me when I did the same thing ;-) Yes, I did that. However, when I select Install, I still get the same thing: ,[ This is what I see when selecting Install ] | The following packages will be REMOVED: | netscape-base-4 libmd5-perl libcurses-perl debhelper nosql | libcompress-zlib-perl libtime-hires-perl libdelimmatch-perl perl debmake | libhtml-parser-perl sysutils libterm-readkey-perl procmail-lib dupload | navigator-smotif-45 netscape-base-45 dftp cvs-buildpackage perl-suid | libio-stringy-perl devscripts pkg-order signify liblockdev0-perl dpkg-dev | quake2 netscape-java-45 perlmenu navigator-base-45 dpkg-ftp libnet-perl | libmime-base64-perl dpkg-repack xaw-wrappers debsums alias alien | 14 packages upgraded, 0 newly installed, 38 to remove and 0 not upgraded. | 1 packages not fully installed or removed. | Need to get 4745kB/11.3MB of archives. After unpacking 25.6MB will be freed. | Do you want to continue? [Y/n] ` I now choose n, and then return into Select and search for the above package names: ,[ Cut an paste stuff from Dselect package listing ] | *** Opt contrib/ netscape-bas 4.61-15.1 5 Popular World-Wide-Web br | *** Opt interpre libmd5-perl 1.7-1 1.7-1 MD5 Message Digest for Pe | [... and so on for all of the above packages ...] ` Well, you get the idea: all packages show with installed; install (was: install) flags, but nevertheless are rigged for *removal* when I chose Install command. Any ideas, anyone? I'm pretty much at the end of my rope. I tried looking in various /var directories, hoping to find some cache file for dselect or apt, but alas... -- Arcady Genkin http://www.thpoon.com 'What good is my pity? Is not the pity the cross upon which he who loves man is nailed?..' (Zarathustra - F. Nietzsche)