not able to install samba - linux

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

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.

Cannot install strace on Parrot Linux

I use Parrot OS. As I found out, strace is a basic package which i can install just by apt-get install strace. But i just get
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package strace 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 'strace' has no installation candidate
Why so? M/b somebody nows
According to the parrot repo, the strace package is present.
This means that either your apt database is outdated, in this case, you can update it using apt update, or apt is not using this repo.
If so, you can add the Parrot Repo by creating/updating your /etc/apt/sources.list.d/parrot.list file with the content provided in the documentation of Parrot. Then you can update the list of packages and retry the installation!

Cannot install git on Linux Mint 17.3

I'm trying to install git for several hours but whatever I do I get this error:
sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not installable
E: Unable to correct problems, you have held broken packages.
I've read answers here and I've tried the following without success:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f
I've tried solution from here:
https://superuser.com/questions/899311/apt-get-error-when-installing-git
I removed everything in /var/lib/apt/lists/* and ran sudo apt-get update
I also tried to install liberror-perl and then the folllowing error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package liberror-perl 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 'liberror-perl' has no installation candidate
How could fix this issue with packages? Thanks.
Updated: Now I tried to install another package and I got the same error:
Package 'devscripts' has no installation candidate
Have you tried following the directions in this link?
https://tecadmin.net/install-git-on-ubuntu/
$ sudo add-apt-repository ppa:git-core/ppa
$ sudo apt-get update
$ sudo apt-get install git

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

package list - linux mint

when i was trying to fix an error in my linux mint, i accidentally, removed package list, now i can't install anything, how can i fix this?
i a beginner with linux..
i'm using linux mint 16 petra Mate edition.
follows the log:
charles#charles /etc/apt $ sudo apt-get install ubuntu-tweak
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ubuntu-tweak : Depends: python-compizconfig but it is not installable
E: Unable to correct problems, you have held broken packages.
How did you remove your package list? You should be able to restore it by finding the official repository list on the Linux Mint site, and then making sure your /etc/apt/sources.list.d/official-package-repositories.list matches what they have.
Firstly, I would run sudo apt-get update though, in order to see what you're missing. That in itself might fix your problem.
Try the following.
sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

Resources