Ubuntu22.04运行sudo dpkg --configure -a后无响应的解决方案
在调研OpenDayLight时,由于openJDK的版本问题需要升级。但是在运行apt install的时候dpkg提示需要运行sudo dpkg --configure -a
。运行到Pregenerating ConTeXt MarkIV format. This may take some time...
这一步后,尽管已经等了数小时之久,但也毫无反应。
经询问ChatGPT无果后,于今日更改了搜索方式后获得了解决方案,原贴在开头,下面是我的复述。
解决方法很简单,在出现Pregenerating ConTeXt MarkIV format. This may take some time...
后,按住回车直到出现done
即可,后续流程也会自动进行。
问题出现的原因在原贴推测为:
The point is that the script luatex --ini --lua=/usr/share/texmf/tex/context/base/mkiv/luat-cod.lua
tries to read something from 0th fd which is opened for /dev/pts/1
. Maybe it tries to ask some question and waits for an answer in interactive manner.
很好解决方案,令我的大脑旋转。