Re: How to do with the offensive ghc-text?
Kow KURODA <[email protected]> Tue, 10 Mar 2020 10:19:49 +0900
| Newsgroups | gmane.os.apple.fink.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Hanspeter, I tried `fink reinstall ghc-text` and then `fink remove ghc-text` again. And it ended successfully. It was unsuccessful when I did it before, but it ended happily for whatever reason. Thanks for your help. I really appreciate it! Kow > On Mar 7, 2020, at 19:48, Hanspeter Niederstrasser <[email protected]> wrote: > > On 3/6/20 12:31 AM, Kow KURODA wrote: >>> On Mar 6, 2020, at 14:31, Hanspeter Niederstrasser <[email protected]> wrote: >>> >>> On 3/5/20 9:58 PM, Kow KURODA wrote: >>>> Hi Hanspeter, >>>>> On Mar 6, 2020, at 12:39, Hanspeter Niederstrasser <[email protected]> wrote: >>>>> >>>>> On 3/5/20 9:27 PM, Kow KURODA wrote: >>>>>> Hi Hanspeter, >>>>>> Thanks for your help. I appreciate it. >>>>>> My gcc7 issue was solved. >>>>>>> Regarding ghc-text: >>>>>>> >>>>>>> Its PostInstScript (/sw/var/lib/dpkg/info/ghc-text.postinst) runs the script "/sw/share/doc/ghc-text/register.sh". >>>>>>> And its PreRmScript (/sw/var/lib/dpkg/info/ghc-text.prerm) runs the script "/sw/share/doc/ghc-text/unregister.sh --force" >>>>>>> >>>>>>> But you're getting the error that 'register.sh' and 'unregister.sh' do not exist. >>>>>>> >>>>>>> Are register.sh and unregister.sh present in the output of this command (one line)? >>>>>>> >>>>>>> dpkg-deb -c /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86_64.deb >>>>>> This returned the following: >>>>>>> $ dpkg-deb -c /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86_64.deb >>>>>>> /sw/bin/dpkg-deb: failed to read archive `/sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86_64.deb': No such file or directory >>>>> >>>>> Do `ls -l /sw/var/cache/apt/archives/ghc-text* /sw/fink/debs/ghc-text*` >>>> This command gave me the following, indicating I have one: >>>> ls: /sw/fink/debs/ghc-text*: No such file or directory >>>> -rw-r--r-- 1 root admin 2294278 Jun 29 2018 /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86%5f64.deb >>>>> >>>>> If you do get an existing deb out of either of those 2 locations, then run the 'dpkg-deb -c' command on it to look for 'register.sh' and 'unregister.sh' >>>> So, I ran the following: >>>> $ dpkg-deb -c /sw/var/cache/apt/archives/ghc-text_1.2.1.3-2_darwin-x86%5f64.deb | grep register >>>> -rwxr-xr-x root/admin 4007 2018-06-29 02:42 ./sw/share/doc/ghc-text/register.sh >>>> -rw-r--r-- root/admin 277 2018-06-29 02:42 ./sw/share/doc/ghc-text/unregister.sh >>>> This shows I have both register.sh and unregister.sh >>>> I then ran `agt-get -f install` and got the following: >>>> [snipped] >>>> Selecting previously deselected package ghc-text. >>>> 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 >>>> Reading package info from stdin ... done. >>>> text-1.2.1.3: dependency "binary-0.7.6.1-059990c340d5b3e45b98a0b8ec2aec57" doesn't exist (use --force to override) >>>> 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) >>>> I'm wondering why I get "text-1.2.1.3: dependency ..." instead of "ghc-text-1.2.1.3: dependency ...". >>> >>> That's the difference between the Fink package name and the ghc module. >>> >>> 1) ghc-text is missing a bunch of deps. >>> Make sure you have ghc-array, ghc-deepseq-generics, ghc-primitive, ghc-binary installed. Try ghc-binary first, and then try `fink reinstall ghc-text`. >> My Fink installation lacks ghc-array. So, I installed ghc-{deepseq-generics,primitive,binary}. >> It was successful. And then I reinstalled ghc-text by issuing `fink reinstall ghc-text` and >> got the following: >> Information about 13426 packages read in 2 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 >> Selecting previously deselected package ghc-text. >> (Reading database ... 244545 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 (--install): >> subprocess new pre-removal script returned error exit status 1 >> Reading package info from stdin ... done. >> 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 > > I managed to get my Fink system into the same error after running `fink install ghc-text` like you did. This worked to get ghc-text cleanly installed: > > fink list ghc-text (now shows 'i' at the front) > fink remove ghc-text (uninstalls without any errors) > fink install ghc-text (installs cleanly without any errors) > > Hanspeter _______________________________________________ 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