[CentOS] Yum error

2014-12-22 Thread Alessandro Baggi

Hi there,
I've installed C7 and I'm trying to use targetcli and other.
Until yesterday all works good.
Today I've runned yum update, that has updated glibc. Then I installed 
targetcli and targetd. After some operation on an md device like 
mount/umont.

After this, during yum install lsof I get:

.
Install  1 Package

Total size: 331 k
Installed size: 927 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in 
yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 355, in user_main
errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 261, in main
return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 771, in doTransaction
resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1728, 
in runTransaction

if self.fssnap.available and ((self.conf.fssnap_automatic_pre or
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1125, 
in 

fssnap = property(fget=lambda self: self._getFSsnap(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1061, 
in _getFSsnap

devices=devices)
  File "/usr/lib/python2.7/site-packages/yum/fssnapshots.py", line 156, 
in __init__

self._vgnames = _list_vg_names()
  File "/usr/lib/python2.7/site-packages/yum/fssnapshots.py", line 59, 
in _list_vg_names

stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

(What file is for "No such file or directory"?)

Running yum with debug option I can't get useful information.

ls -1 /etc/yum.repos.d/
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-fasttrack.repo
CentOS-Sources.repo
CentOS-Vault.repo

I've searched on google without good results.

Can point me in the right direction to solve this?

Thanks in advance.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum error

2014-12-22 Thread Alessandro Baggi

On 12/22/2014 02:39 PM, Mark Milhollan wrote:

On Mon, 22 Dec 2014, Alessandro Baggi wrote:


  File "/usr/lib/python2.7/site-packages/yum/fssnapshots.py", line 156, in
__init__
self._vgnames = _list_vg_names()
  File "/usr/lib/python2.7/site-packages/yum/fssnapshots.py", line 59, in
_list_vg_names
stdout=subprocess.PIPE, stderr=subprocess.PIPE)


Looks like you have yum-plugin-fs-snapshot installed, which is flawed.
Further it looks like a recent update that tried to fix the original
problem introduced a new problem.  You can remove it manually using "rpm
-e yum-plugin-fs-snapshot".


/mark



Hi Mark,
I've tried:rpm -e yum-plugin-fs-snapshot
error: package yum-plugin-fs-snapshot is not installed

Then, yum-plugin-fs-snapshot is not installed.

I've tried to install it but nothing happened.
Then I've tried also to remove it with rpm -e but no good result.

Other method to get debug info?

Thanks in advance.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum error

2014-12-22 Thread Nicolas Thierry-Mieg



On 12/22/2014 02:54 PM, Alessandro Baggi wrote:

On 12/22/2014 02:39 PM, Mark Milhollan wrote:

On Mon, 22 Dec 2014, Alessandro Baggi wrote:


  File "/usr/lib/python2.7/site-packages/yum/fssnapshots.py", line
156, in
__init__
self._vgnames = _list_vg_names()
  File "/usr/lib/python2.7/site-packages/yum/fssnapshots.py", line
59, in
_list_vg_names
stdout=subprocess.PIPE, stderr=subprocess.PIPE)


Looks like you have yum-plugin-fs-snapshot installed, which is flawed.
Further it looks like a recent update that tried to fix the original
problem introduced a new problem.  You can remove it manually using "rpm
-e yum-plugin-fs-snapshot".


/mark



Hi Mark,
I've tried:rpm -e yum-plugin-fs-snapshot
error: package yum-plugin-fs-snapshot is not installed

Then, yum-plugin-fs-snapshot is not installed.

I've tried to install it but nothing happened.
Then I've tried also to remove it with rpm -e but no good result.

Other method to get debug info?


rpm -qf /usr/lib/python2.7/site-packages/yum/fssnapshots.py
will tell you what package owns that file.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Yum error

2014-12-22 Thread Alessandro Baggi

On 12/22/2014 03:01 PM, Nicolas Thierry-Mieg wrote:



On 12/22/2014 02:54 PM, Alessandro Baggi wrote:

On 12/22/2014 02:39 PM, Mark Milhollan wrote:

On Mon, 22 Dec 2014, Alessandro Baggi wrote:


  File "/usr/lib/python2.7/site-packages/yum/fssnapshots.py", line
156, in
__init__
self._vgnames = _list_vg_names()
  File "/usr/lib/python2.7/site-packages/yum/fssnapshots.py", line
59, in
_list_vg_names
stdout=subprocess.PIPE, stderr=subprocess.PIPE)


Looks like you have yum-plugin-fs-snapshot installed, which is flawed.
Further it looks like a recent update that tried to fix the original
problem introduced a new problem.  You can remove it manually using "rpm
-e yum-plugin-fs-snapshot".


/mark



Hi Mark,
I've tried:rpm -e yum-plugin-fs-snapshot
error: package yum-plugin-fs-snapshot is not installed

Then, yum-plugin-fs-snapshot is not installed.

I've tried to install it but nothing happened.
Then I've tried also to remove it with rpm -e but no good result.

