Package libsndfile-dev has no installation candidate - linux

I am trying to install "libsndfile-dev". I do the following:
sudo apt-get install libsndfile-dev
As the result I get the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libsndfile-dev is a virtual package provided by:
libsndfile1-dev 1.0.17-4ubuntu0.8.10.2
You should explicitly select one to install.
E: Package libsndfile-dev has no installation candidate
So, my attempt to install failed. Can anybody tell me what should I select explicitly and how can I do it?
Thank you in advance.

Looks like you should apt-get install libsndfile1-dev (note the 1).

Related

Why do i get this error when running "sudo apt install -y mongodb" in terminal

I am trying to install mongodb on my pop os linux.
I ran this:
sudo apt install -y mongodb
Then it said this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mongodb 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 'mongodb' has no installation candidate
How do i fix it? Is there a way to?
Assuming you're using Ubuntu you'll have to enable the universe repo.

How to I install this dependency?

I'm trying to install a .deb package with dpkg -i, but I get this error:
dpkg: dependency problems prevent configuration of modelio-open-source4.1:
modelio-open-source4.1 depends on libwebkitgtk-1.0-0; however:
Package libwebkitgtk-1.0-0 is not installed.
So it seems I need to install libwebkitgtk-1.0-0. So I run sudo apt install libwebkitgtk-1.0-0, but I get this output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libwebkitgtk-1.0-0 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 'libwebkitgtk-1.0-0' has no installation candidate
How do I fix this? I really need this installed for school, and the clock is ticking...

Unable to install the openssh-server on ubuntu. sizemismatch error

I am trying to install openssh-server on my Ubuntu-14.04.1. At a point it is throwing error like this.
>sudo apt-get update
>sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
...
The following NEW packages will be installed:
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-sftp-server_6.6p1-2ubuntu2.8_amd64.deb **Size mismatch**
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
if try with the --fix-missing , also not working
>sudo apt-get install openssh-server --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
...
Unable to correct missing packages.
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-sftp-server_6.6p1-2ubuntu2.8_amd64.deb **Size mismatch**
E: Aborting install.
Please , can any one suggest me to get rid of this problem?
Seems that you're using an invalid mirror. Just googling a bit you will easily find how to change your current mirror to a different one. Here's an answer from another Stack Exchange community:
https://askubuntu.com/questions/682532/ubuntu-repository-change

E: Package 'gdb-arm-linux-gnueabi' has no installation candidate

I try to install gdb-ARM for cross compile on my ubuntu 14.04 x86 architecture . I want to debug a program on my target with an ARM architecture.I tried this command :
sudo apt-get install gdb-arm-linux-gnueabi
I got this error :
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gdb-arm-linux-gnueabi 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 'gdb-arm-linux-gnueabi' has no installation candidate
any help please ?
You may want to try sudo apt install binutils-mips64el-linux-gnuab or sudo apt install gdb-arm-none-eabi

not able to install samba

I had to uninstall samba, because I had configured it wrong. But now when i try to reinstall it using sudo apt-get install samba smbfs, I get the output:-
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
However the following packages replace it:
samba-common
Package smbfs 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
E: Package 'smbfs' has no installation candidate
I am nor able to download it via ubuntu Software center.
Any help is appreciated
Thank you
First uninstall it completely
Sudo apt-get autoremove samba4
then reinstall
Sudo apt-get install samba4

Resources