Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

Problems with Debian

Discussion in 'General Linux' started by Peer, Oct 9, 2018.

  1. Peer

    Peer Active Member

    Joined:
    May 17, 2018
    Messages:
    169
    Likes Received:
    65
    Yesterday I´ve installt debian, now I have some problems:

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


    (Log in to hide this advertisement)


    why?
     
  2. Peer

    Peer Active Member

    Joined:
    May 17, 2018
    Messages:
    169
    Likes Received:
    65
  3. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    1,707
    Likes Received:
    1,807
    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.
     
    Peer likes this.
  4. Peer

    Peer Active Member

    Joined:
    May 17, 2018
    Messages:
    169
    Likes Received:
    65
    how can I add me o the sudoers?
     
  5. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    1,707
    Likes Received:
    1,807
    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.
     
    Jeffrey Lapinski and Peer like this.
  6. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    1,707
    Likes Received:
    1,807
    Gotta run for a bit. Back in about an hour or so.
     
    Peer likes this.
  7. Peer

    Peer Active Member

    Joined:
    May 17, 2018
    Messages:
    169
    Likes Received:
    65
    su works and I´ve runned this:
    usermod -a -G sudo debian
    now I can use sudo but can´t install .deb packages.
     
  8. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    1,707
    Likes Received:
    1,807
    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
     
    Jeffrey Lapinski and Peer like this.
  9. Peer

    Peer Active Member

    Joined:
    May 17, 2018
    Messages:
    169
    Likes Received:
    65
    Thx a lot, it works!
     
    wizardfromoz and atanere like this.
  10. wizardfromoz

    wizardfromoz Super Moderator
    Staff Member Gold Supporter

    Joined:
    Apr 30, 2017
    Messages:
    1,862
    Likes Received:
    1,845
    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
     
    Peer, Jeffrey Lapinski and atanere like this.
  11. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    1,707
    Likes Received:
    1,807
    It would also be a good time to activate your firewall, if you haven't already. :eek::D
    Code:
    sudo ufw enable

    You're probably familiar with this by now. :D

    Cheers
     
  12. Peer

    Peer Active Member

    Joined:
    May 17, 2018
    Messages:
    169
    Likes Received:
    65
    This was the first thing I did, but I had to install ufw first.
     
    wizardfromoz and atanere like this.

Share This Page