Re: [debian] Installing *.ipk/*.opk part 2: apt-get-file
Ok, after some more searches, I found that a apt-get -f install with no package name after forced the installation of these packages. I will try with different ipk packages and report here. 2009/5/12 Rask Ingemann Lambertsen r...@sygehus.dk On Mon, May 11, 2009 at 12:13:39PM +0200, kimaidou wrote: No I did not. But now it it done, and after a apt-get update, I still get: You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: ledclock: Depends: python-pygtk but it is not going to be installed Depends: python-subprocess but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). Is it a specific hackable:1 problem ? I don't know. I've seen that but it is not going to be installed message many times when trying to install packages (from the official Debian repository) on Debian. Apt-get is most unhelpful when it comes to error messages, basicly just saying: I know exactly what the problem is, but I won't tell you. :-( But, to try to debug the problem, what happens if you say # apt-get --dry-run install python-pygtk python-subprocess ? -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [debian] Installing *.ipk/*.opk part 2: apt-get-file
Thanks for your help i change sh into bash, and it works now. My last pbm is my hackable apt-get wich does not want to install some packages.. but it is not related to your script. Thanks a lot 2009/5/11 Stefan Monnier monn...@iro.umontreal.ca debian-gta02:~# apt-get-file install http://projects.openmoko.org/frs/download.php/575/ledclock_0.6_all.ipk trap: 26: ERR: bad trap Any clue ? The script uses /bin/sh but actually relies on bashisms, so if your /bin/sh is actually something else (like dash, according to my crystal ball), you need to tweak the script with a patch such as the one below. Stefan === modified file 'apt-get-file' (properties changed: -x to +x) --- apt-get-file2009-05-10 19:41:44 + +++ apt-get-file2009-05-10 19:47:27 + @@ -23,9 +23,12 @@ exit 1 } -trap exit_clean ERR -set -o errexit -set -o errtrace +# Bashisms. +#trap exit_clean ERR +#set -o errexit +#set -o errtrace +# For Dash. +trap exit_clean ILL QUIT SEGV HUP 0 if [ --verbose = $1 ]; then shift ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [debian] Installing *.ipk/*.opk part 2: apt-get-file
On Mon, May 11, 2009 at 10:55:39AM +0200, kimaidou wrote: My last pbm is my hackable apt-get wich does not want to install some packages.. but it is not related to your script. Did you add the repository from part 1? # echo /etc/apt/sources.list.d/ril-oedepmappings.list \ # 'deb http://nospamnospam.homepage.dk/software/download/oedepmappings/ /' -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [debian] Installing *.ipk/*.opk part 2: apt-get-file
No I did not. But now it it done, and after a apt-get update, I still get: You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: ledclock: Depends: python-pygtk but it is not going to be installed Depends: python-subprocess but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). Is it a specific hackable:1 problem ? Thanks for your help 2009/5/11 Rask Ingemann Lambertsen r...@sygehus.dk On Mon, May 11, 2009 at 10:55:39AM +0200, kimaidou wrote: My last pbm is my hackable apt-get wich does not want to install some packages.. but it is not related to your script. Did you add the repository from part 1? # echo /etc/apt/sources.list.d/ril-oedepmappings.list \ # 'deb http://nospamnospam.homepage.dk/software/download/oedepmappings/ /' -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [debian] Installing *.ipk/*.opk part 2: apt-get-file
On Mon, May 11, 2009 at 12:13:39PM +0200, kimaidou wrote: No I did not. But now it it done, and after a apt-get update, I still get: You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: ledclock: Depends: python-pygtk but it is not going to be installed Depends: python-subprocess but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). Is it a specific hackable:1 problem ? I don't know. I've seen that but it is not going to be installed message many times when trying to install packages (from the official Debian repository) on Debian. Apt-get is most unhelpful when it comes to error messages, basicly just saying: I know exactly what the problem is, but I won't tell you. :-( But, to try to debug the problem, what happens if you say # apt-get --dry-run install python-pygtk python-subprocess ? -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[debian] Installing *.ipk/*.opk part 2: apt-get-file
For part 1, please see the mailing list archive: http://lists.openmoko.org/pipermail/community/2009-March/043753.html Below you will find a shell script to install a package from a .deb, .opk or .ipk file on a Debian system. It will - download the package if necessary. - repack gzipped tar archives if necessary (some *.ipk). - edit the control file for Debian compatibility (*.opk and *.ipk). - jump through hoops so apt-get can be used for installation, so dependencies can be resolved necessary. - delete all temporary files created. Dependencies: dpkg-dev wget file binutils tar gzip Usage: apt-get-file [--verbose] install file [apt-get options] I'm sure there are still small bugs around the edges, so this is only alpha quality. I'm posting the script now because it mostly does what it's supposed to do and I want to get some feedback. Example run: # ~rask/bin/apt-get-file install http://projects.openmoko.org/frs/download.php/575/ledclock_0.6_all.ipk --2009-05-10 06:49:26-- http://projects.openmoko.org/frs/download.php/575/ledclock_0.6_all.ipk Resolving projects.openmoko.org... 88.198.93.218 Connecting to projects.openmoko.org|88.198.93.218|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 13214 (13K) [application/binary] Saving to: `ledclock_0.6_all.ipk' 100%[] 13,214 --.-K/s in 0.1s 2009-05-10 06:49:28 (99.5 KB/s) - `ledclock_0.6_all.ipk' saved [13214/13214] ** Packages in archive but missing from override file: ** ledclock Wrote 1 entries to output Packages file. Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: python-pygtk python-subprocess python2.6-minimal Suggested packages: binfmt-support Recommended packages: python2.6 The following NEW packages will be installed: ledclock python-pygtk python-subprocess python2.6-minimal 0 upgraded, 4 newly installed, 0 to remove and 112 not upgraded. Need to get 1331kB/1344kB of archives. After this operation, 4780kB of additional disk space will be used. Do you want to continue [Y/n]? WARNING: The following packages cannot be authenticated! python-pygtk python-subprocess ledclock Install these packages without verification [y/N]? y Get:1 http://ftp.dk.debian.org experimental/main python2.6-minimal 2.6.1-3 [1330kB] Get:2 http://nospamnospam.homepage.dk python-pygtk 2.14.1-2 [576B] Get:3 http://nospamnospam.homepage.dk python-subprocess 2.6.1-3 [582B] Fetched 1331kB in 2s (451kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously deselected package python-pygtk. (Reading database ... 45694 files and directories currently installed.) Unpacking python-pygtk (from .../python-pygtk_2.14.1-2_all.deb) ... Selecting previously deselected package python2.6-minimal. Unpacking python2.6-minimal (from .../python2.6-minimal_2.6.1-3_armel.deb) ... Selecting previously deselected package python-subprocess. Unpacking python-subprocess (from .../python-subprocess_2.6.1-3_all.deb) ... Selecting previously deselected package ledclock. Unpacking ledclock (from .../ledclock_0.6_all.deb) ... Processing triggers for man-db ... Setting up python-pygtk (2.14.1-2) ... Setting up python2.6-minimal (2.6.1-3) ... Could not find platform dependent libraries exec_prefix Consider setting $PYTHONHOME to prefix[:exec_prefix] Setting up python-subprocess (2.6.1-3) ... Setting up ledclock (0.6) ... # And the script itself: #!/bin/sh # apt-get-file - Install package from .deb, .opk or .ipk file. # Copyright (c) 2009 Rask Ingemann Lambertsen ccc94...@vip.cybercity.dk # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see http://www.gnu.org/licenses/. exit_clean () { cd / || true [ -z ${APTSRC} ] || rm -rf -- ${APTSRC} [ -z ${APTLIST} ] || rm -rf -- ${APTLIST} [ -z ${PKG_TMPDIR} ] || rm -rf -- ${PKG_TMPDIR} exit 1 } trap exit_clean ERR set -o errexit set -o errtrace if [ --verbose = $1 ]; then shift AR_VERBOSE=v TAR_VERBOSE=v set -o xtrace else AR_VERBOSE= TAR_VERBOSE= fi if [ install != $1 ]; then echo Usage: $0 [--verbose] install file apt-get options exit 1 fi shift PKG_URL=$1; shift PKG_FILE=$(basename ${PKG_URL})
Re: [debian] Installing *.ipk/*.opk part 2: apt-get-file
Waou ! This is great ! Thanks for this Hum, I just tried and I got this error: debian-gta02:~# apt-get-file install http://projects.openmoko.org/frs/download.php/575/ledclock_0.6_all.ipk trap: 26: ERR: bad trap Any clue ? 2009/5/10 Rask Ingemann Lambertsen r...@sygehus.dk For part 1, please see the mailing list archive: http://lists.openmoko.org/pipermail/community/2009-March/043753.html Below you will find a shell script to install a package from a .deb, .opk or .ipk file on a Debian system. It will - download the package if necessary. - repack gzipped tar archives if necessary (some *.ipk). - edit the control file for Debian compatibility (*.opk and *.ipk). - jump through hoops so apt-get can be used for installation, so dependencies can be resolved necessary. - delete all temporary files created. Dependencies: dpkg-dev wget file binutils tar gzip Usage: apt-get-file [--verbose] install file [apt-get options] I'm sure there are still small bugs around the edges, so this is only alpha quality. I'm posting the script now because it mostly does what it's supposed to do and I want to get some feedback. Example run: # ~rask/bin/apt-get-file install http://projects.openmoko.org/frs/download.php/575/ledclock_0.6_all.ipk --2009-05-10http://projects.openmoko.org/frs/download.php/575/ledclock_0.6_all.ipk%0A--2009-05-1006:49:26-- http://projects.openmoko.org/frs/download.php/575/ledclock_0.6_all.ipk Resolving projects.openmoko.org... 88.198.93.218 Connecting to projects.openmoko.org|88.198.93.218|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 13214 (13K) [application/binary] Saving to: `ledclock_0.6_all.ipk' 100%[] 13,214 --.-K/s in 0.1s 2009-05-10 06:49:28 (99.5 KB/s) - `ledclock_0.6_all.ipk' saved [13214/13214] ** Packages in archive but missing from override file: ** ledclock Wrote 1 entries to output Packages file. Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: python-pygtk python-subprocess python2.6-minimal Suggested packages: binfmt-support Recommended packages: python2.6 The following NEW packages will be installed: ledclock python-pygtk python-subprocess python2.6-minimal 0 upgraded, 4 newly installed, 0 to remove and 112 not upgraded. Need to get 1331kB/1344kB of archives. After this operation, 4780kB of additional disk space will be used. Do you want to continue [Y/n]? WARNING: The following packages cannot be authenticated! python-pygtk python-subprocess ledclock Install these packages without verification [y/N]? y Get:1 http://ftp.dk.debian.org experimental/main python2.6-minimal 2.6.1-3 [1330kB] Get:2 http://nospamnospam.homepage.dk python-pygtk 2.14.1-2 [576B] Get:3 http://nospamnospam.homepage.dk python-subprocess 2.6.1-3 [582B] Fetched 1331kB in 2s (451kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously deselected package python-pygtk. (Reading database ... 45694 files and directories currently installed.) Unpacking python-pygtk (from .../python-pygtk_2.14.1-2_all.deb) ... Selecting previously deselected package python2.6-minimal. Unpacking python2.6-minimal (from .../python2.6-minimal_2.6.1-3_armel.deb) ... Selecting previously deselected package python-subprocess. Unpacking python-subprocess (from .../python-subprocess_2.6.1-3_all.deb) ... Selecting previously deselected package ledclock. Unpacking ledclock (from .../ledclock_0.6_all.deb) ... Processing triggers for man-db ... Setting up python-pygtk (2.14.1-2) ... Setting up python2.6-minimal (2.6.1-3) ... Could not find platform dependent libraries exec_prefix Consider setting $PYTHONHOME to prefix[:exec_prefix] Setting up python-subprocess (2.6.1-3) ... Setting up ledclock (0.6) ... # And the script itself: #!/bin/sh # apt-get-file - Install package from .deb, .opk or .ipk file. # Copyright (c) 2009 Rask Ingemann Lambertsen ccc94...@vip.cybercity.dk # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see http://www.gnu.org/licenses/. exit_clean () { cd / || true [ -z ${APTSRC} ] || rm -rf -- ${APTSRC} [ -z ${APTLIST} ] || rm -rf -- ${APTLIST} [ -z ${PKG_TMPDIR} ] || rm -rf -- ${PKG_TMPDIR} exit 1 }
Re: [debian] Installing *.ipk/*.opk part 2: apt-get-file
On Sun, May 10, 2009 at 06:48:20PM +0200, kimaidou wrote: Waou ! This is great ! Thanks for this Hum, I just tried and I got this error: debian-gta02:~# apt-get-file install http://projects.openmoko.org/frs/download.php/575/ledclock_0.6_all.ipk trap: 26: ERR: bad trap Any clue ? Maybe. What happens if you replace this #!/bin/sh with this #!/bin/bash (assuming you have bash installed)? -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [debian] Installing *.ipk/*.opk part 2: apt-get-file
debian-gta02:~# apt-get-file install http://projects.openmoko.org/frs/download.php/575/ledclock_0.6_all.ipk trap: 26: ERR: bad trap Any clue ? The script uses /bin/sh but actually relies on bashisms, so if your /bin/sh is actually something else (like dash, according to my crystal ball), you need to tweak the script with a patch such as the one below. Stefan === modified file 'apt-get-file' (properties changed: -x to +x) --- apt-get-file2009-05-10 19:41:44 + +++ apt-get-file2009-05-10 19:47:27 + @@ -23,9 +23,12 @@ exit 1 } -trap exit_clean ERR -set -o errexit -set -o errtrace +# Bashisms. +#trap exit_clean ERR +#set -o errexit +#set -o errtrace +# For Dash. +trap exit_clean ILL QUIT SEGV HUP 0 if [ --verbose = $1 ]; then shift ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community