我安裝了 Ubuntu 22.04 和 R。現在我正在嘗試安裝R Studio。
下載后我嘗試安裝
sudo gdebi rstudio-2022.02.1-461-amd64.deb
但是我收到了訊息
Dependency is not satisfiable: libssl1.0.0|libssl1.0.2|libssl1.1
有沒有辦法解決它?
謝謝
uj5u.com熱心網友回復:
編輯#1:我通過訪問https://packages.debian.org/bullseye/amd64/libssl1.1/download并從那里安裝“libssl1.1”解決了依賴問題。不幸的是,我遇到了另一個問題;一旦我解決了它,或者我已經放棄嘗試解決它,我會發布另一個編輯。
編輯#2:我通過運行rstudio --no-sandbox打開 RStudio 解決了上述問題。
我的原始答案:
這不是一個解決方案,但我有同樣的問題。我也錯過了“libclang-dev”和“libpq5”,但我能夠通過sudo apt install. 但是,我無法獲得“libssl1.1”:
Package libssl1.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl1.1' has no installation candidate
我也嘗試了“libssl1.0.2”和“libssl1.0.0”,但得到了相同的結果。在做了一些研究并嘗試了不同的東西之后,我發現我有'libssl3';我懷疑擁有更新版本的“libssl”與該問題有關,但我不是這方面的專家,據我所知,這可能只是一個愚蠢的猜測。
另外,當我運行時sudo apt install -f ./rstudio-2022.02.1-461-amd64.deb,我得到:
The following packages have unmet dependencies.
rstudio : Depends: libssl1.0.0 but it is not installable or
libssl1.0.2 but it is not installable or
libssl1.1 but it is not installable
E: Unable to correct problems, you have held broken packages.
我一開始跑了sudo dpkg -i rstudio-2022.02.1-461-amd64.deb,后來我不得不跑sudo apt --fix-broken install;在那之后,我嘗試并成功安裝了另外兩個缺少的軟體包。是的,我基本上不知道自己在做什么,我只是嘗試通過反復試驗來解決這些技術問題,盡管我幾乎從來沒有像現在這樣被難住過。
uj5u.com熱心網友回復:
顯然,我沒有足夠好的聲譽來發表評論,所以發布一個“答案”。我已經在 22.04 上毫無問題地安裝了 RStudio(嗯,并非沒有問題——我必須添加一些啟動引數以使其在 Wayland 上正確加載)。以下是 APT 報告的可供我使用的內容:
$ apt-cache search libssl | grep libssl1
libssl1.1 - Secure Sockets Layer toolkit - shared libraries
它似乎安裝好了:
$ dpkg -s libssl1.1
Package: libssl1.1
Status: install ok installed
Priority: important
Section: libs
Installed-Size: 4057
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Multi-Arch: same
Source: openssl
Version: 1.1.1l-1ubuntu1.2
Depends: libc6 (>= 2.34), debconf (>= 0.5) | debconf-2.0
Breaks: isync (<< 1.3.0-2), lighttpd (<< 1.4.49-2), python-boto (<< 2.44.0-1.1), python-httplib2 (<< 0.11.3-1), python-imaplib2 (<< 2.57-5), python3-boto (<< 2.44.0-1.1), python3-imaplib2 (<< 2.57-5)
Description: Secure Sockets Layer toolkit - shared libraries
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It provides the libssl and libcrypto shared libraries.
Homepage: https://www.openssl.org/
Original-Maintainer: Debian OpenSSL Team <[email protected]>
你能確認你列出了相同的候選包嗎?也許您的 APT 源沒有正確更新?這是我/etc/apt/sources.list檔案中當前的內容:
deb http://nz.archive.ubuntu.com/ubuntu/ jammy main restricted
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
deb http://nz.archive.ubuntu.com/ubuntu/ jammy universe
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-updates universe
deb http://nz.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
如果你的也是一樣,也許你有一些東西/etc/apt/sources.list.d應該在升級時被禁用,而不是?
uj5u.com熱心網友回復:
所以我遇到了同樣的問題:
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb
sudo apt-get install ./libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb
sudo apt-get install ./rstudio-2022.02.1-461-amd64.deb
rstudio --no-sandbox
它暫時有效,我希望很快 Rstudio 應該會發布一個除錯版本。
(包括約翰組件,謝謝:))
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/461536.html
