"Error: % preun () scriptlet failed, exit status 1 error occurs in RPM.

Source: Internet
Author: User
There are two ways to install a program in Linux: one is to install the program in the source program, according to the README or install file instructions in the installation package, step by step, usually configure,
Make, install trilogy. The other is the RPM package. Similar to the common installation programs in Windows, you can double-click the package in xwin or enter
Rpm-IVH packagename to start installation.

During the installation, run make uninstall with the source program, while RPM is still used for installation.

For me who have been in touch with Linux soon, I always feel that these processes are quite troublesome and may encounter some problems from time to time.

When we installed wine today, we made a mistake and recorded it as a post-identification.

The wine version installed for the first time is too high, and it was accidentally used for federa core during download,
The installation fails. Then, a lower version was re-downloaded, and many error messages were reported due to conflicts with the file of the previous installation package.
"File/usr/lib/wine/shdocvw. dll. So from install
Wine-20040716-1rh9winehq conflicts with file from package
Wine-20050310-1fc1winehq"

In this case, you can only use RPM to uninstall the original wine.
$ Rpm-e wine-20050310-1fc1winehq

Unexpected error:
"Error: % preun (wine-20050310-1fc1winehq) scriptlet failed, exit status 1"

After searching, the solution is to add the -- noscripts mark to delete the RPM. -- Noscripts is equivalent to -- nopre -- nopost
-- Nopreun -- nopostun.

That is, the uninstall command is changed:
$ Rpm-e -- noscripts wine-20050310-1fc1winehq

To view the scripts associated with rpm, use -- script to query the RPM package.
$ Rpm-Q -- scripts package

If multiple installation versions of the same program must be deleted when uninstalling the program, use the -- allmatches tag, as shown in figure
$ Rpm-e -- noscripts -- allmatches wine

After the package is uninstalled, reinstall the new wine package.
$ Rpm-IVH wine-20040716-1rh9winehq.i386.rpm
Now, you can use wine to run the program for windows in Linux.

 

Reprinted from: http://blog.sina.com.cn/s/blog_49451df101000969.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.