無法在 Ubuntu 22.04 中重新安裝 Couchbase

無法在 Ubuntu 22.04 中重新安裝 Couchbase

我無法重新安裝 Couchbase (couchbase-server-community_7.2.0-linux_amd64.deb)。看來卸載它沒有正確完成。我已經刪除了 dpkg 的所有資料夾和 tmp 文件,但仍然無法重新安裝它。請幫我重新安裝它。刪除作業系統並重新安裝可以,但這不是最佳實踐)

系統:Ubuntu 22.04。 CB:couchbase-server-community_7.2.0-linux_amd64.deb 和 couchbase-release-1.0-amd64.deb

我遵循了 Couchbase 文件中給出的所有步驟。

https://docs.couchbase.com/server/current/install/ubuntu-debian-install.html

刪除了臨時檔案並重新啟動了我的系統,但沒有成功。

這些是錯誤:

machine@machine-System-Product-Name:~$ sudo dpkg -i ./couchbase-server-community_7.2.0-linux_amd64.deb
[sudo] password for machine: 
(Reading database ... 207604 files and directories currently installed.)
Preparing to unpack .../couchbase-server-community_7.2.0-linux_amd64.deb ...
/var/lib/dpkg/info/couchbase-server-community.prerm: 5: /opt/couchbase/bin/install/systemd-ctl: not found
dpkg: warning: old couchbase-server-community package pre-removal script subprocess returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 5: /opt/couchbase/bin/install/systemd-ctl: not found
dpkg: error processing archive ./couchbase-server-community_7.2.0-linux_amd64.deb (--install):
new couchbase-server-community package pre-removal script subprocess returned error exit status 127
Errors were encountered while processing:
./couchbase-server-community_7.2.0-linux_amd64.deb
machine@machine-System-Product-Name:~$
machine@machine-System-Product-Name:~$ sudo dpkg -i ./couchbase-release-1.0-amd64.deb
dpkg: error: cannot access archive './couchbase-release-1.0-amd64.deb': No such file or directory
machine@machine-System-Product-Name:~$ sudo dpkg -i ./couchbase-release-1.0-6-amd64.deb
(Reading database ... 207604 files and directories currently installed.)
Preparing to unpack .../couchbase-release-1.0-6-amd64.deb ...
Supported platforms are: Debian/wheezy,jessie,stretch and Ubuntu/precise,trusty,xenial,bionic
dpkg: error processing archive ./couchbase-release-1.0-6-amd64.deb (--install):
new couchbase-release package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
./couchbase-release-1.0-6-amd64.deb
machine@machine-System-Product-Name:~$

相關內容