The Following 5 Users Say Thank You to peterleinchen For This Useful Post: | ||
![]() |
2015-01-09
, 23:00
|
|
Posts: 6,453 |
Thanked: 20,983 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
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,453 |
Thanked: 20,983 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
|
![]() |
2015-01-11
, 08:45
|
Posts: 646 |
Thanked: 1,124 times |
Joined on Jul 2010
@ Espoo, Finland
|
#40
|
![]() |
Tags |
archive.org |
Thread Tools | |
|
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:
SIM-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.