How to delete "uninstalled" package

anneranch

Member
I may be jumping the gun, but may need some pointers before I start.

I used "checkinstall" and it did not finished.
Brief look at the error posted tells me there is conflict with depended package used by another (package).

The problem is - dpkg lists the "uninstalled" failed / package and apt purge cannot purge something which is not there. Nor can "dpkg -r ".


sudo dpkg -l "bluez*"
[sudo] password for jim:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii bluez 5.37-0ubuntu amd64 Bluetooth tools and daemons
in bluez-5.50:arm <none> armhf (no description available)
un bluez-alsa <none> <none> (no description available)
un bluez-audio <none> <none> (no description available)
un bluez-input <none> <none> (no description available)
un bluez-network <none> <none> (no description available)
ii bluez-obexd 5.37-0ubuntu amd64 bluez obex daemon




[email protected]:~$ sudo dpkg -r "bluez-5.50"
dpkg: warning: ignoring request to remove bluez-5.50:armhf which isn't installed

Something about egg and chicken comes to mind.
I'll be searching for a different way to delete "uninstalled" package -
 


You could try going ctrl+h in the file manager for you account and try to delete the actual folder for the package. or you could try install it again and then try uninstall it.
What distro are you running.
Hope I helped a bit
 

anneranch

Member
Thanks for reply.
I should clarify, I am just learning how to manipulate packages, but I believe package does not reside in single folder. But do not quote me.

Also this is just learning / testing so some mistakes will happen.
I am curious why you asked for distro.
Isn't package pretty much generic Linux "thing" - why should it be different depending on distro?

I cannot prove this at the moment - but I have a feeling that "apt update /upgrade" will wipe out my new bluez version 5.50 since it is not current version used by Ubuntu.
If that is true your question about what bistro I use makes sense , but in different aspect .
 
all I can suggest is to reinstall but I don't really know. It might not let you set it because the os already has another default application try to remove that if you desire. but reinstalling should fix
 

anneranch

Member
all I can suggest is to reinstall but I don't really know. It might not let you set it because the os already has another default application try to remove that if you desire. but reinstalling should fix
Yes, I am beginning to wonder how OS keeps track of package.
As far as can tell it cares about name.
Who keeps track of the versions is unknown to me so far.
In my case in need the library and I need two different architectures.
I do not see how I can have both "active" same time.
But I have no issue installing just the architecture I need when I need it.

FYI - O just tried this


[email protected]:/media/jim/DEV/BLUEZ/bluez-5.50$ sudo dpkg -l "bluez"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================-==================-==================-===========================================================
ii bluez:armhf 5.50-1 armhf bluez-5.50
[email protected]:/media/jim/DEV/BLUEZ/bluez-5.50$ sudo apt install bluez
[sudo] password for jim:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
bluez:armhf
The following NEW packages will be installed:
bluez
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/899 kB of archives.
After this operation, 68.6 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
[email protected]:/media/jim/DEV/BLUEZ/bluez-5.50$ sudo dpkg -l "blue*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================-==================-==================-===========================================================
ii bluez:armhf 5.50-1 armhf bluez-5.50
in bluez-5:armhf <none> armhf (no description available)
in bluez-550:armhf <none> armhf (no description available)
un bluez-alsa <none> <none> (no description available)
ii bluez-obexd 5.37-0ubuntu5.1 amd64 bluez obex daemon
un bluez-pan <none> <none> (no description available)
in bluez5:armhf <none> armhf (no description available)
[email protected]:/media/jim/DEV/BLUEZ/bluez-5.50$ sudo apt install bluez-5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package bluez-5:armhf 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 'bluez-5:armhf' has no installation candidate

So - I cannot "reinstall " bluez-5

Time to reboot and do some more testing.
 
OK sorry I couldn't help
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Welcome to linux.org @Zaki SI-Lounis :)

@anneranch has a number of complex tasks going on at the moment, but it is good that you are trying to help so soon after joining :p

If you get a chance, pop over to

https://www.linux.org/forums/member-introductions.141/

... and tell us a little of the "Zaki Story" (no personal details that you have not checked with your parents, but your country is OK), and how you got interested in Linux. We have a number of teenagers here and you might meet some and have something in common :D

Cheers

Chris Turner
wizardfromoz
 

anneranch

Member
To be brutally honest - I prefer low profile.
At present I am up to my eyeballs in alligators and have very little interest in chit-chat on internet.
Maybe later.
 

Members online


Latest posts

Top