Hot answers tagged

187

This nifty trick from this link works great! exec su -l $USER I figured I'd post it here as every time I forget how to do this, this is the first link that come up in google.


134

I ran into this problem too this morning. I was able to solve it by combining advice from the following two tickets: How to solve 404 Error in AWS apg-get for debian jessie fetch? https://stackoverflow.com/questions/46406847/docker-how-to-add-backports-to-sources-list-via-dockerfile The solution: In your Dockerfile, before running any apt commands, ...


112

First of all you need to create a partition, then you can make the filesystem. Create a new partition sudo fdisk /dev/sda This will bring up the fdisk menu. You should familiarize yourself with it, search for tutorials (here's one). The basic options are: Command action a toggle a bootable flagL b edit bsd disklabel c toggle the dos ...


90

useradd is native binary compiled with the system. But, adduser is a perl script which uses useradd binary in back-end. adduser is more user friendly and interactive than its back-end useradd. There's no difference in features provided.


77

I am answering my own question after gathering important information from other blog posts. Show what foreign architectures are installed: dpkg --print-foreign-architectures Might show: i386 Remove all i386 packages: apt-get purge ".*:i386" Note: The purge keyword (instead of remove) removes all configuration files associated with the packages you're ...


72

There's one more thing you need to know of: GNU. GNU stands for "GNU's Not Unix", and it is an attempt to create a free, independent version of Unix, developed by the Free Software Foundation. They got very far, they made a C compiler, a C library, a linker, editors, shells, all the commands you'd expect in a typical Unix shell, lots of stuff. But the ...


70

Current Debian (starting from stretch and also in jessie-backports) includes an ffmpeg package: sudo apt-get update sudo apt-get install ffmpeg However, this version of ffmpeg not always be up-to-date. If you want a more recent version, you have 3 options for installing ffmpeg. I'd suggest trying Options 1 or 2 before attempting Option 3. Option 1: Use ...


59

Sirex has it more or less correct, but his answer isn't clear. I just solved this, so here's what I did: sudo dpkg -i /path/to/filename.deb If this fails with a message about the package depending on something that isn't installed, you can probably fix it if you run sudo apt-get -f install This will install the dependencies (assuming they're available ...


59

Linux is a kernel, Debian is a distribution of that kernel and a bunch of software to actually interact with the system. I can now take Debian and change the logo on the boot screen to my own logo and then my distribution is based on Debian (in a very primitive way). Usually, the adjustments that are made in a derived distribution are more substantial. ...


56

The DHCP server must have a static IP - this is because of a chicken-egg problem: During the DHCP process, the server communicates its IP address to the client If the server is also the client, this step can't succeed (as there is not yet an address to communicate).


52

Have you tried changing the various channels through alsamixer? (run it from the terminal) You may also want to check your PulseAudio settings. There's a GUI front-end package called pavucontrol that allows you to easily change these settings.


51

Yes, the command you proposed is correct. sudo apt-get install ./package.deb or sudo apt install ./package.deb will install the package you got from another source than APT and same time use APT capabilities to resolve its dependencies automatically. Unfortunately, this apt-get feature is not documented in the man page. See https://askubuntu.com/a/...


51

Unix is an Operating System developed starting in 1969. It was originally designed to be a developer station rather than application platform, but, as development progressed and different vendors got involved, Unix was added to. Unix was initially written in assembly, but later developed into C. In relation to the others, the Linux kernel is Unix-like. ...


50

If you're on Linux, the easiest way is to simply do (as per the docs): cat debian.iso > /dev/sdX; sync Where X is your drive letter, you can find out the correct letter by checking the output of dmesg right after connecting your USB device. For example for me (and probably many) it would be /dev/sdb This will wipe everything from your USB drive, so be ...


50

The file is actually /usr/share/doc/wireshark-common/README.Debian. What you need to do is: sudo dpkg-reconfigure wireshark-common Choose the "yes" option. usermod -a -G wireshark your-user-name Logout and log back in to pick up the new group membership and you can now run wireshark as a non-root user.


49

You can configure apt via apt.conf files. Here is a command I use on my server (as root): cat > /etc/apt/apt.conf.d/01norecommend << EOF APT::Install-Recommends "0"; APT::Install-Suggests "0"; EOF To see if apt reads this, enter this in command line (as root or regular user): apt-config dump | grep Recommends


47

Another alternative: $ dpkg -S /bin/bash bash: /bin/bash On my Ubuntu at least, both seem to be in the dpkg package, so no real advantage to any specific one...


47

I too had this issue. I was able to solve it by following the instructions on the Arch Linux systemd wiki page. Here is a summary of what I did : Lets find the systemd services which fail to start $ systemctl --failed ------------------------------------------------------------------------ systemd-modules-load.service loaded failed failed Load ...


46

tl;dr : run once apt-get update --allow-releaseinfo-change What happens here, is that the local apt database remembered your package-sources "release-information" to be "busterAsTesting", and when updating now "busterAsStable" is returned. This results in the error, and the indication, that you need to "allow the change of the release version information". ...


45

You can also install .deb file using gdebi.Run the below commands to install gdebi, sudo apt-get install gdebi-core Install .deb packages with gdebi, sudo gdebi /path/to/filename.deb It also fix dependencies.


45

Quick & EASY Solution: I have had the same issue, several times. Do NOT do sudo apt-get dist-upgrade first. Very important. ****NOTE: This solution is for Debian based machines but will not work on KDE Neon. To update KDE Neon, you must use sudo pkcon update.**** Why? It can make your system very unstable, programs can crash and you can lose a lot ...


43

On Debian the ability to create or handle user namespaces from a non-privileged process (usually meaning non-root user) is disabled by default. There's a Debian-specific patch (from Ubuntu) to the kernel that adds the sysctl knob kernel.unprivileged_userns_clone (with a default value of 0 meaning disabled). To enable it (until next reboot), as root: echo 1 &...


41

To avoid any system wide changes without real need, one can change only the way how ls works for the current user by adding the alias to the .bashrc: alias ll='LC_COLLATE=C ls -alF' This sorts dot files first, allows to properly handle (show and sort) "uncommon" character sets like cyrillic. The only culprit that the sorting will be case-sensitive. ...


40

1. Getting a shell with the new group without logging out and in again If you're only adding one group, I used the following: exec sg <new group name> newgrp `id -gn` This is a variation on Legooolas's two-layer newgrp trick, but it is in one line and doesn't require you to manually enter your primary group. sg is newgrp but accepting a command to ...


39

According to the IRC channel for Debian, jessie-updates is now not supported: Oldstable: Debian Jessie, jessie-updates and jessie-backports REMOVED 2019-03-24 Your solution is either to upgrade to Stretch, or update your /etc/apt/sources.list to the following: deb http://archive.debian.org/debian/ jessie main deb-src http://archive.debian.org/debian/ ...


37

As a regular user, you can change your default login shell using the chsh command. Here is an example: chsh -s /bin/bash Another option is to use usermod as root: usermod -s /bin/bash username


35

munpack from mpack worked for me In Debian/Ubuntu: sudo apt-get install mpack munpack -f mime-attachments-file


35

Make sure you install Kernel Headers Package. http://www.cyberciti.biz/faq/howto-install-kernel-headers-package Make sure you have updated version Type the following command $ sudo apt-get update OR as root user enter: # apt-get update Search for kernel version (optional) Type the following command: $ apt-cache search linux-headers-$(uname -r) Install ...


35

That means the program was compiled against glibc version 2.14, and it requires that version to run, but your system has an older version installed. You'll need to either recompile the program against the version of glibc that's on your system, or install a newer version of glibc (the "libc6" package in Debian). Debian has glibc 2.16 in the "experimental" ...


35

Debian's implementation of Netcat does have the -k option. However, it's not documented in the manual because it doesn't work in a reliable manner, for some unknown reason. Luckily, there's ncat, which is yet another implementation of Netcat and is part of the nmap package. This one has a working -k. You can get it by installing nmap. ncat's options and ...


Only top voted, non community-wiki answers of a minimum length are eligible