Solution to the error of installing dict-xdict in Ubuntu

Source: Internet
Author: User

Thanks http://blog.uyvan.com/2010/05/ubuntu-%E5% AE %89%E8%A3%85dict-xdict-%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AFe-dict-xdict-%E5%AD%90%E8%BF%9B%E7%A8%8B-%E5%B7%B2%E5% AE %89%E8%A3%85%E7%9A%84-post-installation.html/comment-page-1#comment-119

The following error occurs when I install dict-xdict:
Liuwei @ it-Liuwei :~ $ Sudo aptitude install dict-xdict
[Sudo] password for Liuwei:
Reading the package list... Complete
Analyzing the dependency tree of the software package
Reading status information... Complete
Reading extended state file
Initializing package status... Complete
Editing extended status information... Complete
No software packages will be installed, upgraded, or deleted.
0 software packages are upgraded, 0 are newly installed, 0 are deleted, and 0 are not upgraded.
You need to obtain an archive of 0b/3, 555kb. 0 B will be used after unpacking.
Editing extended status information... Complete
The software package dict-xdict that has been deselected is selected.
(Reading database... The system currently has a total of 127684 files and directories installed .)
Preparing to replace dict-xdict 0.1-4 (use... Dict-xdict_0.1-4_all.deb )...
Decompressing the package file dict-xdict...
Setting dict-xdict (0.1-4 )...
Invoke-rc.d: Unknown initscript,/etc/init. d/dictd not found.
Dpkg: An error occurred while processing dict-xdict (-configure:
The post-installation script installed by the sub-process Returns Error 100.
An error occurred during processing:
Dict-xdict
E: sub-process/usr/bin/dpkg returned an error code (1)
An error occurred while installing the software package. Attempting to recover:
Setting dict-xdict (0.1-4 )...
Invoke-rc.d: Unknown initscript,/etc/init. d/dictd not found.
Dpkg: An error occurred while processing dict-xdict (-configure:
The post-installation script installed by the sub-process Returns Error 100.
An error occurred during processing:
Dict-xdict
Reading the package list... Complete
Analyzing the dependency tree of the software package
Reading status information... Complete
Reading extended state file
Initializing package status... Complete
Editing extended status information... Complete

After installing other software, the following error occurs:
E: dict-xdict: the post-installation script installed by the sub-process Returns Error 100.

The worst thing is that I cannot unmount the sudo aptitude purge dict-xdict command.

An error prompt box is also displayed when you delete the object with xinlide:

Someone on the Internet said "new force to install dictd on the line", the address is as follows: http://forum.ubuntu.org.cn/viewtopic.php? F = 77 & t = 236661 & START = 0

However, this method does not seem to work for me. My solution is:

Go to the/etc/init. d/directory and create the dictd file. Then run sudo aptitude purge dict-xdict to delete dict-xdict. After installation, the problem will not occur.
As follows:
Liuwei @ it-Liuwei :~ $ CD/etc/init. d/
Liuwei @ it-Liuwei:/etc/init. d $ sudo touch dictd
Liuwei @ it-Liuwei:/etc/init. d $ sudo aptitude purge dict-xdict
Reading the package list... Complete
Analyzing the dependency tree of the software package
Reading status information... Complete
Reading Extended State Information
Initializing package states... Complete
The following packages will be removed:
Dict-xdict {p}
0 packages upgraded, 0 newly installed, 1 to remove and 33 not upgraded.
Need to get 0b of archives. After unpacking 5, 554kb will be freed.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Complete
(Reading database... The system currently has a total of 127415 files and directories installed .)
Deleting dict-xdict...
Clearing the dict-xdict configuration file...
Reading the package list... Complete
Analyzing the dependency tree of the software package
Reading status information... Complete
Reading Extended State Information
Initializing package states... Complete
Writing extended state information... Complete

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.