Other method to get debug info?


rpm -qf /usr/lib/python2.7/site-packages/yum/fssnapshots.py
will tell you what package owns that file.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos



 rpm -qf /usr/lib/python2.7/site-packages/yum/fssnapshots.py
yum-3.4.3-118.el7.centos.noarch

Tried to reinstall yum and yum-fastestmirror...bad results.



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS Digest, Vol 119, Issue 19

2014-12-22 Thread Xinhuan Zheng
Hello Brian,
>GPG is really what you want to be using for this.  OpenSSL is a general
>toolkit that provide a lot of good functions, but you need to cobble some
>things together yourself.  GPG is meant to handle all of the other parts
>of
>dealing with files.

>I will expand on what someone else mentioned -- asymmetric encryption is
>not meant for, and has very poor performance for encrypting data, and also
>has a lot of limitations.  The correct way to handle this is to create a
>symmetric key and use that to encrypt the data, then use asymmetric
>encryption to encrypt only the symmetric key.

>GPG takes care of this all internally, so that's what you should be using.


Do you have any resources that show examples of how to use GPG internally
that takes care of symmetric/asymmetric encryption?

Thanks,
- xinhuan


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum upgrade not working

2014-12-22 Thread Tim Dunphy
Hi Ned.,

What does rpm say? 'rpm -q --whatprovides /usr/lib64/libyaml-0.so.1'



This is what rpm reports back at that command:

[root@ops:~] #rpm -q --whatprovides /usr/lib64/libyaml-0.so.1
libyaml-0.1.2-3.el5.x86_64

>
> > Can someone please point me in the right direction for solving these
> > problems?
> >
> These are not CentOS packages (python26-PyYAML and libyaml). I would
> suggest you ask on the appropriate list for whichever repository these
> packages were installed from (rpm -qi should tell you).
>
>
And here is what rpm -qi tells me:

[root@ops:~] #rpm -qi libyaml-0.1.2-3.el5.x86_64
Name: libyaml  Relocations: (not relocatable)
Version : 0.1.2 Vendor: Fedora Project <
http://bugzilla.redhat.com/bugzilla>
Release : 3.el5 Build Date: Tue Mar  3 13:53:12
2009
Install Date: Sat Nov  5 18:57:39 2011 Build Host:
xenbuilder2.fedora.redhat.com
Group   : Development/Libraries Source RPM:
libyaml-0.1.2-3.el5.src.rpm
Size: 126347   License: MIT
Signature   : DSA/SHA1, Tue Mar  3 14:48:55 2009, Key ID 119cc036217521f6
Packager: Fedora Project 
URL : http://pyyaml.org/
Summary : YAML 1.1 parser and emitter written in C
Description :
YAML is a data serialization format designed for human readability and
interaction with scripting languages.  LibYAML is a YAML parser and
emitter written in C.

So thinking back it may have been a custom python repo that was used to
install that.

So I guess I can take it from here!

Thanks
Tim

On Sun, Dec 21, 2014 at 6:59 AM, Ned Slider  wrote:

>
>
> On 21/12/14 02:25, Tim Dunphy wrote:
> > Hey all,
> >
> > I'm attempting to upgrade a Centos 5.9 machine to CentOS 5.10.
> >
> > But when I try the yum update command I get this response:
> >
> > --> Finished Dependency Resolution
> > python26-PyYAML-3.08-5.el5.x86_64 from installed has depsolving problems
> >   --> Missing Dependency: libyaml-0.so.1()(64bit) is needed by package
> > python26-PyYAML-3.08-5.el5.x86_64 (installed)
> > --> Running transaction check
> > ---> Package kernel.x86_64 0:2.6.18-164.15.1.el5.centos.plus set to be
> > erased
> > ---> Package kernel.x86_64 0:2.6.18-194.11.4.el5 set to be erased
> > ---> Package kernel.x86_64 0:2.6.18-238.9.1.el5 set to be erased
> > ---> Package kernel-devel.x86_64 0:2.6.18-308.4.1.el5 set to be erased
> > --> Processing Dependency: libyaml-0.so.1()(64bit) for package:
> > python26-PyYAML
> > --> Finished Dependency Resolution
> > python26-PyYAML-3.08-5.el5.x86_64 from installed has depsolving problems
> >   --> Missing Dependency: libyaml-0.so.1()(64bit) is needed by package
> > python26-PyYAML-3.08-5.el5.x86_64 (installed)
> > Error: Missing Dependency: libyaml-0.so.1()(64bit) is needed by package
> > python26-PyYAML-3.08-5.el5.x86_64 (installed)
> >  You could try using --skip-broken to work around the problem
> >  You could try running: package-cleanup --problems
> > package-cleanup --dupes
> > rpm -Va --nofiles --nodigest
> >
> >
> > The system claims that it can't find libyaml-0.so.1, however I can easily
> > locate it:
> >
> > [root@ops:~] #locate libyaml-0.so.1
> > /usr/lib64/libyaml-0.so.1
> > /usr/lib64/libyaml-0.so.1.1.0
> >
>
> What does rpm say? 'rpm -q --whatprovides /usr/lib64/libyaml-0.so.1'
>
> > Can someone please point me in the right direction for solving these
> > problems?
> >
>
> These are not CentOS packages (python26-PyYAML and libyaml). I would
> suggest you ask on the appropriate list for whichever repository these
> packages were installed from (rpm -qi should tell you).
>
> > Thanks
> > Tim
> >
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum upgrade not working

