Greatest Hits

146 votes
20 answers
547k views

"dev/sda1: clean, ..." This message appears after I startup my laptop, then it won't continue booting

dev/sda1: clean, 552599/6111232 files, 7119295/24414464 blocks After I turn on my laptop this message appears. The system never boots, the message just stays there.
El-Dow's user avatar
  • 1,569
768 votes
40 answers
1.3m views

How do I remove old kernel versions to clean up the boot menu?

Every time I install a new Linux kernel, it gets left in the grub_config, making the boot menu longer each time. I know I can manually search through the installed packages and remove them. Does ...
184 votes
7 answers
312k views

apt-key deprecation warning when updating system: "Key is stored in legacy trusted.gpg keyring"

Recently I've noticed some issues when running apt where the system will warn me of a keyring deprecation: Reading package lists... Done Building dependency tree... Done Reading state information... ...
matigo's user avatar
  • 22.2k
577 votes
28 answers
923k views

How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle? Before release Java ...
Benjamin's user avatar
  • 10.2k
488 votes
12 answers
1.7m views

How to use "grep" command to find text including subdirectories

I want to find all files which contain a specific string of text. The grep command works, but I don't know how to use it for every directory (I can only do it for my current directory). I tried ...
Smile.Hunter's user avatar
  • 8,355
73 votes
7 answers
205k views

Terminal not opening on Ubuntu 22.04 on Virtual box 7.0.0

I'm using windows 10 and I installed Ubuntu 22.04 on Virtual box 7.0.0. When I click the terminal icon, the upper left side of the screen(where is the executing application name view), there is the ...
yun's user avatar
  • 841
578 votes
3 answers
1.5m views

How do I use variables in a sed command?

I tried the following code to replace QQ with ZZ, but it doesn't do what I want: var1=QQ sed -i 's/$var1/ZZ/g' $file However, this code does what I want: sed -i 's/QQ/ZZ/g' $file How do I use ...
UAdapter's user avatar
  • 17.6k
644 votes
24 answers
750k views

How do I free up more space in /boot?

My /boot partition is nearly full and I get a warning every time I reboot my system. I already deleted old kernel packages (linux-headers...), actually I did that to install a newer kernel version ...
user6722's user avatar
  • 6,715
570 votes
9 answers
673k views

What is the difference between a hard link and a symbolic link?

As the title says, I would like to know the difference between a hard link and a soft link created by the command ln. The command man ln does provide information, but does not sufficiently answer my ...
ste_kwr's user avatar
  • 11.2k
401 votes
6 answers
1.6m views

How to download a file from a website via terminal?

Suppose that we have a full URL of desired file e.g. http://domain.com/directory/4?action=AttachFile&do=view&target=file.tgz I would like to go without installing a new software. Is it ...
0x6B6F77616C74's user avatar
353 votes
13 answers
1.6m views

How to format a USB flash drive?

In Windows there is a straightforward "Format" option in a flash drive's right-click pop-up menu. Where's that in Ubuntu?
Ivan's user avatar
  • 57.1k
391 votes
4 answers
1.5m views

How to set JAVA_HOME for Java?

I've installed a version of Java. How can we set the $JAVA_HOME environment variable correctly?
Gaurav Agarwal's user avatar
451 votes
9 answers
1.2m views

How do I install Python 3.6 using apt-get?

