maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [solved] upgrade-problem with apt-get (https://talk.maemo.org/showthread.php?t=92646)

chrischras 2014-02-09 13:16

[solved] upgrade-problem with apt-get
 
Hello together,

i have a recurring problem with 'apt-get upgrade'. It seems, that three libs for libqt4 (and sql) are not updated. every time the following libs appears and every time no error will be displayed.
Does anyone know a solution?

Code:

home/user # apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages have been kept back:
  meegotouchtheme
The following packages will be upgraded:
  libqt4-sql libqt4-sql-sqlite libqt4-xml
3 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/221kB of archives.
After this operation, 12,3kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 41908 files and directories currently installed.)
Preparing to replace libqt4-sql 1:4.7.4~git20110505+cssu11 (using .../libqt4-sql_1%3a4.7.4~git20110505+cssu11_armel.deb) ...
Unpacking replacement libqt4-sql ...
Preparing to replace libqt4-sql-sqlite 1:4.7.4~git20110505+cssu11 (using .../libqt4-sql-sqlite_1%3a4.7.4~git20110505+cssu11_armel.deb) ...
Unpacking replacement libqt4-sql-sqlite ...
Preparing to replace libqt4-xml 1:4.7.4~git20110505+cssu11 (using .../libqt4-xml_1%3a4.7.4~git20110505+cssu11_armel.deb) ...
Unpacking replacement libqt4-xml ...
Setting up libqt4-sql (1:4.7.4~git20110505+cssu11) ...
Setting up libqt4-sql-sqlite (1:4.7.4~git20110505+cssu11) ...
Setting up libqt4-xml (1:4.7.4~git20110505+cssu11) ...
/home/user #


Solution:
------------
1. rename filenames for packages with wrong characters (in this case ':' for '%3a') in filename not updated in /opt/var/cache/apt/archives/: '(cd /opt/var/cache/apt/archives/; mv {wrong_package_filename} {filename})'
2. manually install this files with 'dpkg -i /opt/var/cache/apt/archives/{filename}'
3. execute: 'apt-get clean; apt-get update; apt-get upgrade' to verify

michaaa62 2014-02-19 08:02

Re: upgrade-problem with apt-get
 
Check for the status report of dpkg
Code:

dpkg -l | grep libqt4-sql
There might be a corrupted database?

chrischras 2014-02-19 15:12

Re: upgrade-problem with apt-get
 
Hej,
thank you for your answer!

Code:

dpkg -l | grep libqt4-sql
ii  libqt4-sql                1:4.7.4-git20110505+cssu11        Qt  4  SQL module
ii  libqt4-sql-module        1:4.7.4-git20110505+cssu11        Qt  4  SQLite plugin

dpkg -l | grep libqt4-xml
ii  libqt4-xml                1:4.7.4-git20110505+cssu11        Qt  4  XML module
ii  libqt4-xmlpatterns        1:4.7.4-git20110505+cssu11        Qt  4  XML Patterns module

It seems, that apt-get upgrade tries to update the same version (1:4.7.4-git20110505+cssu11) or does see there a little difference in installed and the versions to upgrade?

with regrads,
Christian

nieldk 2014-02-19 15:19

Re: upgrade-problem with apt-get
 
seems like apt-get doesnt like the ':' contra '%3A' and interpretes the '%3A' as being a newer version

misiak 2014-02-19 17:03

Re: upgrade-problem with apt-get
 
It is also worth noting that "apt-get upgrade" can generally be a bad idea on N900, especially when you have devel repos enabled;)

chrischras 2014-02-19 17:50

Re: upgrade-problem with apt-get
 
Yeah,
but also aptitude safe-upgrade show this repaeting upgrade behaviour.
Do i have to wait until next versions of packages appear with correct numbering or can i upgrade manually with dpkg and tell apt not to use this version with ":".

michaaa62 2014-02-19 19:41

Re: upgrade-problem with apt-get
 
Quote:

Originally Posted by nieldk (Post 1413371)
seems like apt-get doesnt like the ':' contra '%3A' and interpretes the '%3A' as being a newer version

Great find!!!
This is some kind of an encoding problem, usually url-encoding.
But may be file system encoding... What is the output of
Code:

ls -al /var/cache/apt

chrischras 2014-02-19 22:32

Re: upgrade-problem with apt-get
 
so, here output for lipqt4-sql:

Code:

/home/user # ls -al /opt/var/cache/apt/archives/ |grep libqt4-sql
-rw-r--r--    1 root    root        22814 Jun  7  2013 libqt4-sql-sqlite_1%3a4.7.4~git20110505+cssu10_armel.deb
-rw-r--r--    1 root    root        22858 Nov 24 18:38 libqt4-sql-sqlite_1%3a4.7.4~git20110505+cssu11_armel.deb
-rw-r--r--    1 root    root        22546 Sep 11  2012 libqt4-sql-sqlite_1%3a4.7.4~git20110505+cssu7_armel.deb
-rw-r--r--    1 root    root        97122 Jun  7  2013 libqt4-sql_1%3a4.7.4~git20110505+cssu10_armel.deb
-rw-r--r--    1 root    root        97172 Nov 24 18:38 libqt4-sql_1%3a4.7.4~git20110505+cssu11_armel.deb
-rw-r--r--    1 root    root        96854 Sep 11  2012 libqt4-sql_1%3a4.7.4~git20110505+cssu7_armel.deb

