I'm trying to install android-sdk-update-manager, but I get this error message: Fetch error: * In program paludis -i android-sdk-update-manager: * When performing install action from command line: * When executing install task: * When fetching 'dev-util/android-sdk-update-manager-3:0::gentoo': * Fetch error: Fetch of 'dev-util/android-sdk-update-manager-3:0::gentoo' failed * File 'android-sdk_r3-linux.tgz': failed integrity checks: Incorrect file size Reproducible: Always Steps to Reproduce: 1 rm /usr/portage/distfiles/android-sdk*. 2.paludis -i android-sdk-update-manager 3. Actual Results: The install process fails with this error message: Checking 'android-sdk_r3-linux.tgz'... incorrect size Fetch error: * In program paludis -i android-sdk-update-manager: * When performing install action from command line: * When executing install task: * When fetching 'dev-util/android-sdk-update-manager-3:0::gentoo': * Fetch error: Fetch of 'dev-util/android-sdk-update-manager-3:0::gentoo' failed * File 'android-sdk_r3-linux.tgz': failed integrity checks: Incorrect file size Expected Results: Be able to install android-sdk-update-manager bb alexander # paludis --info android-sdk-update-manager paludis 0.40.1 Paludis build information: Compiler: CXX: x86_64-pc-linux-gnu-g++ 4.1.2 (Gentoo 4.1.2 p1.1) CXXFLAGS: -O2 -march=nocona -pipe LDFLAGS: DATE: 2009-11-11T17:45:18-0500 Libraries: C++ Library: GNU libstdc++ 20070214 Paths: DATADIR: /usr/share LIBDIR: /usr/lib64 LIBEXECDIR: /usr/libexec SYSCONFDIR: /etc PYTHONINSTALLDIR: RUBYINSTALLDIR: System: Linux bb 2.6.30-gentoo-r5bb #3 SMP PREEMPT Thu Oct 29 17:35:22 EDT 2009 x86_64 Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz GenuineIntel GNU/Linux Reduced Privs: reduced_uid: 101 reduced_uid->name: paludisbuild reduced_uid->dir: /var/tmp/paludis reduced_gid: 1001 reduced_gid->name: paludisbuild Environment: Format: paludis Config dir: /etc/paludis World file: /var/db/pkg/world Repository installed-virtuals: format: installed_virtuals root: / Repository virtuals: format: virtuals Repository gentoo: format: ebuild location: /usr/portage append_repository_name_to_write_cache: true binary_destination: false binary_keywords: binary_uri_prefix: builddir: /var/tmp/paludis cache: /usr/portage/metadata/cache distdir: /usr/portage/distfiles eapi_when_unknown: 0 eapi_when_unspecified: 0 eclassdirs: /usr/portage/eclass ignore_deprecated_profiles: false layout: traditional names_cache: /usr/portage/.cache/names newsdir: /usr/portage/metadata/news profile_eapi_when_unspecified: 0 profiles: /usr/portage/profiles/default-linux/amd64 securitydir: /usr/portage/metadata/glsa setsdir: /usr/portage/sets sync: rsync://rsync.namerica.gentoo.org/gentoo-portage sync_options: use_manifest: use write_cache: /var/cache/paludis/metadata Package information: app-admin/eselect-compiler: (none) app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.4.4-r9 2.5.4-r2 2.6.2-r1 3.1.1-r1 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: (none) dev-util/cmake: 2.6.2 dev-util/confcache: (none) sys-apps/baselayout: 1.12.11.1 sys-apps/openrc: (none) sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13 2.63-r1 sys-devel/automake: 1.10.2 1.4_p6 1.5 1.7.9-r1 1.8.5-r3 1.9.6-r2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 (for sys-kernel/linux-headers::installed) Repository installed: format: vdb location: /var/db/pkg builddir: /var/tmp/paludis eapi_when_unknown: 0 names_cache: /var/db/pkg/.cache/names provides_cache: /var/db/pkg/.cache/provides root: / Repository installed-unpackaged: format: installed_unpackaged location: /var/db/paludis/repositories/installed-unpackaged root: / paludis@1258507220: [WARNING e.profile.deprecated] In thread ID '16279': ... In program paludis --info android-sdk-update-manager: ... When handling query 'android-sdk-update-manager': ... When parsing user package dep spec 'android-sdk-update-manager': ... When parsing generic package dep spec 'android-sdk-update-manager': ... When disambiguating package name 'android-sdk-update-manager': ... When finding all versions in some arbitrary order from packages matching */android-sdk-update-manager with filter all matches filtered through all matches: ... When finding category names containing package 'android-sdk-update-manager': ... When loading names for virtuals repository: ... When loading virtual packages for repository 'gentoo' ... When loading profiles '/usr/portage/profiles/default-linux/amd64' for repository 'gentoo': ... When using directory '/usr/portage/profiles/default-linux/amd64': ... Profile directory '/usr/portage/profiles/default-linux/amd64' is deprecated. See the file '/usr/portage/profiles/default-linux/amd64/deprecated' for details Package dev-util/android-sdk-update-manager-3:0::gentoo: paludis@1258507220: [WARNING e.ebuild.userpriv_disabled] In thread ID '16279': ... In program paludis --info android-sdk-update-manager: ... When handling query 'android-sdk-update-manager': ... When infoing 'dev-util/android-sdk-update-manager-3:0::gentoo': ... When checking permissions on '/var/tmp/paludis' for userpriv: ... Directory '/var/tmp/paludis' owned by group 'root', not 'paludisbuild', so cannot enable userpriv >>> Running ebuild phase killold as paludisbuild:paludisbuild... >>> Starting builtin_killold >>> Done builtin_killold >>> Completed ebuild phase killold >>> Running ebuild phases initmisc infovars as paludisbuild:paludisbuild... >>> Starting builtin_initmisc >>> Done builtin_initmisc >>> Starting builtin_infovars ACCEPT_KEYWORDS=amd64 CBUILD=x86_64-pc-linux-gnu CFLAGS=-O2 -march=nocona -pipe CHOST=x86_64-pc-linux-gnu CONFIG_PROTECT= CONFIG_PROTECT_MASK= CPPFLAGS= CTARGET= CXXFLAGS=-O2 -march=nocona -pipe DISTDIR=/usr/portage/distfiles FEATURES=sandbox sfperms FFLAGS= GENTOO_MIRRORS= INSTALL_MASK= LANG= LC_ALL=C LDFLAGS= LINGUAS= MAKEOPTS=-j2 PORTAGE_COMPRESS= PORTAGE_COMPRESS_FLAGS= PORTAGE_CONFIGROOT= PORTAGE_RSYNC_EXTRA_OPTS= PORTAGE_RSYNC_OPTS= PORTAGE_TMPDIR=/var/tmp/paludis PORTDIR=/usr/portage PORTDIR_OVERLAY= SYNC= USE=amd64 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text userland_GNU video_cards_intel video_cards_vesa amd64 >>> Done builtin_infovars >>> Completed ebuild phases initmisc infovars >>> Running ebuild phase tidyup as paludisbuild:paludisbuild... >>> Starting builtin_tidyup rm -fr /var/tmp/paludis/dev-util-android-sdk-update-manager-3-info >>> Done builtin_tidyup >>> Completed ebuild phase tidyup
jeroen@astrid /keeps/gentoo/cvs/gentoo-x86/dev-util/android-sdk-update-manager $ ebuild android-sdk-update-manager-3.ebuild fetch Appending /keeps/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY... >>> Downloading 'http://dl.google.com/android/android-sdk_r3-linux.tgz' --2009-11-18 02:25:38-- http://dl.google.com/android/android-sdk_r3-linux.tgz Resolving dl.google.com (dl.google.com)... 209.85.229.91, 209.85.229.190, 209.85.229.93, ... Connecting to dl.google.com (dl.google.com)|209.85.229.91|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 15986291 (15M) [application/x-tar] Saving to: `/newaches/gentoo/distfiles/android-sdk_r3-linux.tgz' 100%[=============================================>] 15,986,291 1.77M/s in 8.7s 2009-11-18 02:25:47 (1.76 MB/s) - `/newaches/gentoo/distfiles/android-sdk_r3-linux.tgz' saved [15986291/15986291] * android-sdk_r3-linux.tgz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] Can't reproduce that. Please delete that file in your distfiles directory and try again. Oh, and update your profile - it's ancient. And your compiler too. I am no expert on paludis output, but it seems to suggest that fetching failed, whilst it doesn't mention what (URL) it tried to fetch, or indeed if fetching succeeded and it's the integrity check that failed.
(In reply to comment #1) > jeroen@astrid /keeps/gentoo/cvs/gentoo-x86/dev-util/android-sdk-update-manager > $ ebuild android-sdk-update-manager-3.ebuild fetch > Appending /keeps/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY... > >>> Downloading 'http://dl.google.com/android/android-sdk_r3-linux.tgz' > --2009-11-18 02:25:38-- http://dl.google.com/android/android-sdk_r3-linux.tgz > Resolving dl.google.com (dl.google.com)... 209.85.229.91, 209.85.229.190, > 209.85.229.93, ... > Connecting to dl.google.com (dl.google.com)|209.85.229.91|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 15986291 (15M) [application/x-tar] > Saving to: `/newaches/gentoo/distfiles/android-sdk_r3-linux.tgz' > > 100%[=============================================>] 15,986,291 1.77M/s in > 8.7s > > 2009-11-18 02:25:47 (1.76 MB/s) - > `/newaches/gentoo/distfiles/android-sdk_r3-linux.tgz' saved [15986291/15986291] > > * android-sdk_r3-linux.tgz RMD160 SHA1 SHA256 size ;-) ... > [ ok ] > * checking ebuild checksums ;-) ... > [ ok ] > * checking auxfile checksums ;-) ... > [ ok ] > * checking miscfile checksums ;-) ... > [ ok ] > > Can't reproduce that. Please delete that file in your distfiles directory and > try again. Oh, and update your profile - it's ancient. And your compiler too. I > am no expert on paludis output, but it seems to suggest that fetching failed, > whilst it doesn't mention what (URL) it tried to fetch, or indeed if fetching > succeeded and it's the integrity check that failed. > I removed all the android distfiles (again) and tried again. This is the output: Trying to fetch 'http://mirror.datapipe.net/gentoo/distfiles/android-sdk_r3-linux.tgz' to 'android-sdk_r3-linux.tgz'... wget -T 30 -t 1 --continue -O /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- http://mirror.datapipe.net/gentoo/distfiles/android-sdk_r3-linux.tgz --2009-11-17 20:33:52-- http://mirror.datapipe.net/gentoo/distfiles/android-sdk_r3-linux.tgz Resolving mirror.datapipe.net... 64.27.65.115 Connecting to mirror.datapipe.net|64.27.65.115|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2009-11-17 20:33:55 ERROR 404: Not Found. Trying to fetch 'http://lug.mtu.edu/gentoo//distfiles/android-sdk_r3-linux.tgz' to 'android-sdk_r3-linux.tgz'... [32;01m* [0m Not attempting resume using /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- (too small) rm -f /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- wget -T 30 -t 1 --continue -O /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- http://lug.mtu.edu/gentoo//distfiles/android-sdk_r3-linux.tgz --2009-11-17 20:33:55-- http://lug.mtu.edu/gentoo//distfiles/android-sdk_r3-linux.tgz Resolving lug.mtu.edu... 141.219.155.230, 2001:48a8:0:8:0:3:0:232 Connecting to lug.mtu.edu|141.219.155.230|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2009-11-17 20:33:57 ERROR 404: Not Found. Trying to fetch 'http://gentoo.chem.wisc.edu/gentoo//distfiles/android-sdk_r3-linux.tgz' to 'android-sdk_r3-linux.tgz'... [32;01m* [0m Not attempting resume using /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- (too small) rm -f /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- wget -T 30 -t 1 --continue -O /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- http://gentoo.chem.wisc.edu/gentoo//distfiles/android-sdk_r3-linux.tgz --2009-11-17 20:33:57-- http://gentoo.chem.wisc.edu/gentoo//distfiles/android-sdk_r3-linux.tgz Resolving gentoo.chem.wisc.edu... 128.104.70.13 Connecting to gentoo.chem.wisc.edu|128.104.70.13|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2009-11-17 20:33:58 ERROR 404: Not Found. Trying to fetch 'http://mirror.fslutd.org/linux/distributions/gentoo//distfiles/android-sdk_r3-linux.tgz' to 'android-sdk_r3-linux.tgz'... [32;01m* [0m Not attempting resume using /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- (too small) rm -f /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- wget -T 30 -t 1 --continue -O /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- http://mirror.fslutd.org/linux/distributions/gentoo//distfiles/android-sdk_r3-linux.tgz --2009-11-17 20:33:58-- http://mirror.fslutd.org/linux/distributions/gentoo//distfiles/android-sdk_r3-linux.tgz Resolving mirror.fslutd.org... 216.240.187.103, 216.240.187.102 Connecting to mirror.fslutd.org|216.240.187.103|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1208 (1.2K) [text/html] Saving to: `/usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL-' 0% [ ] 0 --.-K/s 100%[======================================>] 1,208 --.-K/s in 0s 2009-11-17 20:33:59 (59.3 MB/s) - `/usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL-' saved [1208/1208] mv -f /usr/portage/distfiles/android-sdk_r3-linux.tgz.-PARTIAL- /usr/portage/distfiles/android-sdk_r3-linux.tgz Checking 'android-sdk_r3-linux.tgz'... incorrect size Fetch error: * In program paludis -i android-sdk-update-manager: * When performing install action from command line: * When executing install task: * When fetching 'dev-util/android-sdk-update-manager-3:0::gentoo': * Fetch error: Fetch of 'dev-util/android-sdk-update-manager-3:0::gentoo' failed * File 'android-sdk_r3-linux.tgz': failed integrity checks: Incorrect file size
Odd, looks like some kind of a mirror problem. The mirror is sending you some html instead of the actual file (which it shouldn't have since the ebuild is RESTRICT=nomirror. If that file actually has some text/html in it and it isn't huge can you attach it to this bug? It might help when we refer this to whoever runs that mirror.
(In reply to comment #3) > Odd, looks like some kind of a mirror problem. The mirror is sending you some > html instead of the actual file (which it shouldn't have since the ebuild is > RESTRICT=nomirror. > > If that file actually has some text/html in it and it isn't huge can you attach > it to this bug? It might help when we refer this to whoever runs that mirror. > I'm pasting the contents here because I keep running into the fhslice error when attaching. <html> <head> <title>fslutd.org</title> <script type="text/javascript" src="/js/general.js"></script> <script type="text/javascript"> ChkRequestEnc('YToyMTp7aTowO3M6MTk6IjIwMDktMTEtMTggMTI6MzM6NTgiO2k6MTtzOjc6IjM2NDQ1MjIiO2k6MjtOO2k6MztzOjExOiJXZ2V0LzEuMTEuMSI7aTo0O3M6NjM6Ii9saW51eC9kaXN0cmlidXRpb25zL2dlbnRvby8vZGlzdGZpbGVzL2FuZHJvaWQtc2RrX3IzLWxpbnV4LnRneiI7aTo1O3M6MTI6IjIwOC41NC45NC45NSI7aTo2O3M6MToiMiI7aTo3O3M6MDoiIjtpOjg7czowOiIiO2k6OTtzOjI6IlVTIjtpOjEwO3M6MTA6IldBU0hJTkdUT04iO2k6MTE7czo4OiJJU1NBUVVBSCI7aToxMjtzOjY6IjI2NTc4NCI7aToxMztzOjEwOiJmc2x1dGQub3JnIjtpOjE0O3M6NzA6Imh0dHA6Ly9zZWFyY2hwb3J0YWwuaW5mb3JtYXRpb24uY29tLz9vX2lkPTExOTAzNyZkb21haW5uYW1lPWZzbHV0ZC5vcmciO2k6MTU7TjtpOjE2O047aToxNztOO2k6MTg7TjtpOjE5O047aToyMDtOO30='); </script> <script type="text/javascript"> </script> </head> <frameset rows="100%,*" frameborder="no" border="0" framespacing="0"> <!-- SCC a2 --> <frame src="http://searchportal.information.com/?o_id=119037&domainname=fslutd.org"> <noframes> <body bgcolor="#ffffff" text="#000000"> <a href="http://searchportal.information.com/?o_id=119037&domainname=fslutd.org">Click here to enter</a>. </body> </noframes> </frameset> </html>
Is it really the mirror's fault? The mirror isn't supposed to have that file -- the real problem is that the package manager is trying mirrors despite RESTRICT=mirror in the ebuild. I think you need to update paludis to a recent version. After you've done that, see if you can reproduce the fetch bug.
I dunno - perhaps we should have some kind of specification on how a mirror behaves if a file doesn't exist. The same problem could come up with a new ebuild before all the mirrors refresh. I agree that trying to fetch a mirror restricted file from a mirror is a bit brain-dead... :)
Works for us, then?
No objections - the ebuild/manifest are fine - at most this is a mirror and package manager issue - a fairly minor one.