Reply
Thread Tools
Posts: 29 | Thanked: 19 times | Joined on Feb 2010 @ Germany, Wolfenbuettel
#1
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

Last edited by chrischras; 2014-02-23 at 06:59. Reason: problem solved
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#2
Check for the status report of dpkg
Code:
dpkg -l | grep libqt4-sql
There might be a corrupted database?
 
Posts: 29 | Thanked: 19 times | Joined on Feb 2010 @ Germany, Wolfenbuettel
#3
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

Last edited by chrischras; 2014-02-19 at 15:14.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#4
seems like apt-get doesnt like the ':' contra '%3A' and interpretes the '%3A' as being a newer version
 

The Following User Says Thank You to For This Useful Post:
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#5
It is also worth noting that "apt-get upgrade" can generally be a bad idea on N900, especially when you have devel repos enabled
 
Posts: 29 | Thanked: 19 times | Joined on Feb 2010 @ Germany, Wolfenbuettel
#6
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 ":".
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#7
Originally Posted by nieldk View Post
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
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 29 | Thanked: 19 times | Joined on Feb 2010 @ Germany, Wolfenbuettel
#8
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?
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#9
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
[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
 
Posts: 29 | Thanked: 19 times | Joined on Feb 2010 @ Germany, Wolfenbuettel
#10
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) ...
 
Reply


 
Forum Jump


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