包 'samba' 没有安装候选项
Package 'samba' has no installation candidate
我正在尝试 运行 下面的代码:
shaliya@achala:~$ sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package samba 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 'samba' has no installation candidate
我该如何解决?
请运行在尝试安装 samba 之前执行以下命令:
sudo apt-get update
sudo apt-get upgrade
以防万一:sudo apt-get autoremove samba
和运行:sudo apt-get install samba
我在 ubuntu 20.04 中遇到了类似的问题,这对我来说很好。
执行这些
sudo apt-get 更新
sudo apt-get install build-essential
须藤 dpkg --configure -a
sudo apt-get -f 安装
然后 -Ubuntu 软件中心编辑软件源并进行了这些更改。
稍后执行以下命令
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install your-package-name
我正在尝试 运行 下面的代码:
shaliya@achala:~$ sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package samba 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 'samba' has no installation candidate
我该如何解决?
请运行在尝试安装 samba 之前执行以下命令:
sudo apt-get update
sudo apt-get upgrade
以防万一:sudo apt-get autoremove samba
和运行:sudo apt-get install samba
我在 ubuntu 20.04 中遇到了类似的问题,这对我来说很好。 执行这些 sudo apt-get 更新 sudo apt-get install build-essential 须藤 dpkg --configure -a sudo apt-get -f 安装
然后 -Ubuntu 软件中心编辑软件源并进行了这些更改。
稍后执行以下命令
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install your-package-name