削除しようとすると、次のエラーが発生しますmsodbcsql17
。
$ sudo dpkg --remove msodbcsql17
(Reading database ... 198868 files and directories currently installed.)
Removing msodbcsql17 (17.9.1.1-1) ...
dpkg: error processing package msodbcsql17 (--remove):
installed msodbcsql17 package post-removal script subprocess returned error exit status 127
Errors were encountered while processing:
msodbcsql17
私も次のことを試しましたapt remove
。
sudo apt remove msodbcsql17
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mysql-shell : Depends: libffi7 (>= 3.3~20180313) but it is not going to be installed
Depends: libpython3.8 (>= 3.8.2) but it is not installable
Depends: libssl1.1 (>= 1.1.1) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
返品:
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
msodbcsql17 mysql-shell
0 upgraded, 0 newly installed, 2 to remove and 16 not upgraded.
2 not fully installed or removed.
After this operation, 127 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 198874 files and directories currently installed.)
Removing msodbcsql17 (17.9.1.1-1) ...
dpkg: error processing package msodbcsql17 (--remove):
installed msodbcsql17 package post-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
Errors were encountered while processing:
msodbcsql17
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
それを削除する方法についてのアイデアはありますか?
答え1
私も同じ問題があると思います。私の場合、システムにインストールされていないmsodbcsql17
パッケージをアンインストールした後にスクリプトが/var/lib/dpkg/info/msodbcsql17.postrm
呼び出されるのは問題でした。odbcinst
私に役立つのは次のとおりです。
/var/lib/dpkg/info/msodbcsql17.postrm
odbcinst
最初とでdb_purge
始まる2行をコメントアウトしますremove
。msodbcsql17
次へ削除sudo apt-get remove msodbcsql17
- 設置
odbcinst
とsudo apt-get install odbcinst
- 削除後にスクリプトを再実行してください。
sudo /var/lib/dpkg/info/msodbcsql17.postrm remove
odbcinst
で削除sudo apt-get remove odbcinst