maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Problem with libsdl-ttf2.0 (https://talk.maemo.org/showthread.php?t=59573)

DaSilva 2010-08-01 21:37

Problem with libsdl-ttf2.0
 
I have a strange problem with libsdl-ttf2.0 and libsdl-ttf2.0-0 after I tried to install the new PyGame 1.9.1 build. I think both packages do the same and you can only install one of them at the same time. The problem is that every package seems to use libsdl-ttf2.0-0 but PyGame 1.9.1 libsdl-ttf2.0 and now I am stuck and I don't know how to solve the problem:

Code:

Nokia-N900:~# apt-get install python-pygame
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pygame is already the newest version.
python-pygame set to manually installed.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  python-pygame: Depends: libsdl-ttf2.0 (>= 2.0.9) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Nokia-N900:~# apt-get install libsdl-ttf2.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libsdl-ttf2.0
0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
2 not fully installed or removed.
Need to get 0B/13,5kB of archives.
After this operation, 77,8kB of additional disk space will be used.
(Reading database ... 48590 files and directories currently installed.)
Unpacking libsdl-ttf2.0 (from .../libsdl-ttf2.0_2.0.9-1osso0+0m5_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/libsdl-ttf2.0_2.0.9-1osso0+0m5_armel.deb (--unpack):
 trying to overwrite `/usr/lib/libSDL_ttf-2.0.so.0.6.3', which is also in package libsdl-ttf2.0-0
Errors were encountered while processing:
 /var/cache/apt/archives/libsdl-ttf2.0_2.0.9-1osso0+0m5_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I cannot even install/upgrade other packages because of this.
How can I solve that problem?
Thanks

Taomyn 2010-08-02 10:09

Re: Problem with libsdl-ttf2.0
 
Try looking in this thread as I had something similar: http://talk.maemo.org/showthread.php?t=59553

rpgabriel 2010-08-02 10:40

Re: Problem with libsdl-ttf2.0
 
Same here, and I don't have a clue how to fiz it. Maybe I will reflash-it, but I rather prefer not doing so...

DaSilva 2010-08-02 10:43

Re: Problem with libsdl-ttf2.0
 
I think even a re-flash doesn't help if you want to install the same packages again.
There is a bug report on https://bugs.maemo.org/show_bug.cgi?id=10450 for this. I hope it will be fixed soon.

vStone 2010-08-06 05:56

Re: Problem with libsdl-ttf2.0
 
The problem seems to be caused because apt tries to install both libsdl-ttf2.0-0 and libsdl-ttf2.0.

I resolved this by force removing the installed libsdl-ttf2 version:

Code:

$ dpkg --force-all -r libsdl-ttf2.0-0
Afterward running apt-get install -f resolved the issue and installed both packages without problems. (logic? no clue.)

shazosbourne 2010-08-06 07:43

Re: Problem with libsdl-ttf2.0
 
Quote:

Originally Posted by vStone (Post 777400)
The problem seems to be caused because apt tries to install both libsdl-ttf2.0-0 and libsdl-ttf2.0.

I resolved this by force removing the installed libsdl-ttf2 version:

Code:

$ dpkg --force-all -r libsdl-ttf2.0-0
Afterward running apt-get install -f resolved the issue and installed both packages without problems. (logic? no clue.)

This fixed mine. Thanks a lot vStone!

TDSii 2010-08-13 22:13

Re: Problem with libsdl-ttf2.0
 
Quote:

Originally Posted by vStone (Post 777400)
The problem seems to be caused because apt tries to install both libsdl-ttf2.0-0 and libsdl-ttf2.0.

I resolved this by force removing the installed libsdl-ttf2 version:

Code:

$ dpkg --force-all -r libsdl-ttf2.0-0
Afterward running apt-get install -f resolved the issue and installed both packages without problems. (logic? no clue.)

this solves the issue, many thanks. can you tell us why we removed libsdl-ttf2.0-0 and not libsdl-ttf2.0 ?

also, how different is apt-get install -f from apt-get -f install

Helmuth 2010-08-30 18:41

Re: Problem with libsdl-ttf2.0
 
Hmm... apt-get install -f is not working at my device. I got following error:

Quote:

Errors were encountered while processing:
/var/cache/archives/libsdl-ttf2.0-0_2.0.9-1maemo2_armel.deb
E: Sub-process /usr/bindpkg returned an error code (1)
Could someone please try to help me? :confused:

Helmuth 2010-08-30 18:58

Re: Problem with libsdl-ttf2.0
 
Okay, solved using activated Extra-Devel to get the newest version. :)

pH5 2010-09-02 18:43

Re: Problem with libsdl-ttf2.0
 
Quote:

Originally Posted by TDSii (Post 785809)
this solves the issue, many thanks. can you tell us why we removed libsdl-ttf2.0-0 and not libsdl-ttf2.0 ?

libsdl-ttf2.0 is from the Nokia repositories, libsdl-ttf2.0-0 is from Extras-devel.

libsdl-ttf2.0-0 <= 2.0.9-1maemo2 contains the same library as libsdl-ttf2.0 - they can't be installed at the same time.

libsdl-ttf2.0-0 >= 2.0.9-1maemo3 is just an empty package that depends on libsdl-ttf2.0

Now if you installed a game that depends on libsdl-ttf2.0-0 (and have 2.0.9-1maemo2 installed), you can't install a game that depends on libsdl-ttf2.0 later, because those two packages conflict.
You can't just update from libsdl-ttf2.0-0 2.0.9-1maemo2 to 2.0.9-1maemo3 either, because the latter depends on libsdl-ttf2.0, which can't be installed as long as libsdl-ttf2.0-0 2.0.9-1maemo2 is still there.
Now after force-deinstalling libsdl-ttf2.0-0 2.0.9-1maemo2, apt-get -f install can install the libsdl-ttf2.0 + libsdl-ttf2.0-0 2.0.9-1maemo3 combination to make both games depending on libsdl-ttf2.0 and games depending on libsdl-ttf2.0-0 happy.


All times are GMT. The time now is 23:12.

vBulletin® Version 3.8.8