package ttf-liberation 1.04~beta2-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #299303 reported by Akis
140
This bug affects 14 people
Affects Status Importance Assigned to Milestone
ttf-liberation (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: ttf-liberation

when installing or removing packages I always get this error:

                                                                        Error!

E: ttf-liberation: subprocess post-installation script returned error exit status 1

Ubuntu 8.10
expected to install packages without errors but I always get this error but packages install correctly
I am unable to remove this error

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: ttf-liberation 1.04~beta2-2
PackageArchitecture: all
SourcePackage: ttf-liberation
Title: package ttf-liberation 1.04~beta2-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-8-generic i686

Revision history for this message
Akis (r-top1) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

The root cause of the failure is
=====
Setting up ttf-liberation (1.04~beta2-2) ...
E: /var/lib/defoma/locked exists.
E: Another defoma process seems running, or you aren't root.
E: If you are root and defoma process isn't running undoubtedly,
E: it is possible that defoma might have aborted.
E: Please run defoma-reconfigure -f to fix its broken status.
dpkg: error processing ttf-liberation (--configure):
 subprocess post-installation script returned error exit status 1
=====

could you please run
sudo defoma-reconfigure -f

and tell if this helps.

Changed in ttf-liberation:
status: New → Incomplete
Revision history for this message
enyboricua (webjunk) wrote :
Download full text (9.8 KiB)

I'm having this problem too. I installed wine from repo and it works fine. I ran this command and I get the following

test@test:~$sudo defoma-reconfigure -f
Updating font configuration of fontconfig...
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category type1..
Updating category type1..
Updating category truetype..
Updating category cid..
Updating fontconfig cache for /usr/share/fonts/truetype/wqy /usr/share/fonts/truetype/dustin /usr/share/fonts/truetype/ttf-indic-fonts-core /usr/share/fonts/truetype/thai /usr/share/fonts/truetype/ttf-bitstream-vera /usr/share/fonts/truetype/ttf-lao /usr/share/fonts/truetype/unfonts /usr/share/fonts/truetype/ttf-arabeyes /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/freefont /usr/share/fonts/truetype/arphic /usr/share/fonts/truetype/ttf-malayalam-fonts /usr/share/fonts/truetype/kochi /usr/share/fonts/type1/gsfonts /usr/share/fonts/truetype/msttcorefonts
Updating fontconfig cache for /usr/share/fonts/truetype/wqy /usr/share/fonts/truetype/dustin /usr/share/fonts/truetype/ttf-indic-fonts-core /usr/share/fonts/truetype/thai /usr/share/fonts/truetype/ttf-bitstream-vera /usr/share/fonts/truetype/ttf-lao /usr/share/fonts/truetype/unfonts /usr/share/fonts/truetype/ttf-arabeyes /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/freefont /usr/share/fonts/truetype/arphic /usr/share/fonts/truetype/ttf-malayalam-fonts /usr/share/fonts/truetype/kochi /usr/share/fonts/type1/gsfonts /usr/share/fonts/truetype/msttcorefonts
Updating font configuration of gs...
Cleaning up category psprint..
Cleaning up category cmap..
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category gsfontderivative..
Cl...

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

enyboricua, the command has run flawlessly so it fixes your problem.

@Akis, is it still an issue ?

Revision history for this message
Akis (r-top1) wrote : RE: [Bug 299303] Re: package ttf-liberation 1.04~beta2-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Hi Jean, thanks for the reply.
I used the command line to solve this issue but its still not working.
I tried removing the liberation fonts both manually and through synaptic with root privileges but I still get the same error.
thanks again

> From: <email address hidden>
> To: <email address hidden>
> Date: Mon, 1 Dec 2008 21:57:55 +0000
> Subject: [Bug 299303] Re: package ttf-liberation 1.04~beta2-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
>
> enyboricua, the command has run flawlessly so it fixes your problem.
>
> @Akis, is it still an issue ?
>
> --
> package ttf-liberation 1.04~beta2-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
> https://bugs.launchpad.net/bugs/299303
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “ttf-liberation” source package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: ttf-liberation
>
> when installing or removing packages I always get this error:
>
>
> Error!
>
> E: ttf-liberation: subprocess post-installation script returned error exit status 1
>
> Ubuntu 8.10
> expected to install packages without errors but I always get this error but packages install correctly
> I am unable to remove this error
>
> ProblemType: Package
> Architecture: i386
> DistroRelease: Ubuntu 8.10
> ErrorMessage: subprocess post-installation script returned error exit status 1
> Package: ttf-liberation 1.04~beta2-2
> PackageArchitecture: all
> SourcePackage: ttf-liberation
> Title: package ttf-liberation 1.04~beta2-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
> Uname: Linux 2.6.27-8-generic i686

_________________________________________________________________

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

What's the output of the command:
sudo defoma-reconfigure -f

If you try to remove it, what's the output of the command:
sudo apt-get remove --purge ttf-liberation

Thanks.

Revision history for this message
Akis (r-top1) wrote :
Download full text (4.2 KiB)

> What's the output of the command:
> sudo defoma-reconfigure -f

Updating font configuration of fontconfig...
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category type1..
Updating category type1..
Updating category truetype..
Updating category cid..
Updating fontconfig cache for /usr/share/fonts/truetype/dustin /usr/share/fonts/truetype/ttf-indic-fonts-core /usr/share/fonts/truetype/thai /usr/share/fonts/truetype/ttf-bitstream-vera /usr/share/fonts/truetype/ttf-lao /usr/share/fonts/truetype/unfonts /usr/share/fonts/truetype/ttf-arabeyes /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/freefont /usr/share/fonts/truetype/arphic /usr/share/fonts/truetype/ttf-malayalam-fonts /usr/share/fonts/truetype/kochi /usr/share/fonts/type1/gsfonts /usr/share/fonts/truetype/msttcorefonts
Updating fontconfig cache for /usr/share/fonts/truetype/dustin /usr/share/fonts/truetype/ttf-indic-fonts-core /usr/share/fonts/truetype/thai /usr/share/fonts/truetype/ttf-bitstream-vera /usr/share/fonts/truetype/ttf-lao /usr/share/fonts/truetype/unfonts /usr/share/fonts/truetype/ttf-arabeyes /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/freefont /usr/share/fonts/truetype/arphic /usr/share/fonts/truetype/ttf-malayalam-fonts /usr/share/fonts/truetype/kochi /usr/share/fonts/type1/gsfonts /usr/share/fonts/truetype/msttcorefonts
Updating font configuration of gs...
Cleaning up category psprint..
Cleaning up category cmap..
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category gsfontderivative..
Cleaning up category type3..
Cleaning up category type1..
Updating category type1..
Updating category type3..
Updating category gsfontderivative..
Updating category truetype..
Updating category cid..
Updating category cmap..
Updating category psprint..
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for KochiMincho-Regular-JaH, defaulting to 0.
No CIDSupplement specified for KochiMincho-Regular, defaulting to 0.
No CIDSupplement specified for KochiGothic-Regular-JaH, defaulting to 0.
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
No CIDSupplement specified for UMingCN, defaulting to 0.
No CIDSupplement specified for KochiGothic-Regular, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for Batang-Bold, defaulting to 0.
Updating font configuration of libwmf0.2-7...
Cleaning up category type1..
Cleaning up category truetype..
Updating category truetype..
Updating category type1..
Updating font configuration of pango...
Cleaning up category xfont..
Updating category xfont..
Updating font configuration of psfontmgr...
Cleaning up category postscript..
Cleaning up category xfont..
Cleaning up category type1..
Cleaning up category pspreview..
Updating category pspreview..
Updating category type1..
Updating category xfont..
Updating category postscript..
Updating font configuration of x-ttcidfont-conf...
Cleaning up category cmap..
Cleaning up category cid..
Cleaning up category truetype..
Updating category truetype..
Updating category cid..
Updating category cmap..

> and If you try to remove...

Read more...

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Ok, we need to restore the file /etc/defoma/hints/ttf-liberation.hints then.

Firstly extract the hints file with the command!
dpkg-deb --fsys-tarfile /var/cache/apt/archives/ttf-liberation_1.04~beta2-2_all.deb | tar xvf - ./etc/defoma/hints/ttf-liberation.hints

This will extract the file ./etc/defoma/hints/ttf-liberation.hints . Then put this file into /etc/defoma/hints/
You should now be able to purge or reinstall the package ttf-liberation.

If /var/cache/apt/archives/ttf-liberation_1.04~beta2-2_all.deb is not there, then download it with:
sudo apt-get -d install --reinstall ttf-liberation

Hope this helps.

Revision history for this message
Akis (r-top1) wrote :

Thanks for the reply!
when I copy the command I get the "command not found" error
is there anything else can do?
I also re-installed the fonts but I still get the same errors

_________________________________________________________________

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

All the command must be entered in one line
"dpkg-deb --fsys-tarfile /var/cache/apt/archives/ttf-liberation_1.04~beta2-2_all.deb | tar xvf - ./etc/defoma/hints/ttf-liberation.hints"

Anyway, here is the file. Place it in /etc/defoma/hints/
Normally, you should be able to reinstall or remove the package.

Revision history for this message
Akis (r-top1) wrote :

When I insert the command: dpkg-deb --fsys-tarfile /var/cache/apt/archives/ttf-liberation_1.04~beta2-2_all.deb | tar xvf - ./etc/defoma/hints/ttf-liberation.hints
I get:
dpkg-deb --fsys-tarfile /var/cache/apt/archives/ttf-liberation_1.04~beta2-2_all.deb | tar xvf - ./etc/defoma/hints/ttf-liberation.hints
dpkg-deb: failed to read archive `/var/cache/apt/archives/ttf-liberation_1.04~beta2-2_all.deb': No such file or directory
tar: This does not look like a tar archive
tar: ./etc/defoma/hints/ttf-liberation.hints: Not found in archive
tar: Error exit delayed from previous errors

I gained root access by entering sudo -i to resolve permission issues (if any) I also tried to install the fonts from synaptic but still no luck
again, thanks for your time!

_________________________________________________________________

Revision history for this message
Pablo Martin Viva (pmviva) wrote :
Download full text (3.8 KiB)

I get the following error, I had the package installed as a dependency for other package, then I tried to autoremove it and purge it with apt but I get this error:

pablo@pablo-laptop:~$ sudo apt-get autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ttf-liberation
The following packages will be REMOVED:
  ttf-liberation*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1733kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 177807 files and directories currently installed.)
Removing ttf-liberation ...
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Bold.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Regular.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-BoldItalic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Italic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Bold.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Italic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Italic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-BoldItalic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Bold.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Regular.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf: not registered.
dpkg: error processing ttf-liberation (--purge):
 subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
 ttf-liberation
E: Sub-process /usr/bin/dpkg returned an error code (1)
pablo@pablo-laptop:~$ sudo apt-get purge ttf-liberation
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ttf-liberation*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1733kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 177807 files and directories currently installed.)
Removing ttf-liberation ...
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Bold.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Regular.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-BoldItalic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Italic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Bold.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Italic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Italic.ttf: not registered.
W: /usr/share/fonts/truetype/ttf...

Read more...

Revision history for this message
crislato (crislato) wrote : Re: [Bug 299303] Re: package ttf-liberation 1.04~beta2-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Download full text (4.4 KiB)

try "sudo apt-get remove --purge ttf-liberation"
or simply "sudo apt-get autoremove"

On Wed, Feb 18, 2009 at 6:23 PM, Pablo Martin Viva <email address hidden> wrote:

> I get the following error, I had the package installed as a dependency
> for other package, then I tried to autoremove it and purge it with apt
> but I get this error:
>
> pablo@pablo-laptop:~$ sudo apt-get autoremove --purge
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer
> required:
> ttf-liberation
> The following packages will be REMOVED:
> ttf-liberation*
> 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
> After this operation, 1733kB disk space will be freed.
> Do you want to continue [Y/n]? Y
> (Reading database ... 177807 files and directories currently installed.)
> Removing ttf-liberation ...
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Bold.ttf: not
> registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Regular.ttf:
> not registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-BoldItalic.ttf:
> not registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Italic.ttf: not
> registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Bold.ttf: not
> registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf:
> not registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Italic.ttf: not
> registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Italic.ttf: not
> registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-BoldItalic.ttf:
> not registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Bold.ttf: not
> registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Regular.ttf: not
> registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf: not
> registered.
> dpkg: error processing ttf-liberation (--purge):
> subprocess pre-removal script returned error exit status 1
> Errors were encountered while processing:
> ttf-liberation
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> pablo@pablo-laptop:~$ sudo apt-get purge ttf-liberation
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages will be REMOVED:
> ttf-liberation*
> 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
> After this operation, 1733kB disk space will be freed.
> Do you want to continue [Y/n]? Y
> (Reading database ... 177807 files and directories currently installed.)
> Removing ttf-liberation ...
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Bold.ttf: not
> registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-Regular.ttf:
> not registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationSerif-BoldItalic.ttf:
> not registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Italic.ttf: not
> registered.
> W: /usr/share/fonts/truetype/ttf-liberation/LiberationMono-Bold.ttf: not
> registered.
> W: /usr/share/...

Read more...

Revision history for this message
Akis (r-top1) wrote : RE: [Bug 299303] Re: package ttf-liberation 1.04~beta2-2 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Thanks, it worked!
_________________________________________________________________
Twice the fun—Share photos while you chat with Windows Live Messenger.
http://www.microsoft.com/windows/windowslive/products/messenger.aspx

Revision history for this message
Bocquet (johnl-bickel) wrote :

I've Tried sudo defoma-reconfigure -f.
It seems to work.
Thanks !
(Ubuntu 9.04 amd64)

Revision history for this message
David Jones (dj) wrote :
Download full text (6.5 KiB)

Thank you this seemed to work.owner@owner-desktop:~$ sudo defoma-reconfigure -f.
Updating font configuration of fontconfig...
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category type1..
Updating category type1..
Updating category truetype..
Updating category cid..
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-indic-fonts-core /usr/share/fonts/truetype/thai /usr/share/fonts/truetype/sazanami /usr/share/fonts/truetype/ttf-lao /usr/share/fonts/truetype/ttf-arabeyes /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/ttf-bengali-fonts /usr/share/fonts/type1/gsfonts /usr/share/fonts/truetype/wqy /usr/share/fonts/truetype/ttf-bitstream-vera /usr/share/fonts/truetype/unfonts /usr/share/fonts/truetype/ttf-kannada-fonts /usr/share/fonts/truetype/freefont /usr/share/fonts/truetype/ttf-telugu-fonts /usr/share/fonts/truetype/arphic /usr/share/fonts/truetype/ttf-oriya-fonts /usr/share/fonts/truetype/ttf-malayalam-fonts /usr/share/fonts/truetype/msttcorefonts
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-indic-fonts-core /usr/share/fonts/truetype/thai /usr/share/fonts/truetype/sazanami /usr/share/fonts/truetype/ttf-lao /usr/share/fonts/truetype/ttf-arabeyes /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/ttf-bengali-fonts /usr/share/fonts/type1/gsfonts /usr/share/fonts/truetype/wqy /usr/share/fonts/truetype/ttf-bitstream-vera /usr/share/fonts/truetype/unfonts /usr/share/fonts/truetype/ttf-kannada-fonts /usr/share/fonts/truetype/freefont /usr/share/fonts/truetype/ttf-telugu-fonts /usr/share/fonts/truetype/arphic /usr/share/fonts/truetype/ttf-oriya-fonts /usr/share/fonts/truetype/ttf-malayalam-fonts /usr/share/fonts/truetype/msttcorefonts
Updating font configuration of gs...
Cleaning up category psprint..
Cleaning up category cmap..
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category gsfontderivative..
Cleaning up category type3..
Cleaning up category type1..
Updating category type1..
Updating category type3..
Updating category gsfontderivative..
Updating category truetype..
Updating category cid..
Updating category cmap..
Updating category psprint..
No CIDSupplement specified for ZenHei-CNS, defaulting to 0.
No CIDSupplement specified for ZenHei, defaulting to 0.
No CIDSupplement specified for UMingCN, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for Batang-Bold, defaulting to 0.
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
Updating font configuration of libwmf0.2-7...
Cleaning up category type1..
Cleaning up category truetype..
Updating category truetype..
Updating category type1..
Updating font configuration of pango...
Cleaning up category xfont..
Updating category xfont..
Updating font configuration of psfontmgr...
Cleaning up category postscript..
Cleaning up category xfont..
Cleaning up category type1..
Cleaning up category pspreview..
Updating category pspreview..
Updating category type1..
Updating category xfont..
Updating category postscript..
Updating font configuration of x-ttcidfont-conf...
Cleaning...

Read more...

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

This bug report is being closed due to the various comments regarding this being fixed. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in ttf-liberation (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.