| The Following 5 Users Say Thank You to peterleinchen For This Useful Post: | ||
|
|
2015-01-09
, 23:00
|
|
|
Posts: 6,446 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#32
|

| The Following 3 Users Say Thank You to pichlo For This Useful Post: | ||
|
|
2015-01-09
, 23:02
|
|
Posts: 539 |
Thanked: 518 times |
Joined on May 2010
@ nanaurbusiness
|
#33
|
@wicket,
Thank you for your idea and script. To improve the downloading time I've adapted the script so that apt-get is only called once, after collecting all package names in one single variable.
I'm now, in one go, downloading 1558 packages
The advantage of this is that apt-get doesn't have to keep reading the index and resolving dependencies and whatever it does.
Here's my version:
Code:#!/bin/sh apt-get update mkdir -p /home/user/MyDocs/debs/archives/partial PKGS="" for pkg in $(dpkg -l | grep ^ii | cut -f3 -d' '); do apt-cache policy $pkg | grep -q nokia.com || continue echo "adding $pkg" PKGS="$PKGS $pkg" done apt-get --reinstall -y -d -odir::cache=/home/user/MyDocs/debs \ install $PKGS
E: There are problems and -y was used without --force-yes
|
|
2015-01-09
, 23:27
|
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#34
|
Purge the installers
Thanks.About the N9, I have no idea. Don't have a working one.
|
|
2015-01-10
, 18:33
|
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#35
|
I'm only getting
and no packages were downloaded...
Edit: Nevermind, simply adding '--force-yes' like in wickets script did the trick.

| The Following 5 Users Say Thank You to reinob For This Useful Post: | ||
|
|
2015-01-10
, 19:26
|
|
Posts: 54 |
Thanked: 54 times |
Joined on Dec 2013
@ Austria
|
#36
|
#!/bin/sh
apt-get update
mkdir -p /home/user/MyDocs/debs/archives/partial
for pkg in `dpkg -l | cut -f 3 -d ' '`; do
apt-cache policy $pkg | grep -q nokia.com && echo "Downloading $pkg" || continue
apt-get --reinstall -y --force-yes -d -odir::cache=/home/user/MyDocs/debs install $pkg
done
| The Following User Says Thank You to Shadowdog For This Useful Post: | ||
|
|
2015-01-10
, 21:28
|
|
|
Posts: 6,446 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#37
|
After that i copied the .sh-file tomy phone (/home/user/) and run as root chmod 744 for the file.
Than i tried to run the script, but the only thing that happened was the message that there is no such file in /bin/sh.
So i tried to copy the file there (cp -R as root), which didnīt work because of no rights.
| The Following 8 Users Say Thank You to pichlo For This Useful Post: | ||
|
|
2015-01-10
, 21:52
|
|
Posts: 54 |
Thanked: 54 times |
Joined on Dec 2013
@ Austria
|
#38
|

|
|
2015-01-10
, 22:30
|
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#39
|
but requires a bit of shell knowledge
|
|
2015-01-11
, 08:45
|
|
Posts: 646 |
Thanked: 1,124 times |
Joined on Jul 2010
@ Espoo, Finland
|
#40
|
N9:
1158 files
1.1G
N900:
1776 files
247M
@reinob
somehow your script bailed out for me
reinstallation of dtg-installer is not possible
package libaux6 is not available
Full output:
Reading package lists Building dependency tree Reading state information... Done Building dependency tree Reading state information... Done Some packages could not be installed. This maymean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: mp-harmattan-480-pr: Depends: libxml2 (= 2.7.8-0maemo6+0m8) but 2.8.0-0maemo4+0m6 is to be installed Depends: libgpg-error0 (= 1.6-1.1+0m6) Depends: libogg0 (= 1.1.3-4+0m6) but 1.2.2~dfsg-1 is to be installed Depends: twitter (= 1.3.50+0m8) but 1.3.95+0m8 is to be installed Depends: usbutils (= 0.72-8osso2+0security1+0m6) but 1:005-3 is to be installed Depends: gnupg (= 1.4.6-7+0m6) but 1.4.15 is to be installed Depends: lzop (= 1.02~rc1-2maemo2+0m6+0security3+0m6) but 1.03-3 is tobe installed Depends: nolo-ssu-pr-480 (= 40.2012.21-3.480.04.1) but it is not goingto be installed E: Broken packagesSIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!
Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257
editsignature, http://talk.maemo.org/profile.php?do=editsignature
Last edited by peterleinchen; 2015-01-09 at 22:02.