Issues Updating opsi on CentOS6 to Version 4.0.5

Antworten
lloydsystems
Beiträge: 22
Registriert: 03 Feb 2013, 09:46

Issues Updating opsi on CentOS6 to Version 4.0.5

Beitrag von lloydsystems »

I have attempted to update an existing installation of opsi on CentOS 6.7 from 4.0.4 to 4.0.5.

The first issue came with package python-Twisted. This failed dependency check with an error saying that it required python-zope-interface. The package name is actually python-zopeinterface and is already installed. The spec file for python-Twisted contains:

Code: Alles auswählen

%if 0%{?rhel_version} == 600 || 0%{?centos_version} || 0%{?fedora_version}
BuildRequires:  python-zope-interface
Requires:       python-zope-interface
%else
BuildRequires:  python-zopeinterface
Requires:       python-zopeinterface
%endif
I suggest this requires correction.

I attempted to continue excluding python-Twisted from the update process. The next error was more sinister. This is the error from yum:

Code: Alles auswählen

Running rpm_check_debug
Running Transaction Test
Error: Transaction Check Error:
  file /usr/lib64/python2.6/site-packages/MySQLdb/__init__.py conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/__init__.pyc conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/connections.py conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/connections.pyc conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/converters.py conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/converters.pyc conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/cursors.py conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/cursors.pyc conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/release.py conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/release.pyc conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/times.py conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/MySQLdb/times.pyc conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
  file /usr/lib64/python2.6/site-packages/_mysql.so conflicts between attempted installs of MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 and python-mysql-1.2.2-98.3.x86_64
python-opsi is now requiring installation of MySQL-python (CentOS base package) but this is conficting with the python-mysql package. Please advise what should be done here.

Thanks
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Issues Updating opsi on CentOS6 to Version 4.0.5

Beitrag von n.wenselowski »

Hello,

Thanks, I will look into the thing with Twisted.

As your your problem with dependencies please read the 4.0.5 release notes (hint: chapter 6, but it's no waste of time to read the other chapters also).


Bye

Niko

Code: Alles auswählen

import OPSI
lloydsystems
Beiträge: 22
Registriert: 03 Feb 2013, 09:46

Re: Issues Updating opsi on CentOS6 to Version 4.0.5

Beitrag von lloydsystems »

Thanks for the pointer. I guess I should have looked at the release notes :)

I do cringe a little, though, when I see
rpm -e --nodeps
When I have to replace packages that are required dependencies I prefer to use the yum shell. Multiple commands can be entered separately and yum compiles them into one transaction and runs it, while still maintaining proper checks. So you can do

Code: Alles auswählen

# yum shell
> remove python-mysql
> install MySQL-python
> upgrade opsi-package-1 opsi-package-2
> run
> quit
It's much safer.
Antworten