I have a Pi 3 + b and am using the latest build of Raspian. At first I was unable to sudo apt-get update because it would throw an error:
E: Malformed line 1 in source list /etc/apt/sources.list.d/raspi.list (type)
E: The list of sources could not be read.
When I ran a cat of /etc/apt/sources.list.d/raspi.list it had a bunch of special characters $$$$$$$
I then did a sudo vi of the file and deleted the lines and then added:
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
The i re ran the sudo apt-get update and it worked like a champ.
Next I wanted to install tcpreplay. I issued the command: sudo apt-get install tcpreplay and it seeed to go normally until it asked to very that I wanted to install it and showed the small disk space. After pressing "Y" and enter I got:
"dpkg: error: fgets gave an empty string from '/var/lib/dpkg/triggers/File'
E: Sub-process /usr/bin/dpkg returned an error code (2)"
Did my image come down as corrupt, or are others having problems as well? Any suggestions would be greatly appreciated.