I've tried the normal way, sudo apt-get install python3.6, but... well... that didn't work. So, how would I go about it? (I'd preferably not build it on my own) I'm using Ubuntu 16.04.
Olian04's user avatar
  • 4,653
293 votes
20 answers
1.6m views

SSH connection problem with "Host key verification failed..." error

I can connect to another Ubuntu machine in my LAN via SSH. On both of then PC's I installed openssh-server but from another Ubuntu computer I can not connect to my PC via SSH and I got this error: ...
Navid's user avatar
  • 3,143
322 votes
13 answers
1.7m views

How do you restart Apache?

I switched from SLES to Ubuntu and now I want to restart my local server. In SLES I used: rcapache2 restart but this seems not to work in Ubuntu. How do I restart Apache?
Jai Puri's user avatar
  • 4,019
224 votes
20 answers
1.3m views

How to fix "sudo: unable to open ... Read-only file system"?

The title might not be as descriptive as I would like it to be but couldn't come up with a better one. My server's file system went into Read-only. And I don't understand why it does so and how to ...
John's user avatar
  • 2,413
210 votes
18 answers
597k views

ModuleNotFoundError: No module named 'distutils.util'

After updating to Ubuntu 20.04, whenever I run: pip install <some package> or pip --version it says: adam@daryy:~$ pip3 Traceback (most recent call last): File "/usr/local/bin/pip3&...
Rock Life's user avatar
  • 2,200
255 votes
9 answers
1.1m views

How do I uninstall MySQL?

I installed MySQL using sudo apt-get. Now I need to remove it from my system. How can I do that?
batman's user avatar
  • 7,971
164 votes
5 answers
234k views

Unable to update "Snap Store": cannot refresh "snap-store": snap "snap-store" has running apps (ubuntu-software)

I am a new Ubuntu 22.04 user who is facing an issue with the Snap Store. Whenever I try to update the Snap Store I can see these error messages. Pending update of "snap-store" snap Close ...
ABHILASH T's user avatar
  • 1,953
575 votes
16 answers
1.2m views

How do I check if I have a 32-bit or a 64-bit OS?

I downloaded and installed Ubuntu from the official site. However, I don't know if I installed the 32-bit or 64-bit version. In Windows 7 I could right click My Computer and it listed which version ...
Only Bolivian Here's user avatar
856 votes
8 answers
1.6m views

How to add existing user to an existing group?

I want to add the Apache user (www-data) to the audio group. I've read the man page for useradd, but I'm not having any luck. I'm running xubuntu 11.10. Here's what I'm doing: $ sudo useradd -G audio ...
Sparky1's user avatar
  • 12.5k
632 votes
25 answers
1.4m views

How to display network traffic in the terminal?

how to display the actual network traffic (wireless) in a terminal? Additionally: Is it possible to add this info to the chart of top?
IndexOutOfBoundsException's user avatar
269 votes
11 answers
1.9m views

How do I start/stop mysql server?

I tried to find in some articles describing how to correctly start & stop mysql server. I found this link: How to start/stop MySql server on Ubuntu 8.04 | Abhi's Blogging World I ran this ...
user471011's user avatar
  • 3,559
609 votes
7 answers
504k views

Which one is better: using ; or && to execute multiple commands in one line?

In tutorials and how-to's I often see commands combined. For instance, sudo apt-get update && sudo apt-get install pyrenamer There seem to be four possible connectors: &, &&, || ...
don.joey's user avatar
  • 28.7k
219 votes
23 answers
384k views

sudo apt update error: "Release file is not yet valid"

I keep getting this error every time I try to sudo apt update: Hit:1 ubuntu bionic InRelease Ign:3 linux/chrome/deb stable InRelease Get:2 /ubuntu bionic-updates InRelease [88.7 kB]...
user avatar
125 votes
4 answers
1.4m views

Changing from user to superuser

How do I change from user to superuser (root)? What command do I use in the Terminal to switch to root? I have tried --help but I get lost with all the listed help. I'm looking for a recent download/...
pcgeek's user avatar
  • 1,251
940 votes
5 answers
1.3m views

How to extract files to another directory using 'tar' command?

I thought tar archive.tar /users/mylocation would work, but it doesn't. How can I do that?
shawnxuc's user avatar
  • 9,503
307 votes
11 answers
1.8m views

How can I uninstall software?

Seeing there are various ways to install on Ubuntu. What are the various ways to uninstall items? Which ways always work? How can I be sure something was uninstalled?
myusuf3's user avatar
  • 34.2k
368 votes
10 answers
1.3m views

How can I resize an ext root partition at runtime?

How can I increase the size of the root partition of a system at runtime? I have a partition that is not allocated after the root partition (which is also ext4), how can I add that unallocated space ...
BonboBingo's user avatar
  • 3,782
184 votes
6 answers
1.8m views

How to copy files via terminal?

I have read about copying files with terminal but these examples will help me a lot. So here is what I want to do: Examples: I have a file in /home/levan/kdenlive untitelds.mpg and I want to copy ...
Levan's user avatar
  • 10.9k
121 votes
6 answers
1.3m views

SSH Public Key - No supported authentication methods available (server sent public key)

I have a 12.10 server setup in a virtual machine with its network set to bridged (essentially will be seen as a computer connected to my switch). I installed opensshd via apt-get and was able to ...
F21's user avatar
  • 4,319
477 votes
8 answers
1.3m views

How do I change my username?

Some time ago, when I installed Ubuntu, I chose a rather stupid username for my account that I do not want to use anymore. How do I change this (including the name of my home directory, and the name ...
Takkat's user avatar
  • 142k
96 votes
6 answers
264k views

MongoDB Install Fails on Ubuntu 22.04 - Depends on libssl1.1 but it is not installable

Here are the standard installation instructions from the website: wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo....
fIwJlxSzApHEZIl's user avatar
656 votes
8 answers
1.4m views

How can I decode a base64 string from the command line?

I would like to write a bash script to decode a base64 string. For example I type decode QWxhZGRpbjpvcGVuIHNlc2FtZQ== and it prints Aladdin:open sesame and returns to the prompt. So far I have tried ...
lofidevops's user avatar
  • 20.9k
175 votes
11 answers
1.5m views

Where is .bashrc?

I feel stupid asking, but I can't seem to find the answer to this anywhere. I'm trying to follow these instructions to edit my bash prompt, but there is no .bashrc in either my user directory (~/....
JeanSibelius's user avatar
  • 3,602
353 votes
7 answers
1.0m views

How to make ZSH the default shell?

I am trying to set ZSH as my default shell, however it keeps reverting back to bash. I have tried this code: sudo chsh -s $(which zsh) I've also tried: sudo chsh -s /bin/zsh Also tried these ...
Tom's user avatar
  • 3,899
449 votes
10 answers
1.4m views

How to get to the GRUB menu at boot-time?

My system is not dual-boot, I run a standard Ubuntu desktop system "on the metal" (I think running it in a VM is the same). Pressing c while booting does not cause the GRUB menu to appear (which I ...
Peter.O's user avatar
  • 24.7k
401 votes
4 answers
901k views

Failed to load module “canberra-gtk-module” .... but already installed

Gtk-Message: Failed to load module "canberra-gtk-module" but I already have the libcanberra-gtk-module and libcanberra-gtk3-module installed. (i.e. I tried this solution, but it is already installed....
cmo's user avatar
  • 6,348
184 votes
17 answers
894k views

How to install NVIDIA.run?

I have a Nvidia Ge force Ge6150 SE graphics card. I am running ubuntu 12.04. When I try to install the .run file it fails. It shows the message like this: I tried to install it after uninstalling ...
Kiranraj's user avatar
  • 2,103
249 votes
10 answers
1.3m views

How to access a shared folder in VirtualBox?

I followed the steps for sharing folders between Windows 7 and Ubuntu in VirtualBox. Despite that the folder appears with a X sign and gives me the following message when a try to open it: The ...
userInThisWorld's user avatar
235 votes
6 answers
1.7m views

How do I remount a filesystem as read/write?

I'm trying to mount an hfsplus filesystem in a Xubuntu 12.04 VM (kernel version 3.2.0-23-generic) but when I type mount -o remount,rw /dev/sdb3 in command line it returns not mounted or bad option. ...
Alkthree's user avatar
  • 2,667
248 votes
12 answers
1.7m views

How do I kill processes in Ubuntu?

How do I kill all processes running by my own non-root account? I have some spinning smbd processes that I caused from my windows machine and so I telnetted into the linux server and I want to kill ...
djangofan's user avatar
  • 3,704
102 votes
4 answers
437k views

How to update Chrome in Ubuntu 20.04

What is the right way to update chrome on Ubuntu 20.04. My installation was with .deb file I started getting update chrome warning messages on my chrome now. I do not want to uninstall and then ...
Ajeetkumar's user avatar
  • 1,123
496 votes
10 answers
1.0m views

How to select video quality from youtube-dl?

I have installed youtube-dl in my 14.04. I can download video by following command, $ youtube-dl [youtube-link] But I want to know how to select available pixel quality of youtube video(i.e 1080p, ...
A J's user avatar
  • 11.4k
133 votes
5 answers
1.2m views

How to install Flash player on Ubuntu?

Even though I have the latest Adobe Flash player 11.2 for Linux in Firefox - ref: Flash player security doubts - a particular online flash game still requests that I update to the latest flash player....
user190160's user avatar
  • 1,331
258 votes
12 answers
710k views

Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Upon trying to upgrade from 10.10 to 11.04 all seemed to go well until the restart. This error message is what comes up: Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ...
Jeffrywith1e's user avatar
  • 2,835
99 votes
6 answers
658k views

What does "No bootable medium found" mean in VirtualBox?

I have recently been trying to install VirtualBox, when this message came up: No bootable medium found! Can somebody please tell me what went wrong?
CENTAUR's user avatar
  • 3,249
939 votes
9 answers
1.5m views

How to enable or disable services?

I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them. The first method I found is update-rc.d to add new services to startup, ...
NES's user avatar
  • 33.2k
226 votes
6 answers
1.5m views

Detect and mount devices

I upgraded Ubuntu today and everything works smooth except that Ubuntu doesn't detect any other storage devices. My / and /home partitions work fine, but my other partitions are just not detected. I ...
Calixte's user avatar
  • 3,443
754 votes
47 answers
1.0m views

What should I do when Ubuntu freezes?

All operating systems freeze sometimes, and Ubuntu is no exception. What should I do to regain control when... just one program stops responding? nothing at all responds to mouse clicks or key ...
ændrük's user avatar
  • 76.8k