Package: google-android-ndk-installer
Version: 21d
Severity: normal

Hello,

I had a network failure while upgrading the package, and the download
failed.

While trying to restart the configuration of the package, I had the
following error:

  Archive:  android-ndk-r21d-linux-x86_64.zip                                   
                                                                   
    End-of-central-directory signature not found.  Either this file is not      
                                                                   
    a zipfile, or it constitutes one disk of a multi-part archive.  In the      
                                                                   
    latter case the central directory and zipfile comment will be found on      
                                                                   
    the last disk(s) of this archive.                                           
                                                                   
  unzip:  cannot find zipfile directory in one of 
android-ndk-r21d-linux-x86_64.zip or
          android-ndk-r21d-linux-x86_64.zip.zip, and cannot find 
android-ndk-r21d-linux-x86_64.zip.ZIP, period.                                  
  

The archive was partially downloaded, and the package did not try to
continue.

I've change the makefile to the attached version to make wget --continue
really continue the download, and it seem to work (I've a slow
connection, and didn't yet wait the 4h of the download).

Thanks,
Rémi.


PKG_SOURCE_URL:=${DL_MIRROR}/android/repository/${PKG_SOURCE}

DL_DIR=/var/cache/google-android-${PKG_NAME}-installer
INSTALL_DIR=/usr/lib/${INS_DIR}
DOC_DIR=/usr/share/doc/google-android-${PKG_NAME}

all: $(UNPACK_DIR)/source.properties

install: all
        $(eval UNPACK_DIR=$(DL_DIR)/$(shell unzip -Z -1 $(DL_DIR)/$(PKG_SOURCE) 
| head -1))
        install -d -m0755 $(DOC_DIR)
        @if [ -f $(UNPACK_DIR)source.properties ]; then \
                install -m0644 $(UNPACK_DIR)source.properties $(DOC_DIR)/ ; \
        fi
        @if [ -f $(UNPACK_DIR)NOTICE.txt ]; then \
                gzip -9 --stdout $(UNPACK_DIR)/NOTICE.txt > 
$(DOC_DIR)/copyright.gz ; \
        fi
        find ${DOC_DIR} | sort >> 
/var/lib/dpkg/info/google-android-${PKG_NAME}-installer.list
        chmod -R a+rX $(UNPACK_DIR)
        chmod -R go-w $(UNPACK_DIR)
        install -d -m0755 $(INSTALL_DIR)
        @if [ ! -d $(INSTALL_DIR)$(TRG_DIR) ]; then \
                mv $(UNPACK_DIR) $(INSTALL_DIR)${TRG_DIR}  ;\
                ln -s /usr/lib/android-sdk/ndk-bundle /usr/lib/android-ndk ;\
                echo /usr/lib/android-ndk >> 
/var/lib/dpkg/info/google-android-${PKG_NAME}-installer.list ;\
                find ${INSTALL_DIR}${TRG_DIR}  | sort >> 
/var/lib/dpkg/info/google-android-${PKG_NAME}-installer.list ;\
        else\
                echo "\033[0;31m$(INSTALL_DIR)${TRG_DIR} already 
exists.\033[0m" ; \
                exit 1 ; \
        fi

$(UNPACK_DIR)/source.properties: $(DL_DIR)/$(PKG_SOURCE).checked
        cd $(DL_DIR) && unzip -ou $(PKG_SOURCE)

$(DL_DIR)/$(PKG_SOURCE).checked:
        cd $(DL_DIR) && \
                su nobody -s /bin/sh -c "wget --continue $(PKG_SOURCE_URL)"
        sha1sum -c $(PKG_SOURCE).sha1
        touch $(PKG_SOURCE).checked

clean:
        -rm -rf -- $(UNPACK_DIR)

distclean: clean
        -rm -rf -- $(DL_DIR)

.PHONY: install clean

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.7.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages google-android-ndk-installer depends on:
ii  build-essential        12.8
ii  ca-certificates        20200601
ii  debconf [debconf-2.0]  1.5.74
ii  dpkg-dev               1.20.5
ii  make                   4.3-4
ii  po-debconf             1.0.21
ii  unzip                  6.0-25
ii  wget                   1.20.3-1+b3

google-android-ndk-installer recommends no packages.

google-android-ndk-installer suggests no packages.

-- debconf information:
  google-android-installers/mirror: https://dl.google.com

-- 
Rémi Vanicat
  • Bug#967240: google-android-ndk-installer: When the ... Remi Vanicat

Reply via email to