fails to install or remove upon dpkg or apt-gotten for install

Asked by darkraven

Binary package hint: libglade-java

have same issues with libgtk-java and libgtk-cni files.cant remove or install once apt-get or dpkg -i starts.

gtk sources depend upon some of these files.not an unmet dependency error, just refuses to install/remove as script fails.

using 8.04 ppc version.

ProblemType: Package
Architecture: powerpc
Date: Sat Aug 2 13:31:36 2008
Dependencies:

DistroRelease: Ubuntu 8.04
ErrorMessage: dependency problems - leaving unconfigured
Package: libglade-java-dev None [modified: /var/lib/dpkg/info/libglade-java-dev.list]
PackageArchitecture: powerpc
SourcePackage: libglade-java
Title: package libglade-java-dev None [modified: /var/lib/dpkg/info/libglade-java-dev.list] failed to install/upgrade: dependency problems - leaving unconfigured
Uname: Linux 2.6.24-19-powerpc ppc

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
darkraven (jasminr) said :
#1
Revision history for this message
Cesare Tirabassi (norsetto) said :
#2

There is no bug that I can see; your file system is possibly corrupted since the error is:

dpkg (subprocess): unable to execute post-installation script: Exec format error

coming from libgnome-cni, which is however fine if I check your arch/version in the archive.
Can you give this command in a terminal an attach here the resulting postinst file:

cat /var/lib/dpkg/info/libgnome-cni.postinst > postinst

?

Revision history for this message
darkraven (jasminr) said :
#3

here you go.thought so, but not sure how it happened.all i did was base
install on ppc and add some packages i needed, moreso from a dselect, as
it takes quite some time to install apps otherwise.i copied my home
folder from a intel box, but that shouldn't mess things up.

Cesare Tirabassi wrote:
> There is no bug that I can see; your file system is possibly corrupted
> since the error is:
>
> dpkg (subprocess): unable to execute post-installation script: Exec
> format error
>
> coming from libgnome-cni, which is however fine if I check your arch/version in the archive.
> Can you give this command in a terminal an attach here the resulting postinst file:
>
> cat /var/lib/dpkg/info/libgnome-cni.postinst > postinst
>
> ?
>
> ** Changed in: libglade-java (Ubuntu)
> Status: New => Incomplete
>
> ** Changed in: ubuntu
> Sourcepackagename: libglade-java => None
>
>

Revision history for this message
Cesare Tirabassi (norsetto) said :
#4

Your postinst seems to be fine.
Can you check if that file and /var/lib/dpkg/info/ have the executable bit set? Can you check if /var is mounted with the exec flag set?
Can you try to manually execute that script?
If worst come to worse, you can try to force the installation with:

sudo dpkg --force-all -i /var/cache/apt/archives/libgnome-cni_2.12.7-4_powerpc.deb

Its a dangerous command to give, so try other solutions first.
This may not solve others problem you have which could be related to a corrupt file system but at least should solve this one.
Anyhow, I'm transforming this into a question since there doesn't seem to be any bug.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#5

>no such file or directory when forcing....how do i have >corrupted FS with a CLEAN install?

I just stumbled against this reply by pure chance. Pls. do not add comments to a bug report marked invalid, they won't be seen by anyone.
As for your question, probably you have cleared your apt cache. Try downloading the deb package and then retry the command (but change the path to the location where you saved the deb package).

As for how your file system is corrupt, I can only guess a power outage, or perhaps a buggy kernel driver, who knows.

Can you help with this problem?

Provide an answer of your own, or ask darkraven for more information if necessary.

To post a message you must log in.