以下是我想做的事情:
sudo apt-get install gdebi-core
wget https://download2.rstudio.org/server/xenial/amd64/rstudio-server-1.3.1093-amd64.deb
sudo gdebi rstudio-server-1.3.1093-amd64.deb
这是我得到的错误:
Traceback (most recent call last):
File "/usr/bin/gdebi", line 38, in <module>
from GDebi.GDebiCli import GDebiCli
File "/usr/share/gdebi/GDebi/GDebiCli.py", line 36, in <module>
from .DebPackage import DebPackage, DscSrcPackage
File "/usr/share/gdebi/GDebi/DebPackage.py", line 24, in <module>
import apt.debfile
File "/usr/lib/python3/dist-packages/apt/debfile.py", line 23, in <module>
import apt_inst
ModuleNotFoundError: No module named 'apt_inst'
答案1
答案2
我遇到了类似的问题,解决办法是使用:
sudo dpkg -i rstudio-2022.02.3-492-amd64.deb