Re: [Fink-users] Failed: can't install package wxmaxima-mac-16.04.0-1
> On Jun 11, 2016, at 03:36, Sean Lakewrote: > > I just tried using dpkg to remove wxmaxima-mac, and this is what it said: > > sudo dpkg --purge wxmaxima-mac > /sw/bin/dpkg: error processing wxmaxima-mac (--purge): > Package is in a very bad inconsistent state - you should > reinstall it before attempting a removal. > Errors were encountered while processing: > wxmaxima-mac > > So, I give up. I'm going to erase the Fink install and start from scratch, > making sure to remove that directory in /Applications/ > > Could you add a configuration option to keep fink confined to its install > dir? I like the convenience of being able to uninstall by erasing /sw/. If > that's not possible, then some sort of "uninstall all of fink" command that > handles all of the package removal scripts automatically would be helpful. > > Thanks, > Sean Lake > No, we probably won’t be doing a configuration option like that. /Applications/Fink contains just a bunch of symlinks to the real app bundle folders in /sw/Applications, to make it easier for users to run those. At best, having a dangling symlink in /Applications/Fink will prevent a package from being installed because the post install scripts won’t overwrite such a symlink. Your errors were with _real_ files in /sw: "rm: /sw/Applications/wxMaxima.app/Contents/PkgInfo: No such file or directory" dpkg: warning - old pre-removal script returned error exit status 1 I’m not sure what caused that, since the current pre-removal script for wxmaxima* looks like: $ cat /sw/var/lib/dpkg/info/wxmaxima-mac.prerm #!/bin/sh # prerm script for package wxmaxima-mac, auto-created by fink set -e # generated from InfoDocs directive if [ -f /sw/share/info/dir ]; then /sw/sbin/install-info --infodir=/sw/share/info --remove wxmaxima.info fi exit 0 I.e., no mention of /sw/Applications/wxMaxima.app/Contents/PkgInfo. I’d have been curious to see what the contents of yours was, but I guess it’s too late now. Removing the “set -e” declaration in one of these scripts can be a way around stuck installs/removes, because the script won’t throw an error when a command fails. A “remove all of Fink” script would be “sudo rm -rf /sw /Applications/Fink”. -- Alexander Hansen, Ph.D. Fink User Liaison -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e ___ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Failed: can't install package wxmaxima-mac-16.04.0-1
I just tried using dpkg to remove wxmaxima-mac, and this is what it said: sudo dpkg --purge wxmaxima-mac /sw/bin/dpkg: error processing wxmaxima-mac (--purge): Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Errors were encountered while processing: wxmaxima-mac So, I give up. I'm going to erase the Fink install and start from scratch, making sure to remove that directory in /Applications/ Could you add a configuration option to keep fink confined to its install dir? I like the convenience of being able to uninstall by erasing /sw/. If that's not possible, then some sort of "uninstall all of fink" command that handles all of the package removal scripts automatically would be helpful. Thanks, Sean Lake > On Jun 9, 2016, at 21:41, Sean Lakewrote: > > Hello all, > > The installation of wxmaxima-mac is failing on one of my systems. Here's the > error text: > > sudo fink reinstall wxmaxima-mac > Information about 9367 packages read in 1 seconds. > The following package will be reinstalled: > wxmaxima-mac > Reading buildlock packages... > /sw/bin/dpkg-lockwait -i > /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/wxmaxima-mac_16.04.0-1_darwin-x86_64.deb > (Reading database ... 220679 files and directories currently installed.) > Preparing to replace wxmaxima-mac 16.04.0-1 (using > .../wxmaxima-mac_16.04.0-1_darwin-x86_64.deb) ... > install-info(wxmaxima.info): no entry for file `wxmaxima'. > rm: /sw/Applications/wxMaxima.app/Contents/PkgInfo: No such file or directory > dpkg: warning - old pre-removal script returned error exit status 1 > dpkg - trying script from the new package instead ... > install-info(wxmaxima.info): no entry for file `wxmaxima'. > rm: /sw/Applications/wxMaxima.app/Contents/PkgInfo: No such file or directory > /sw/bin/dpkg: error processing > /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/wxmaxima-mac_16.04.0-1_darwin-x86_64.deb > (--install): > subprocess new pre-removal script returned error exit status 1 > * wxMaxima: (wxMaxima). A gui for a computer algebra system. > install-info(/sw/share/info/wxmaxima.info): replacing existing dir entry for > `wxMaxima' > Errors were encountered while processing: > /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/wxmaxima-mac_16.04.0-1_darwin-x86_64.deb > ### execution of /sw/bin/dpkg-lockwait failed, exit code 1 > Failed: can't install package wxmaxima-mac-16.04.0-1 > > I've tried various combinations of purging, rebuilding, installing, etc the > package, but nothing works. I've even tried deleting the file that gets left > sitting around, the symlink at /Applications/Fink/wxMaxima.app. The current > status of the package is: > > Status: install reinstreq half-configured > > The output of fink --version is: > Package manager version: 0.39.3 > Distribution version: selfupdate-rsync Thu Jun 9 21:12:45 2016, 10.10, x86_64 > Trees: local/main stable/main > > I think the origin of this problem lies in the fact that when software > against which I build gets updated (eg XCode, X11), I delete the entire /sw/ > tree and start from scratch. The problem is that I forget to delete > /Applications/Fink, too, and that causes an install failure for wxmaxima-mac. > On another system, I was able to delete the detritus in /Applications/, and > the install worked fine. I'm not sure why that step is failing on this other > machine. > > Thanks, > Sean Lake -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e ___ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users
[Fink-users] Failed: can't install package wxmaxima-mac-16.04.0-1
Hello all, The installation of wxmaxima-mac is failing on one of my systems. Here's the error text: sudo fink reinstall wxmaxima-mac Information about 9367 packages read in 1 seconds. The following package will be reinstalled: wxmaxima-mac Reading buildlock packages... /sw/bin/dpkg-lockwait -i /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/wxmaxima-mac_16.04.0-1_darwin-x86_64.deb (Reading database ... 220679 files and directories currently installed.) Preparing to replace wxmaxima-mac 16.04.0-1 (using .../wxmaxima-mac_16.04.0-1_darwin-x86_64.deb) ... install-info(wxmaxima.info): no entry for file `wxmaxima'. rm: /sw/Applications/wxMaxima.app/Contents/PkgInfo: No such file or directory dpkg: warning - old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... install-info(wxmaxima.info): no entry for file `wxmaxima'. rm: /sw/Applications/wxMaxima.app/Contents/PkgInfo: No such file or directory /sw/bin/dpkg: error processing /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/wxmaxima-mac_16.04.0-1_darwin-x86_64.deb (--install): subprocess new pre-removal script returned error exit status 1 * wxMaxima: (wxMaxima). A gui for a computer algebra system. install-info(/sw/share/info/wxmaxima.info): replacing existing dir entry for `wxMaxima' Errors were encountered while processing: /sw/fink/dists/stable/main/binary-darwin-x86_64/sci/wxmaxima-mac_16.04.0-1_darwin-x86_64.deb ### execution of /sw/bin/dpkg-lockwait failed, exit code 1 Failed: can't install package wxmaxima-mac-16.04.0-1 I've tried various combinations of purging, rebuilding, installing, etc the package, but nothing works. I've even tried deleting the file that gets left sitting around, the symlink at /Applications/Fink/wxMaxima.app. The current status of the package is: Status: install reinstreq half-configured The output of fink --version is: Package manager version: 0.39.3 Distribution version: selfupdate-rsync Thu Jun 9 21:12:45 2016, 10.10, x86_64 Trees: local/main stable/main I think the origin of this problem lies in the fact that when software against which I build gets updated (eg XCode, X11), I delete the entire /sw/ tree and start from scratch. The problem is that I forget to delete /Applications/Fink, too, and that causes an install failure for wxmaxima-mac. On another system, I was able to delete the detritus in /Applications/, and the install worked fine. I'm not sure why that step is failing on this other machine. Thanks, Sean Lake -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e ___ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users