Can´t sudo apt-get update -> error while loading shared libraries

Hi there,

this is my first post in this forum.
I started to work with beaglebone green.
I try to get remote debugging to work with eclipse (gcc).

I cant install “gdbserver”.
If i want to “sudo apt-get update” i got the following error:

debian@beaglebone:~$ sudo apt-get update
/usr/lib/apt/methods/https: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/librtmp.so.1: invalid ELF header
E: Method https has died unexpectedly!
E: Sub-process https returned an error code (127)
E: Method /usr/lib/apt/methods/https did not start correctly

Can anybode help me? I dont know why i cant update my sources.
I got internet connection.

If I try to download “gdbserver” i got following error:

debian@beaglebone:~$ sudo apt-get install gdbserver
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package gdbserver is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘gdbserver’ has no installation candidate

Maybe somebody got the same problem , or can help me with this…?

Regards
Jan

I hAVE TO SAME shit