sa-compile: "re2c -i -b -o Scanner1.c Scanner1.re" コマンド失敗: 終了 0

sa-compile:

Debian 10.9 サーバーにいくつかのソフトウェアをインストールすると、次のエラーが発生します。

$ sudo apt-get install fail2ban

... [cut]

Running sa-compile (may take a long time)
command 're2c -i -b -o scanner1.c scanner1.re' failed: exit 0
dpkg: error processing package sa-compile (--configure):
 installed sa-compile package post-installation script subprocess returned error exit status 12
Setting up fail2ban (0.10.2-2.1)...

... [cut]

Errors were encountered while processing:
 sa-compile
E: Sub-process /usr/bin/dpkg returned an error code (1)

spamassassin以前に(依存sa-compile関係)をインストールしました。これは私を混乱させてdpkg-reconfigureを試しました:

$ sudo dpkg-reconfigure sa-compile
/usr/sbin/dpkg-reconfigure: sa-compile is broken or not fully installed

パッケージのインストールは--reinstallまったく必要ありません。これを使用すると、--fix-brokenおなじみのエラーが返されます。

$ sudo apt-get install --fix-broken sa-compile
Setting up sa-compile (3.4.2-1+deb10u3) ...
Running sa-compile (may take a long time)
command 're2c -i -b -o scanner1.c scanner1.re' failed: exit 0
dpkg: error processing package sa-compile (--configure):
 installed sa-compile package post-installation script subprocess returned error exit status 12
Errors were encountered while processing:
 sa-compile
E: Sub-process /usr/bin/dpkg returned an error code (1)

この問題をどのように解決できますか?

ベストアンサー1

終了コード12は通常ENOMEM(ラップされていない場合)なので、saコンパイルを完了するのに十分なメモリがないようです。まず、何かを停止するか(メモリリークまたはメモリの大量を消費する)、再起動するか、ホスト全体を再起動してからやり直してください。

おすすめ記事