LoginSignup
8
7

More than 5 years have passed since last update.

パッケージの削除に失敗する場合 --noscripts を指定すればよい

Posted at

スクリプトのエラーが出て削除出来ない。

# yum remove leafnode
読み込んだプラグイン:etckeeper, fastestmirror
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ leafnode.x86_64 0:1.11.8-13.el7 を 削除
--> 依存性解決を終了しました。

依存性を解決しました

====================================================================================
 Package            アーキテクチャー バージョン               リポジトリー     容量
====================================================================================
削除中:
 leafnode           x86_64           1.11.8-13.el7            @epel           1.2 M

トランザクションの要約
====================================================================================
削除  1 パッケージ

インストール容量: 1.2 M
上記の処理を行います。よろしいでしょうか? [y/N]y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
etckeeper: pre transaction commit
/var/tmp/rpm-tmp.MTz6qA: 行 4: $'\302\240:': コマンドが見つかりません
エラー: %preun(leafnode-1.11.8-13.el7.x86_64) スクリプトの実行に失敗しました。終了ステータス 127
Error in PREUN scriptlet in rpm package leafnode-1.11.8-13.el7.x86_64
etckeeper: post transaction commit
  検証中                  : leafnode-1.11.8-13.el7.x86_64                       1/1

失敗:
  leafnode.x86_64 0:1.11.8-13.el7

完了しました!

完了しました!じゃねえよ :anger:

--noscripts を指定すればよい。

# rpm -e leafnode --noscripts
8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7