2014-12-22 Thread Tim Dunphy
Removing that libyaml package allowed me to upgrade!

Thanks for the tip!

Tim

On Sat, Dec 20, 2014 at 9:25 PM, Tim Dunphy  wrote:

> Hey all,
>
> I'm attempting to upgrade a Centos 5.9 machine to CentOS 5.10.
>
> But when I try the yum update command I get this response:
>
> --> Finished Dependency Resolution
> python26-PyYAML-3.08-5.el5.x86_64 from installed has depsolving problems
>   --> Missing Dependency: libyaml-0.so.1()(64bit) is needed by package
> python26-PyYAML-3.08-5.el5.x86_64 (installed)
> --> Running transaction check
> ---> Package kernel.x86_64 0:2.6.18-164.15.1.el5.centos.plus set to be
> erased
> ---> Package kernel.x86_64 0:2.6.18-194.11.4.el5 set to be erased
> ---> Package kernel.x86_64 0:2.6.18-238.9.1.el5 set to be erased
> ---> Package kernel-devel.x86_64 0:2.6.18-308.4.1.el5 set to be erased
> --> Processing Dependency: libyaml-0.so.1()(64bit) for package:
> python26-PyYAML
> --> Finished Dependency Resolution
> python26-PyYAML-3.08-5.el5.x86_64 from installed has depsolving problems
>   --> Missing Dependency: libyaml-0.so.1()(64bit) is needed by package
> python26-PyYAML-3.08-5.el5.x86_64 (installed)
> Error: Missing Dependency: libyaml-0.so.1()(64bit) is needed by package
> python26-PyYAML-3.08-5.el5.x86_64 (installed)
>  You could try using --skip-broken to work around the problem
>  You could try running: package-cleanup --problems
> package-cleanup --dupes
> rpm -Va --nofiles --nodigest
>
>
> The system claims that it can't find libyaml-0.so.1, however I can easily
> locate it:
>
> [root@ops:~] #locate libyaml-0.so.1
> /usr/lib64/libyaml-0.so.1
> /usr/lib64/libyaml-0.so.1.1.0
>
> Can someone please point me in the right direction for solving these
> problems?
>
> Thanks
> Tim
>
> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>
>


-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum upgrade not working

2014-12-22 Thread Jussi Hirvi

This often helps to avoid broken dependencies:

yum --disablerepo=\* --enablerepo=base --enablerepo=updates update

After that, a regular yum update.

- Jussi

On 22.12.2014 17.39, Tim Dunphy wrote:

Removing that libyaml package allowed me to upgrade!

Thanks for the tip!

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum upgrade not working

2014-12-22 Thread Tim Dunphy
>
> This often helps to avoid broken dependencies:
> yum --disablerepo=\* --enablerepo=base --enablerepo=updates update
> After that, a regular yum update.


Cool! Thanks for the tip!

On Mon, Dec 22, 2014 at 10:50 AM, Jussi Hirvi 
wrote:

> This often helps to avoid broken dependencies:
>
> yum --disablerepo=\* --enablerepo=base --enablerepo=updates update
>
> After that, a regular yum update.
>
> - Jussi
>
> On 22.12.2014 17.39, Tim Dunphy wrote:
>
>> Removing that libyaml package allowed me to upgrade!
>>
>> Thanks for the tip!
>>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] openvpn client and KDE Network Manager - with CentOS7

2014-12-22 Thread Rex Dieter
CS DBA wrote:

> Hi All,
> 
> I am switching from Fedora20 to CentOS7 since I now run all my Linux
> development in a VM and I get a more robust feature set (i.e. shared
> folders with the host that "just work", etc)
> 
> The only issue I have thus far is VPN connections. Looking at what's
> installed on my old Fedora install I suspect I need these packages:
> 
> kde-plasma-nm-vpnc
> kde-plasma-nm-openvpn
> NetworkManager-openvpn
> NetworkManager-vpnc
> 
> However none of these are available in CentOS7, Note I have the centos
> extras and the EPEL repos enabled.  I suspect that I need rpmfusion but
> I don't see that rpmfusion has a repo for CentOS7...
> 
> Anyone have any thoughts? Can I simply install the centos6 rpmfusion repo?

Looks like you'll want
kde-plasma-networkmanagement-openvpn
from
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-4723

(I'll be adding openconnect support soon too)

-- Rex


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos