[SOLVED] Apt-get upgrade on openhab2_addons fails due to A TLS packet with unexpected length was received

  • Platform information:
    • Hardware:
      raspberry pi 3
    • OS:
      Raspian Jessie
    • Java Runtime Environment:
      1.8.0_121
    • openHAB version:
      OH2.3 snapshot
  • Issue of the topic:
    apt-get upgrade fails on openhab2_addons:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  libc-ares2 libxrender1
Use 'apt-get autoremove' to remove them.
Done
The following packages will be upgraded:
  ca-certificates curl file git git-man gnupg gpgv libarchive-zip-perl libcups2 libcurl3 libcurl3-gnutls libfaad2 libgcrypt20 libicu52 libidn11 libldap-2.4-2 libmad0 libmagic1 libmosquitto1 libmp3lame0
  libmysqlclient18 libncurses5 libncursesw5 libprocps3 libssl1.0.0 libtinfo5 libvorbis0a libvorbisenc2 libvorbisfile3 mosquitto mosquitto-clients mysql-client-5.5 mysql-common mysql-server
  mysql-server-5.5 mysql-server-core-5.5 ncurses-base ncurses-bin ncurses-term openhab2 openhab2-addons openhab2-addons-legacy openssl patch perl perl-base perl-modules procps python-mosquitto tzdata
  wget wpasupplicant
52 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 155 MB/260 MB of archives.
After this operation, 6556 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://dl.bintray.com/openhab/apt-repo2/ stable/main openhab2-addons all 2.3.0-1 [155 MB]
Err https://dl.bintray.com/openhab/apt-repo2/ stable/main openhab2-addons all 2.3.0-1                                                                                                                      
  GnuTLS recv error (-9): A TLS packet with unexpected length was received.
E: Failed to fetch https://dl.bintray.com/openhab/apt-repo2/pool/main/2.3.0/openhab2-addons_2.3.0-1_all.deb  GnuTLS recv error (-9): A TLS packet with unexpected length was received.

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I’ve tried both Stable and snapshot, current content of /etc/apt/sources.list.d/openhab2.list:

deb https://dl.bintray.com/openhab/apt-repo2 stable main

Any clues?

BR,

/Janne

The question is not how to upgrade using apt-get, that I’ve done a lot of times.
The questions is why it fails to fetch openhab2_addons.

BR,

/Janne

Files are available

https://dl.bintray.com/openhab/apt-repo2/dists/stable/main/

so I would check for connection errors.

Tried a couple of minutes later and now it works, must have been some temporary network glitch.

BR,

/Janne

1 Like