Problems with Debian

Peer

Well-Known Member
Joined
May 17, 2018
Messages
587
Reaction score
305
Credits
402
Yesterday I´ve installt debian, now I have some problems:

1. I can no install .deb packages
2. I can not use sudo

why?
 


Bildschirmfoto vom 2018-10-09 13-05-37.png
Bildschirmfoto vom 2018-10-09 13-09-39.png
 
Hmmm, it does seem that something is going on with Debian. This post in another similar thread here says he solved it with the command:
Code:
su
If successful, your terminal prompt will change from $ to a # and you can hopefully get the system back to "normal".... that is, you can add your user named "debian" to the sudoers file.

If the su command works, you can also install your .deb packages.

Some issues with Debian of this nature are now at least a year old too, but I'm not sure if your issue is the same or related. In those older cases, the root password was "locked" during the installation and needed to be reset.
 
how can I add me o the sudoers?
 
First things first... does the su command work? I don't think you can add to the sudoers file except as root, or someone with sudo permission. If you can't get root, you need to fix that first.
 
su works and I´ve runned this:
usermod -a -G sudo debian
now I can use sudo but can´t install .deb packages.
 
su works and I´ve runned this:
usermod -a -G sudo debian
now I can use sudo
Great! That's at least half the battle solved, I hope. :D


You should now be able to install .deb packages like this (using Minecraft as an example):
Code:
sudo dpkg -i Minecraft.deb


If you want to just double-click on a .deb file and install it, at least one method is the gdebi program. I'm guessing that it is not installed by default for you right now.
Code:
sudo apt install gdebi

Hope this gets the 2nd half of the battle for you. I'm gone off again for about another hour.

Cheers
 
Nice work, Stan, and G'day young Peer :)

Peer if this is a full install you have done, now would be a good time to form a Partition and label it Timeshift. If you already have one, you can use that for any Linux you install.

Then download and install Timeshift, from here, choose the .deb

https://github.com/teejee2008/Timeshift/releases

Once Timeshift is installed, take a snapshot of your Debian, and then you have it safe if anything goes wrong, you can "rollback".

Any questions on Timeshift, ask at my Tutorial over here

https://www.linux.org/threads/timeshift-similar-solutions-safeguard-recover-your-linux.15241/

Cheers and enjoy your Linux

Wizard
 

Members online


Top