I was trying to install a package using apt-get and realized that apt-get wouldn't install that or any other package. I found various suggestions to fix this problem:
Problem
$ sudo apt-get install scons
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package scons 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 'scons' has no installation candidate
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package scons 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 'scons' has no installation candidate
Solution:
$ sudo apt-get update
$ sudo apt-get install build-essential
$ sudo dpkg --configure -a
$ sudo apt-get -f install
None of those worked in my case. I then went to Ubuntu Software Center>Edit> Software Sources and made these changes.
After that the following commands did the job
$ sudo apt-get update
$ sudo apt-get install build-essential
$ sudo apt-get install scons
It works. Thanks.
ReplyDeletei have problems with software-center
ReplyDeleteas (E: package 'software-center' has no installation candidate)
i installed kali linus 2.0 with sources list 2016
please i need help , i cant i stall any application in my laptop
ty
ReplyDeleteapt-get fix missing
ReplyDeleteThis comment has been removed by the author.
ReplyDeletecomment: sudo apt-get install libjsoncpp1
ReplyDeleteerror:
sudo: unable to resolve host manidipa
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libjsoncpp1 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
That worked! Much better solution than some of the stuffover on AskUbuntu. Thanks!
ReplyDeleteThanks you very much
ReplyDeleteThanks I was struggling and this solved my problem of missing dependencies.
ReplyDeleteWow... Couldn't find answer anywhere on internet... It is really helping astonished with your post..
ReplyDeleteThanks a lot :)
How can we make changes in software sources in ubuntu 18.4 as there is no ubunto sofware center and 18.4 ubuntu has ubonto software and do not have edit option.
ReplyDeleteplease help.
its really working broo.......
ReplyDeletethanks
Thanks this worked in Debian as well, but naming is diff for (main) check list but process is same.
ReplyDeleteperde modelleri
ReplyDeleteSms onay
mobil ödeme bozdurma
nft nasıl alınır
Ankara Evden Eve Nakliyat
Trafik Sigortasi
dedektor
web sitesi kurma
Aşk Romanları
SMM PANEL
ReplyDeletesmm panel
iş ilanları
instagram takipçi satın al
HİRDAVATCİ BURADA
https://www.beyazesyateknikservisi.com.tr
Servis
TİKTOK PARA HİLESİ