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...
Samsung Galaxy Tab A8 10.5" SM-X200 128GB Wifi Only Tablet Open Box
$149.99
Samsung Galaxy Tab A 8.0" 2019 SM-T290 32GB WiFi Tablet Open Box
$94.99
Samsung - S Pen Creator Edition - White
$40.00
Genuine Samsung Book Cover Keyboard for 14.6" Galaxy Tab S8 Ultra | S8 Ultra 5G
$89.99
Samsung Galaxy Tab A9 (X110) 64GB 4GB RAM International Version (New)
$129.99
Samsung Galaxy Chromebook Go, 14-inch, 32GB, Unlocked All Carriers - Silver
$99.95
Samsung 16GB 2Rx4 PC3-12800R M393B2G70BH0-CK0 DDR3 RDIMM - SERVER RAM
$8.90
Genuine OEM Samsung Galaxy Tab S6 Lite Book Cover -NEW EF-BP610PJEGUJ- #E4
$14.99
512GB SAMSUNG EVO Plus Micro SD MicroSDXC Flash Memory Card w/ SD Adapter
$21.99
Tempered Glass Screen Protector For Samsung Galaxy Tab S9/S9 FE/S9 Plus/S9 Ultra
$10.95