Debian 11へのアップグレード後の問題点への対応 [Debian]
致命的なエラーは発生しなかったが、数個のパッケージで問題が発生した。
以下は、上記の発生事象と対処方法をまとめたものである。
1. Emacs 27.1 の起動エラー
(1) 発生事象
Emacs 27.1 の起動時にエラが発生する。
このため、~/.emacs に設定している '(shell)' が実行されない。
[エラーメッセージ] Symbol's function definition is void: process-kill-without-query To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the '--debug-init' option to view a complete error backtrace.
(2) 対処方法
~/.emacs に、下記の設定を追加する。
;; add function (Emacs-27 or later) (when (>= emacs-major-version 27) (defun process-kill-without-query (process &optional flag) (set-process-query-on-exit-flag process nil) t))
(補足)
obsolete になっていた関数が、本バージョンで削除されたとのこと。
(cf. https://twitter.com/shg/status/1295166707594452993)
2. iptables 1.8.7-1 の起動エラー
(1) 発生事象
iptables の起動時にエラーが発生する。
[エラーメッセージ] iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: \ Invalid argument
(2) 対処方法
Debian 10 の iptables 1.8.2 にバージョンダウンする。
(a) パッケージのダウンロード
iptables_1.8.2-4_i386.deb libip4tc0_1.8.2-4_i386.deb libip6tc0_1.8.2-4_i386.deb libiptc0_1.8.2-4_i386.deb libxtables12_1.8.2-4_i386.deb
・https://packages.debian.org/ja/ にアクセス
・[パッケージディレクトリを検索] の Distribution: で buster を選択
・キーワードにパッケージ名を入力し、検索を実行
・検索されたパッケージをダウンロードし、/tmp/iptables-1.8.2/ に保存
(b) パッケージのバージョンダウン
# cd /tmp/iptables-1.8.2 # dpkg -i *.deb
3. Apache 2.4.48 の起動エラー
(1) 発生事象
Apache の起動時にエラーが発生する。
[エラーメッセージ] Function not implemented: AH00141: Could not initialize random number \ generator
(2) 対処方法
Debian 10 の Apache 2.4.38 にバージョンダウンする。
(a) パッケージのダウンロード
apache2-bin_2.4.38-3+deb10u5_i386.deb apache2-data_2.4.38-3+deb10u5_all.deb apache2-utils_2.4.38-3+deb10u5_i386.deb apache2_2.4.38-3+deb10u5_i386.deb libapr1_1.6.5-1+b1_i386.deb libaprutil1-dbd-sqlite3_1.6.1-4_i386.deb libaprutil1-ldap_1.6.1-4_i386.deb libaprutil1_1.6.1-4_i386.deb
・http://packages.debian.org/ja/ の [パッケージディレクトリを検索] を使用
・検索されたパッケージをダウンロードし、/tmp/apache-2.4.38/ に保存
(b) パッケージのバージョンダウン
# cd /tmp/apache-2.4.38 # dpkg -i *.deb
4. halt-local.service が機能しない
(1) 発生事象
/lib/systemd/system/halt-local.service が機能しない。
このため、shutdown 時に /usr/sbin/halt.local が実行されない。
(補足)
・パッケージのバージョン: systemd 247.3-6
・halt-local.service の状態には問題はない。
# systemctl status halt-local.service * halt-local.service - /usr/sbin/halt.local Compatibility Loaded: loaded (/lib/systemd/system/halt-local.service; static) Active: inactive (dead)
・同じ Unit ファイルを使用している Debian 10、CentOS 7 では、正常に機能する。
(2) 対処方法
取り敢えずは、下記の手順を実施する。
(a) /lib/systemd/system/halt-local.service の編集
# diff halt-local.service halt-local.service.org 21,23d20 < < [Install] < WantedBy=shutdown.target
(b) 変更内容の反映
# systemctl enable halt-local.service
・/etc/systemd/system/shutdown.target.wants/halt-local.server が作成される。
(/lib/systemd/system/halt-local.service へのシンボリック・リンク)
・systemctl is-enabled halt-local の実行結果が変わる。
(新) enabled
(旧) static
コメント 0