How to install Samba on Centos 6.5 [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am having some trouble when installing samba on Centos6.5.
I use this command:
sudo yum install samba samba-client samba-common
But I keep getting this Error:
Error: Package: samba-winbind-clients-3.6.9-164.el6.i686 (tejas-barot-alub-tv)
Requires: samba-winbind = 3.6.9-164.el6
Installed: samba-winbind-3.6.9-168.el6_5.x86_64 (#updates)
samba-winbind = 3.6.9-168.el6_5
Available: samba-winbind-3.6.9-164.el6.x86_64 (tejas-barot-alub-tv)
samba-winbind = 3.6.9-164.el6
Available: samba4-winbind-4.0.0-58.el6.rc4.x86_64 (tejas-barot-alub-tv)
samba-winbind = 4.0.0-58.el6.rc4
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I see that I have the required packages, but how to I change the version of them, so I can install Samba on my server?

Try Running :
yum clean all
then
yum install samba-winbind-clients

Try this:
yum install samba4 samba4-client samba4-common
or see this tutorial

I found a solution -
Remove any installed Samba versions: - sudo yum remove samba4-libs samba-common samba-winbind-clients samba-winbind samba-client
Install samba - sudo yum install samba
Test: service smb start

Related

apt package (kodi-inputstream-adaptive) does not upgrade to newest version [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I want to install this package to utilize some kodi addons. It needs version 2.4.3 at least but I can not update it to the newest version because apt thinks this is already the newest version but it definetely is not.
This is what somebody else already helped me with:
Your system must have issues getting newer updates because Debian Buster ships with IA v2.4.4:
https://www.deb-multimedia.org/dists/stable/main/binary-armhf/package/kodi-inputstream-adaptive
This happens when I want to install newest version:
pi#raspberrypi:~ $ sudo apt-get install kodi-inputstream-adaptive
Reading package lists... Done
Building dependency tree
Reading state information... Done
kodi-inputstream-adaptive is already the newest version (2.4.2-1~buster).
0 upgraded, 0 newly installed, 0 to remove and 154 not upgraded.
You could try to add it manually.
Add the following line to /etc/apt/sources.list:
deb http://www.deb-multimedia.org buster main
Update packages:
sudo apt-get update
Install keyring:
sudo apt-get install deb-multimedia-keyring
Then try to install it again
sudo apt-get install kodi-inputstream-adaptive
Reference.

How to remove an incomplete package by using apt-get? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I've tried to install android-studio via apt-get in Ubuntu and find that a dependency package with a size of 233 M is required to download from Google. Since I'm in China the network condition is so bad that I cannot download the package completely, and finally I have to give up.
However here comes a problem: now every time I execute apt-get I will get a hint of Incomplete dependency and be asked to download the package above. If I execute sudo apt-get remove android-studio an error will occur:
dpkg: error processing package android-studio (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
An error occurred when processing:
android-studio
E: Sub-process /usr/bin/dpkg returned an error code (1)
My apt-get was stuck. So how can I remove an incomplete package entirely?
Try running following commands on the terminal:
sudo apt-get autoremove
sudo apt-get --purge remove
sudo dpkg --remove --force-remove-reinstreq tspc
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get -f install
These may clear or fix broken packages and try to install again.
Open synaptic Install synaptic. Then go to status and choose Broken. Then remove completely the broken packages.

How to install virtualbox on ubuntu 14.04? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am using Ubuntu 14.04. I downloaded the Ubuntu version from this link:
virtualbox.org/wiki/Linux_Downloads
Ubuntu 13.04 ("Raring Ringtail") / 13.10 ("Saucy Salamander") / 14.04 ("Trusty Tahr") 64bit
download.virtualbox .org/virtualbox/4.3.18 virtualbox- .3_4.3.18-96516~Ubuntu~raring_amd64.deb
I installed by terminal:
wget -q https:// virtualbox .org/download/oracle_vbox.asc -O- | sudo
apt-key add -
Since it didn't work, I tried something else.
I downloaded the Windows version: virtualbox .org/wiki/Downloads
download.virtualbox .org/virtualbox/4.3.18/VirtualBox-4.3.18-96516-Win.exe
I installed it by using "Wine", and received this error:
Error window: SUPR3HardenedMain Effective UID is not root (euid=1000
egid=1000 uid=1000 gid=1000) (rc=-10) Please try reinstalling
VirtualBox.
Any other way to do it? I can't find why is not working!
Actually you install the package with:
sudo dpkg --install virtualbox-4.3_4.3.18-96516~Ubuntu~raring_amd64.deb
You can install virtual box from the ubuntu software center or
sudo apt-get install virtualbox-qt

Unable to install Java 6 and install 7 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to install Java 7. I tested my Java version first, please see the below code
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$ java -version
java version "1.6.0_30"
OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.1)
OpenJDK Client VM (build 23.25-b01, mixed mode, sharing)
I tried uninstalling this first, using below command:
sudo apt-get remove openjdk-6-jdk
It gave me the following result.
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$ sudo apt-get remove openjdk-6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-6-jdk is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuadmin#ubuserver3:~/JavaJars/HelloWordGPU$
I also tried using sudo apt-get remove default-jdk but same.
So how can I install Java 7?
From the directions posted here,
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Then you can use update-java-alternatives,
sudo update-java-alternatives -l
sudo update-java-alternatives -s <The correct Java 7 JDK>
You could install openjdk-7-jdk directly by
apt-get install openjdk-7-jdk
After that, you could use update-java-alternatives to set it as your default Java
update-java-alternatives -l
update-java-alternatives -s <jname>

Revert system changes after apt-get upgrade on Linux Mint/Ubuntu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I'm using Linux Mint 11 64 bit. I needed some packages to install newest software and found them in ubuntu repositories.
To do this I added
deb http://security.ubuntu.com/ubuntu oneiric-security main
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ oneiric main
to my
/etc/apt/sources.list.
I made automatically sudo apt-get update + sudo apt-get upgrade and it installed ~900 packages from that repository (and removed some of my Mint too...). My system changed to Ubuntu-like dist, installed new graphical interface - probably GNOME3 (I liked my GNOME2 really much..). I am now unable to start GNOME2 at all.
Is there any way to undo this changes? I've removed that lines from sources.list, tried sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
but it didn't help.
Thanks.
You can use ppa-purge - install with sudo apt-get install ppa-purge
See this article for more info
That will roll back your packages so it is safe to remove the repo and keep the software and your system wont blow up.
EDIT (based on user1131467's comment): for full-blown repositories, these answers will help, but it is much more manual:
https://askubuntu.com/a/3675/38901 and
https://superuser.com/a/195071/110574
No sorry, you are pretty screwed. You now have newer versions of most of the packages, so even if you remove the oneiric repo it will still opt to keep the new ones.
The best option is to backup and reinstall.

Resources