I met an error today when I tried to install youdao-dict in Ubuntu 16.04: youdao-dict depends on gstreamer0.10-plugins-ugly; however: Package gstreamer0.10-plugins-ugly is not installed.
This package has been canceled in ubuntu, we cannot install it. However it's not necessary for youdao-dict. So here is the process to remove this dependence.
- Extract deb file.
$ dpkg -X ./youdao-dict_1.1.0-0-ubuntu_amd64.deb youdao
- Extract control info(contains whole dependences info) from deb file.
$ dpkg -e ./youdao-dict_1.1.0-0-ubuntu_amd64.deb youdao/DEBIAN
- Edit control file and remove 'gstreamer0.10-plugins-ugly'.
- Repack the youdao directory to youdao.deb.
$ dpkg-deb -b youdao youdao.deb
- Install the new youdao.deb.
$ sudo dpkg -i youdao.deb
网友评论