I accidentally erased etc/bluetooth and all the files in it.

Getting your soundcard to work, using Debian on non-i386 hardware, etc

I accidentally erased etc/bluetooth and all the files in it.

Postby nicoreino » 2018-03-26 02:18

Hello everyone! I'm new to this forum and also new to Debian. I used Ubuntu for a long time, but I never used the terminal except for the most basic stuff, therefore I'm a complete noob. So, I was trying to get my bluetooth to detect a device, I tried following an advice from askubuntu that said this


Try the following

sudo mv /etc/bluetooth /etc/bluetooth.backup

sudo apt-get install --reinstall bluez

After a reboot check the issue. The /etc/bluetooth directory should be empty now.

If this does not work for you, just move back the bluetoth.backup directory to it's original place.

(or)

Missing Firm-ware could also be an issue and you can fix it with the command

sudo apt-get install linux-firmware

Hope this helps!


It didn't work and when I tried moving the files back from etc/bluetooth.backup to etc/bluetooth, etc/bluetooth became a text file instead of a folder, I don't know why. So now I have lost my etc/bluetooth folder with all the files in it. Is there anyway to get it back?

Thanks in advance!
nicoreino
 
Posts: 2
Joined: 2018-03-26 02:06

Re: I accidentally erased etc/bluetooth and all the files in

Postby bigrigdriver » 2018-03-27 04:21

My suggestion is to return your system to the state it was in before you installed bluetooth. By that, I mean purge any bluetooth-relevant packages you installed. In Synaptic, I find four that you may have installed: blueman, bluemon, bluetooth, and bluez.
Step 1) As root, run
Code: Select all
apt-get purge blueman bluemon bluetooth bluez

or
Code: Select all
apt-get remove --purge blueman bluemon bluetooth bluez

Step 2)
Code: Select all
apt-get update

Step 3)
Code: Select all
apt-get upgrade

Step 4)
Code: Select all
apt-get install blueman bluemon bluetooty bluez

Use only the package names which you actually have installed.
Then you will need to configure bluetooth, pairing devices, etc.
Registered GNU/Linux user #170078

Go ask google before you ask on these boards.

It it isn't broken, Tweak It !!!
bigrigdriver
 
Posts: 145
Joined: 2014-09-01 17:04
Location: East Central Illinois, USA

Re: I accidentally erased etc/bluetooth and all the files in

Postby pylkko » 2018-03-27 13:25

At this point, you should restore from your backup, but considering that you 1) are ready to follow random advice on the internet from people who most likely do not know what your problem is at all and 2) are willing to use software on your computer that can destroy your entire system without so much as reading the manual - let me just guess, you do not have a backup. You could try to insert more commands into the computer based on what some one you do not know says on the internet. What kind of chances at success do you expect to have? So, then there is the other option that will have better chances. Yes that's right: reinstall.

After you have reinstalled and your bluetooth issue has not gone away, you should write a detailed description of your problem here and if make sure you read the "what we expect you have done so far" thread, the chances are significantly more higher that you will get the issue solved.

Good luck
User avatar
pylkko
 
Posts: 1309
Joined: 2014-11-06 19:02

Re: I accidentally erased etc/bluetooth and all the files in

Postby debiman » 2018-03-27 17:04

nicoreino wrote:I tried moving the files back from etc/bluetooth.backup to etc/bluetooth, etc/bluetooth became a text file instead of a folder, I don't know why.

this could be a permissions issue. i hope you haven't deleted that file yet.
please post:
Code: Select all
sudo ls -l /etc/bluetooth
User avatar
debiman
 
Posts: 2499
Joined: 2013-03-12 07:18

Re: I accidentally erased etc/bluetooth and all the files in

Postby nicoreino » 2018-04-08 20:14

Hello to everyone. First of all, I wanted to say sorry for not answering before, I had ton of work these weeks and I just couldn't pay attention to this. Thank you all for all your replies. So I ended up reinstalling Debian 9 with Gnome and I still can't get my bluetooth device to recognise anything. So we're back to the original problem.
nicoreino
 
Posts: 2
Joined: 2018-03-26 02:06

Re: I accidentally erased etc/bluetooth and all the files in

Postby pylkko » 2018-04-09 13:43

After you have reinstalled and your bluetooth issue has not gone away, you should write a detailed description of your problem here and if make sure you read the "what we expect you have done so far" thread, the chances are significantly more higher that you will get the issue solved.

Please describe:

  • what commands you are giving to your coputer, what software you are using.
  • what you expect to happen
  • what actually happens and howthis differs from what you expect.
  • log output from your attempts

If you do not understand what these mean, feel free to ask.
User avatar
pylkko
 
Posts: 1309
Joined: 2014-11-06 19:02

Re: I accidentally erased etc/bluetooth and all the files in

Postby wizard10000 » 2018-04-09 14:19

Code: Select all
apt-get install --reinstall -o Dpkg::Options::="--force-confmiss" blueman bluemon bluetooth bluez
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1281
Joined: 2011-05-09 20:02
Location: everywhere i go, there i am!

Re: I accidentally erased etc/bluetooth and all the files in

Postby pylkko » 2018-04-09 20:45

wizard10000 wrote:
Code: Select all
apt-get install --reinstall -o Dpkg::Options::="--force-confmiss" blueman bluemon bluetooth bluez


I wonder why you are suggesting that if he just said that he reinstalled with GNOME (which has it's own bluetooth manager etc)?
User avatar
pylkko
 
Posts: 1309
Joined: 2014-11-06 19:02

Re: I accidentally erased etc/bluetooth and all the files in

Postby wizard10000 » 2018-04-10 09:22

pylkko wrote:I wonder why you are suggesting that if he just said that he reinstalled with GNOME (which has it's own bluetooth manager etc)?


Because I didn't read the whole thread? Oops.

:mrgreen:
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1281
Joined: 2011-05-09 20:02
Location: everywhere i go, there i am!


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable