Re: how to remove ghc-text 1.2.1.3-2
Kow KURODA <[email protected]> Thu, 5 Mar 2020 09:17:22 +0900
| Newsgroups | gmane.os.apple.fink.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, Thanks for your suggstion. I tried to remove ghc-text by following your suggestion and encoutered another mess. I can't figure out when this chain of mess ends, so I am thinking of uninstall Fink after copying the entire /sw to another volume. Thanks for your input anyway. Do you want to continue? [Y/n] (Reading database ... 333466 files and directories currently installed.) Preparing to replace ghc-text 1.2.1.3-2 (using .../ghc-text_1.2.1.3-2_darwin-x86%5f64.deb) ... ghc-pkg: cannot find package text-1.2.1.3 dpkg: warning - old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... ghc-pkg: cannot find package text-1.2.1.3 /sw/bin/dpkg: error processing /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86%5f64.deb (--unpack): subprocess new pre-removal script returned error exit status 1 /sw/var/lib/dpkg/info/ghc-text.postinst: line 6: /sw/share/doc/ghc-text/register.sh: No such file or directory dpkg: error while cleaning up: subprocess post-installation script returned error exit status 1 Errors were encountered while processing: /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86%5f64.deb E: Sub-process /sw/bin/dpkg returned an error code (1) ### execution of /sw/bin/apt-get-lockwait failed, exit code 100 Failed: can't remove package texlive-texmf > On Mar 5, 2020, at 7:23, Yoshihiko Baba <[email protected]> wrote: > > Prof. Kuroda! > > Below is not a good solution but a workaround. > > The cause of the trouble is you do not have unregister.sh in /sw/share/doc/ghc-text. So, create the file /sw/share/doc/ghc-text/unregister.sh as: > > #!/bin/sh > export PATH='/sw/var/lib/fink/path-prefix-libcxx:/sw/var/lib/fink/path-prefix-clang:/sw/bin:/sw/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/opt/X11/bin' > '/sw/bin/ghc-pkg' 'unregister' '--global' 'text-1.2.1.3' "$@" > > > Alternatively, you can remove /sw and reinstall Fink. But this is time-wasting. > > > BABA Yoshihiko > > >> 2020/03/04 21:19、Kow KURODA <[email protected]>のメール: >> >> Dear Fink develpers, >> >> I'm having a mess with ghc-text, whose installation turned out to incomplete, >> but I can't remove at all. And because of this, I can't other packages it depends on. >> This packages seems to have no maintainer. So, I cannot help posting here. >> Could anyone here fix this? >> >> I'm still on Mac OS X 10.13.6, High Sierra. >> >> Anyway, here is how it refuse to be removed and (re)installed. >> >> ====================== >> >> $ fink reinstall ghc-text >> Information about 13436 packages read in 1 seconds. >> The following package will be reinstalled: >> ghc-text >> Reading buildlock packages... >> /sw/bin/dpkg-lockwait -i /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86%5f64.deb >> (Reading database ... 333466 files and directories currently installed.) >> Preparing to replace ghc-text 1.2.1.3-2 (using .../ghc-text_1.2.1.3-2_darwin-x86%5f64.deb) ... >> sh: /sw/share/doc/ghc-text/unregister.sh: No such file or directory >> dpkg: warning - old pre-removal script returned error exit status 127 >> dpkg - trying script from the new package instead ... >> sh: /sw/share/doc/ghc-text/unregister.sh: No such file or directory >> /sw/bin/dpkg: error processing /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86%5f64.deb (--install): >> subprocess new pre-removal script returned error exit status 127 >> /sw/var/lib/dpkg/info/ghc-text.postinst: line 6: /sw/share/doc/ghc-text/register.sh: No such file or directory >> dpkg: error while cleaning up: >> subprocess post-installation script returned error exit status 1 >> Errors were encountered while processing: >> /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86%5f64.deb >> ### execution of /sw/bin/dpkg-lockwait failed, exit code 1 >> Failed: can't install package ghc-text-1.2.1.3-2 >> >> =============== >> >> >> $ sudo dpkg -r ghc-text >> /sw/bin/dpkg: error processing ghc-text (--remove): >> Package is in a very bad inconsistent state - you should >> reinstall it before attempting a removal. >> Errors were encountered while processing: >> ghc-text >> >> =============== >> >> $ sudo apt-get -f install >> Reading Package Lists... Done >> Building Dependency Tree... Done >> The following extra packages will be installed: >> ghc-text >> 1 packages upgraded, 0 newly installed, 0 to remove and 402 not upgraded. >> 2 packages not fully installed or removed. >> Need to get 0B/2294kB of archives. After unpacking 0B will be used. >> Do you want to continue? [Y/n] >> Selecting previously deselected package ghc-text. >> (Reading database ... 333466 files and directories currently installed.) >> Preparing to replace ghc-text 1.2.1.3-2 (using .../ghc-text_1.2.1.3-2_darwin-x86%5f64.deb) ... >> sh: /sw/share/doc/ghc-text/unregister.sh: No such file or directory >> dpkg: warning - old pre-removal script returned error exit status 127 >> dpkg - trying script from the new package instead ... >> sh: /sw/share/doc/ghc-text/unregister.sh: No such file or directory >> /sw/bin/dpkg: error processing /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86%5f64.deb (--unpack): >> subprocess new pre-removal script returned error exit status 127 >> /sw/var/lib/dpkg/info/ghc-text.postinst: line 6: /sw/share/doc/ghc-text/register.sh: No such file or directory >> dpkg: error while cleaning up: >> subprocess post-installation script returned error exit status 1 >> Errors were encountered while processing: >> /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86%5f64.deb >> E: Sub-process /sw/bin/dpkg returned an error code (1) >> >> >> >> _______________________________________________ >> Fink-devel mailing list >> [email protected] >> List archive: >> https://sourceforge.net/p/fink/mailman/fink-devel >> Subscription management: >> https://lists.sourceforge.net/lists/listinfo/fink-devel > _______________________________________________ Fink-devel mailing list [email protected] List archive: https://sourceforge.net/p/fink/mailman/fink-devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel