[tlu] Possible bug with package removal
Bruno Voisin
bvoisin at icloud.com
Wed Mar 10 06:49:39 CET 2021
Twice now I experienced the same problem with package removal: on ARM Mac with macOS Big Sur, using the pretest version of MacTeX 2021 (and TeX Live Utility 1.47), I had installed dvips.x86_64-darwinlegacy and tex.x86_64-darwinlegacy for testing purposes. I then attempted to remove them using TLU's Remove button.
Everything seemed to work well on the tlmgr side, but TLU brought up a warning about failed removal. Here's the log
2021-03-04 14:01:31 +0000 Notice -[TLMMainWindowController removePackagesWithNames:force:][1392] Beginning removal of
(
"dvips.x86_64-darwinlegacy"
)
2021-03-04 14:01:31 +0000 Notice -[TLMAuthorizedOperation main][1392] Checking code signature before running tlu_ipctask as root…
2021-03-04 14:01:31 +0000 Notice /usr/bin/codesign[1392] /Applications/TeX/TeX Live Utility.app/Contents/MacOS/tlu_ipctask: valid on disk
/Applications/TeX/TeX Live Utility.app/Contents/MacOS/tlu_ipctask: satisfies its Designated Requirement
2021-03-04 14:01:31 +0000 Notice -[TLMAuthorizedOperation main][1392] Signature was valid, okay to run tlu_ipctask
2021-03-04 14:01:39 +0000 Notice -[TLMAuthorizedOperation main][1392] Invoking privileged task via AuthorizationExecuteWithPrivileges
2021-03-04 14:01:39 +0000 Notice tlu_ipctask[1656] dropped privileges to user nobody
2021-03-04 14:01:40 +0000 Notice -[TLMAuthorizedOperation setWrapperPID:][1392] tlu_ipctask checking in: tlu_ipctask pid = 1656
2021-03-04 14:01:40 +0000 Notice -[TLMAuthorizedOperation setUnderlyingPID:][1392] tlu_ipctask checking in: pid = 1657 (/Library/TeX/texbin/tlmgr remove dvips.x86_64-darwinlegacy)
2021-03-04 14:01:40 +0000 Notice tlu_ipctask[1656] tlu_ipctask: child HOME = '/var/root'
2021-03-04 14:01:40 +0000 Notice tlu_ipctask[1656] tlu_ipctask: current HOME = '/var/empty'
2021-03-04 14:01:41 +0000 Notice tlu_ipctask[1656] tlmgr: saving backups to /usr/local/texlive/2021/tlpkg/backups
2021-03-04 14:01:41 +0000 Notice tlu_ipctask[1656] [1/0, ??:??/??:??] remove: dvips.x86_64-darwinlegacy
2021-03-04 14:01:41 +0000 Notice tlu_ipctask[1656] tlmgr: ultimately removed these packages: dvips.x86_64-darwinlegacy
2021-03-04 14:01:42 +0000 Notice tlu_ipctask[1656] tlmgr: package log updated: /usr/local/texlive/2021/texmf-var/web2c/tlmgr.log
2021-03-04 14:01:42 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][1392] kqueue noted that pid 1657 exited (/Library/TeX/texbin/tlmgr remove dvips.x86_64-darwinlegacy)
2021-03-04 14:01:42 +0000 Notice tlu_ipctask[1656] child process pid = 1657 exited
2021-03-04 14:01:43 +0000 Notice tlu_ipctask[1656] exit status of pid = 1657 was 0
2021-03-04 14:01:43 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][1392] waitpid returned 1656, WIFEXITED(0) = 1, errno = 0 (No error)
2021-03-04 14:01:43 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][1392] kqueue noted that tlu_ipctask (pid = 1656) exited with status 0
2021-03-04 14:01:43 +0000 Notice -[TLMRemoveOperation main][1392] ERROR: failed to remove packages {(
"dvips.x86_64-darwinlegacy"
)} (requested removal of (
"dvips.x86_64-darwinlegacy"
))
and a screenshot is attached (from another attempt, the log is for dvips.x86_64-darwinlegacy, while the screenshot is for tex.x86_64-darwinlegacy after removing the directory bin/x86_64-darwinlegacy manually hence the message about missing dir).
Two indications that things worked OK on the tlmgr side and he problem seems to be with TLU:
- /usr/local/texlive/2021/texmf-var/web2c/tlmgr.log contains
[Wed Mar 3 10:27:35 2021] install: tex.x86_64-darwinlegacy
[Wed Mar 3 10:29:05 2021] install: dvips.x86_64-darwinlegacy
[Thu Mar 4 15:01:41 2021] remove: dvips.x86_64-darwinlegacy
[Wed Mar 10 06:06:41 2021] remove: tex.x86_64-darwinlegacy
- Quitting TLU after the "failed" removal and starting it up again, the removed package is marked as "Not installed" and is no longer mentioned in /usr/local/texlive/2021/tlpkg/texlive.tlpdb.
Bruno Voisin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tlu/attachments/20210310/ca5e40a9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d?e?cran 2021-03-10 a? 06.06.51.png
Type: image/png
Size: 1672002 bytes
Desc: not available
URL: <https://tug.org/pipermail/tlu/attachments/20210310/ca5e40a9/attachment-0001.png>
More information about the tlu
mailing list.