I tried to deinstall liggs9 and install libgs9-common as was suggested by Synaptic. I got these errors:
(Database wordt ingelezen ... 438138 bestanden en mappen momenteel geïnstalleerd.) Uitpakken van .../libgs9-common_9.25~dfsg+1-0ubuntu0.18.04.2_all.deb wordt voorbereid... dpkg-maintscript-helper: error: file '/usr/share/ghostscript/9.25/iccprofiles/srgb.icc' not owned by package 'libgs9-common:all' dpkg-maintscript-helper: error: file '/usr/share/ghostscript/9.25/iccprofiles/ps_cmyk.icc' not owned by package 'libgs9-common:all' dpkg-maintscript-helper: error: file '/usr/share/ghostscript/9.25/iccprofiles/lab.icc' not owned by package 'libgs9-common:all' dpkg-maintscript-helper: error: file '/usr/share/ghostscript/9.25/iccprofiles/ps_gray.icc' not owned by package 'libgs9-common:all' dpkg-maintscript-helper: error: file '/usr/share/ghostscript/9.25/iccprofiles/default_gray.icc' not owned by package 'libgs9-common:all' dpkg-maintscript-helper: error: file '/usr/share/ghostscript/9.25/iccprofiles/ps_rgb.icc' not owned by package 'libgs9-common:all' dpkg-maintscript-helper: error: file '/usr/share/ghostscript/9.25/iccprofiles/gray_to_k.icc' not owned by package 'libgs9-common:all' dpkg-maintscript-helper: error: file '/usr/share/ghostscript/9.25/iccprofiles/sgray.icc' not owned by package 'libgs9-common:all' dpkg-maintscript-helper: error: file '/usr/share/ghostscript/9.25/iccprofiles/default_rgb.icc' not owned by package 'libgs9-common:all' dpkg-maintscript-helper: error: file '/usr/share/ghostscript/9.25/iccprofiles/default_cmyk.icc' not owned by package 'libgs9-common:all' dpkg-maintscript-helper: error: directory '/usr/share/ghostscript/9.25/iccprofiles' contains files not owned by package libgs9-common:all, cannot switch to symlink dpkg: fout bij verwerken van archief /var/cache/apt/archives/libgs9-common_9.25~dfsg+1-0ubuntu0.18.04.2_all.deb (--unpack): nieuw libgs9-common pakket pre-installation script subproces meldde een fout afsluitstatus 1 Fouten gevonden tijdens verwerken van: /var/cache/apt/archives/libgs9-common_9.25~dfsg+1-0ubuntu0.18.04.2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Een pakket kon niet geïnstalleerd worden. Aan het proberen om te herstellen: I removed the mentioned (just placed) files and did the installation, and it worked again. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to ghostscript in Ubuntu. https://bugs.launchpad.net/bugs/1801731 Title: package libgs9-common 9.25~dfsg+1-0ubuntu0.18.04.1 failed to install/upgrade: new libgs9-common package pre-installation script subprocess returned error exit status 1 Status in ghostscript package in Ubuntu: New Bug description: A week ago I had a problem with viewing EPS-files. (Now again). I posted the following bug-description: https://tex.stackexchange.com/questions/457182/problems-after-installing-ubuntu-18-04-and-eps I tried to reinstall libgs9, without result. There are especially problems with viewing EPS-files again, however the original problem is solved. I tried epstopdf and get: epstopdf myfile.eps Unrecoverable error: typecheck in .bind Operand stack: --nostringval-- typecheck --nostringval-- currentshared .currentglobal epstopdf ($Id: epstopdf.pl 45306 2017-09-14 21:41:37Z karl $) 2.27 !!! Error: Writing to gs failed, error code 255 ProblemType: Package DistroRelease: Ubuntu 18.04 Package: libgs9-common 9.25~dfsg+1-0ubuntu0.18.04.1 ProcVersionSignature: Ubuntu 4.15.0-38.41-generic 4.15.18 Uname: Linux 4.15.0-38-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.4 Architecture: amd64 Date: Mon Nov 5 14:41:59 2018 ErrorMessage: new libgs9-common package pre-installation script subprocess returned error exit status 1 InstallationDate: Installed on 2016-10-25 (740 days ago) InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719) PackageArchitecture: all Python3Details: /usr/bin/python3.6, Python 3.6.6, python3-minimal, 3.6.5-3ubuntu1 PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1 RelatedPackageVersions: dpkg 1.19.0.5ubuntu2.1 apt 1.6.6 SourcePackage: ghostscript Title: package libgs9-common 9.25~dfsg+1-0ubuntu0.18.04.1 failed to install/upgrade: new libgs9-common package pre-installation script subprocess returned error exit status 1 UpgradeStatus: Upgraded to bionic on 2018-10-27 (9 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/1801731/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp