I faced the same problem as yours.
But I take a further action "dpkg -P package name". After this command has been run, it shows "uninstalled" in the status file. It seems that apt-get does not update the installation file status.
I uninstall apps with apt-get remove usually, only sometimes with dpkg -r. So when I generate a size-sorted list of what's installed with dpkg, the things I removed with apt still show up. And I can no longer remove them with dpkg once they've been unistalled.
How can I get dpkg to know which apps I've removed with apt-get?
I faced the same problem as yours.
But I take a further action "dpkg -P package name". After this command has been run, it shows "uninstalled" in the status file. It seems that apt-get does not update the installation file status.
it sure does .. but if you look carefully you'll se ii at some and rc at others. If you want to get completly rid of file you need to --purge it
cleaning
for i in $(dpkg -l | grep ^rc | cut -d " " -f 3); do dpkg --purge $i; done
for uninstall packages use apt-get remove --purge package-name,no trash after...
Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch
$37.27
Juniper Networks EX3300 EX3300-48P PoE+ 48-Port 4x SFP Gigabyte Ethernet Switch
$59.99
Juniper EX2200-C-12T-2G 12-Port 10/100/1000 2x SFP Uplinks Compact Switch
$89.99
Juniper Networks EX4300-48P 48 Port Web MNG 100/1000 PoE-+ 1100W AC Ethernet
$779.89
JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER
$168.00
Juniper EX3300-48P 48-Port 10/100/1000BASE-T (48 PoE+ ports) with 4 SFP+
$74.00
Juniper EX4200-48PX 48-PORT 10/100/1000BASET PoE Ethernet Switch
$50.00
Juniper EX4300-48T EX4300 48 Port Gigabit 4-Port QSFP+ Switch
$1899.90
(2) Juniper Networks EX2300 (EX2300-48P) 48 Ports Ethernet Switch+ Power Cord
$500.00
Juniper EX 4300 EX4300-48P Switch VC DAC Cables 21.4R3-S7 48 Port PoE
$250.00