[MDEV-6028] CentOS v5.x x86_64 RPM Package Install Error Created: 2014-04-05  Updated: 2014-04-05  Resolved: 2014-04-05

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.10
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: JeongHyeon Lee (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: packaging
Environment:

CentOS v5.x - x86_64



 Description   

Downloading Packages:
(1/7): MariaDB-10.0.10-centos5-x86_64-common.rpm | 29 kB 00:00
(2/7): MariaDB-10.0.10-centos5-x86_64-shared.rpm | 1.6 MB 00:04
(3/7): MariaDB-10.0.10-centos5-x86_64-compat.rpm | 3.4 MB 00:02
(4/7): MariaDB-10.0.10-centos5-x86_64-devel.rpm | 8.2 MB 00:03
(5/7): MariaDB-10.0.10-centos5-x86_64-client.rpm | 14 MB 00:05
(6/7): MariaDB-10.0.10-centos5-x86_64-test.rpm | 25 MB 00:07
(7/7): MariaDB-10.0.10-centos5-x86_64-server.rpm | 56 MB 00:16
----------------------------------------------------------------------------------------------------------------------------------------------------
Total 2.6 MB/s | 108 MB 00:41
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : MariaDB-common 1/14
sed: 부적절한 옵션 – 1
Usage: sed [OPTION]...

Unknown macro: {script-only-if-no-other-script}

[input-file]...

-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the commands to be executed
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)
-c, --copy
use copy instead of rename when shuffling files in -i mode
(avoids change of input file ownership)
-l N, --line-length=N
specify the desired line-wrap length for the `l' command
--posix
disable all GNU extensions.
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a single continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input files and flush
the output buffers more often
--help display this help and exit
--version output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

버그를 보고할 E-mail 주소: bonzini@gnu.org .
``Subject:'' 항목에 반드시 ``sed'' 단어를 포함해 주시기 바랍니다.

******************************************************************
A MySQL or MariaDB server package () is installed.

The current MariaDB server package is provided by a different
vendor ( 패키지가 설치되어 있지 않습니다) than Monty Program AB. Some files may be installed
to different locations, including log files and the service
startup script in /etc/init.d/.

Upgrading directly from MySQL <unrecognized version 패키지가 설치되어 있지 않습니다> to MariaDB 10.0 may not
be safe in all cases. A manual dump and restore using mysqldump is
recommended. It is important to review the MariaDB manual's Upgrading
section for version-specific incompatibilities.

A manual upgrade is required.

  • Ensure that you have a complete, working backup of your data and my.cnf
    files
  • Shut down the MySQL server cleanly
  • Remove the existing MySQL packages. Usually this command will
    list the packages you should remove:
    rpm qa | grep -i '^mysql'

You may choose to use 'rpm --nodeps -ev <package-name>' to remove
the package which contains the mysqlclient shared library. The
library will be reinstalled by the MariaDB-shared package.

  • Install the new MariaDB packages supplied by Monty Program AB
  • Ensure that the MariaDB server is started
  • Run the 'mysql_upgrade' program

This is a brief description of the upgrade process. Important details
can be found in the MariaDB manual, in the Upgrading section.
******************************************************************
Error in PREIN scriptlet in rpm package MariaDB-server-10.0.10-1.x86_64
error: %pre(MariaDB-server-10.0.10-1.x86_64) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping MariaDB-server-10.0.10-1
Updating : MariaDB-test 3/14
Updating : MariaDB-compat 4/14
Updating : MariaDB-shared 5/14
Updating : MariaDB-devel 6/14
Updating : MariaDB-client 7/14
Cleanup : MariaDB-common 8/14
Cleanup : MariaDB-test 9/14
Cleanup : MariaDB-devel 10/14
Cleanup : MariaDB-client 11/14
Cleanup : MariaDB-compat 12/14
Cleanup : MariaDB-shared 13/14

Updated:
MariaDB-client.x86_64 0:10.0.10-1 MariaDB-common.x86_64 0:10.0.10-1 MariaDB-compat.x86_64 0:10.0.10-1 MariaDB-devel.x86_64 0:10.0.10-1
MariaDB-shared.x86_64 0:10.0.10-1 MariaDB-test.x86_64 0:10.0.10-1

Failed:
MariaDB-server.x86_64 0:10.0.10-1

Complete!



 Comments   
Comment by Elena Stepanova [ 2014-04-05 ]

The problem has been reported as https://mariadb.atlassian.net/browse/MDEV-5986.

As a workaround, please do what the error message says: remove the old version and install the new one.

Comment by JeongHyeon Lee (Inactive) [ 2014-04-05 ]

shell> /etc/init.d/mysql stop
Shutting down MySQL.......... [ OK ]
shell> yum remove MariaDB-server
Loaded plugins: fastestmirror, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-server.x86_64 0:5.5.36-1 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================
Removing:
MariaDB-server x86_64 5.5.36-1 installed 134 M

Transaction Summary
====================================================================================================================================================
Remove 1 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : MariaDB-server 1/1

Removed:
MariaDB-server.x86_64 0:5.5.36-1

Complete!
shell> yum install MariaDB-server.x86_64
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile

  • base: ftp.daum.net
  • epel: mirror.premi.st
  • extras: ftp.daum.net
  • remi: remi.kazukioishi.net
  • updates: ftp.daum.net
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package MariaDB-server.x86_64 0:10.0.10-1 set to be updated
    --> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================
Installing:
MariaDB-server x86_64 10.0.10-1 mariadb 56 M

Transaction Summary
====================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 56 M
Is this ok [y/N]: y
Downloading Packages:
MariaDB-10.0.10-centos5-x86_64-server.rpm | 56 MB 00:09
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : MariaDB-server 1/1

Installed:
MariaDB-server.x86_64 0:10.0.10-1

Complete!
shell> /etc/init.d/mysql start
Starting MySQL...... [ OK ]
shell>

Generated at Thu Feb 08 07:08:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.