/home/user # ls -al /opt/var/cache/apt/archives/ |grep libqt4-xml
-rw-r--r--    1 root    root        100816 Jun  7  2013 libqt4-xml_1%3a4.7.4~git20110505+cssu10_armel.deb
-rw-r--r--    1 root    root        100860 Nov 24 18:38 libqt4-xml_1%3a4.7.4~git20110505+cssu11_armel.deb
-rw-r--r--    1 root    root        100584 Sep 11  2012 libqt4-xml_1%3a4.7.4~git20110505+cssu7_armel.deb
-rw-r--r--    1 root    root      1552278 Jun  7  2013 libqt4-xmlpatterns_1%3a4.7.4~git20110505+cssu10_armel.deb
-rw-r--r--    1 root    root      1552312 Dec 28 20:16 libqt4-xmlpatterns_1%3a4.7.4~git20110505+cssu11_armel.deb
-rw-r--r--    1 root    root      1552046 Sep 11  2012 libqt4-xmlpatterns_1%3a4.7.4~git20110505+cssu7_armel.deb
/home/user #

i googled a little bit, but apt-name to repair is not present.
Can i simple rename them?

michaaa62 2014-02-20 09:09

Re: upgrade-problem with apt-get
 
Yes, you can.
You may have to install them manually
Code:

sudo gainroot
dpkg -i /opt/var/cache/apt/archives/libqt4-sql-sqlite_1:4.7.4~git20110505+cssu11_armel.deb
dpkg -i /opt/var/cache/apt/archives/libqt4-sql_1:4.7.4~git20110505+cssu11_armel.deb
dpkg -i /opt/var/cache/apt/archives/libqt4-sql-xml_1:4.7.4~git20110505+cssu11_armel.deb

Please note: Although your cache for apt is on /opt, which is ext3-formatted file system, there is still a chance this just is a link to some folder on the fat32-formatted MyDocs partition. You could follow the link chain. This is the output for my N900
Quote:

[1|user@Nokia-N900|~]ls -al /var/cache/apt
lrwxrwxrwx 1 root root 18 Nov 17 10:15 /var/cache/apt -> /opt/var/cache/apt
[1|user@Nokia-N900|~]ls -al /opt/var/cache/apt/
drwxr-xr-x 3 root root 4096 Feb 19 21:15 .
drwxr-xr-x 3 root root 4096 Nov 17 10:15 ..
drwxr-xr-x 3 root root 20480 Feb 19 20:48 archives
-rw-r--r-- 1 root root 9000048 Feb 19 21:16 pkgcache.bin
-rw-r--r-- 1 root root 8934319 Feb 19 20:44 srcpkgcache.bin

chrischras 2014-02-20 13:31

Re: upgrade-problem with apt-get
 
Hej,
thx! So i went and renamed and unleashed dpkg of the line:

Code:

/home/user # dpkg -i /opt/var/cache/apt/archives/libqt4-xml_1:4.7.4~git20110505+cssu11_armel.deb
(Reading database ... 41981 files and directories currently installed.)
Preparing to replace libqt4-xml 1:4.7.4~git20110505+cssu11 (using .../libqt4-xml_1:4.7.4~git20110505+cssu11_armel.deb) ...
Unpacking replacement libqt4-xml ...
Setting up libqt4-xml (1:4.7.4~git20110505+cssu11) ...
/home/user # dpkg -i /opt/var/cache/apt/archives/libqt4-sql_1:4.7.4~git20110505+cssu11_armel.deb
(Reading database ... 41981 files and directories currently installed.)
Preparing to replace libqt4-sql 1:4.7.4~git20110505+cssu11 (using .../libqt4-sql_1:4.7.4~git20110505+cssu11_armel.deb) ...
Unpacking replacement libqt4-sql ...
Setting up libqt4-sql (1:4.7.4~git20110505+cssu11) ...
/home/user # dpkg -i /opt/var/cache/apt/archives/libqt4-sql-sqlite_1:4.7.4~git20110505+cssu11_arme
l.deb
(Reading database ... 41981 files and directories currently installed.)
Preparing to replace libqt4-sql-sqlite 1:4.7.4~git20110505+cssu11 (using .../libqt4-sql-sqlite_1:4.7.4~git20110505+cssu11_armel.deb) ...
Unpacking replacement libqt4-sql-sqlite ...
Setting up libqt4-sql-sqlite (1:4.7.4~git20110505+cssu11) ...
/home/user #

but apt is already stubborn:

Code:

/home/user # apt-get update
    ....

/home/user # apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages will be upgraded:
  libqt4-sql libqt4-sql-sqlite libqt4-xml
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/221kB of archives.
After this operation, 12,3kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 41981 files and directories currently installed.)
Preparing to replace libqt4-sql 1:4.7.4~git20110505+cssu11 (using .../libqt4-sql_1%3a4.7.4~git20110505+cssu11_armel.deb) ...
Unpacking replacement libqt4-sql ...
Preparing to replace libqt4-sql-sqlite 1:4.7.4~git20110505+cssu11 (using .../libqt4-sql-sqlite_1%3a4.7.4~git20110505+cssu11_armel.deb) ...
Unpacking replacement libqt4-sql-sqlite ...
Preparing to replace libqt4-xml 1:4.7.4~git20110505+cssu11 (using .../libqt4-xml_1%3a4.7.4~git20110505+cssu11_armel.deb) ...
Unpacking replacement libqt4-xml ...
Setting up libqt4-sql (1:4.7.4~git20110505+cssu11) ...
Setting up libqt4-sql-sqlite (1:4.7.4~git20110505+cssu11) ...
Setting up libqt4-xml (1:4.7.4~git20110505+cssu11) ...



All times are GMT. The time now is 07:21.

vBulletin® Version 3.8.8