Most Popular

1500 questions
393
votes
7 answers

How to disable strict host key checking in ssh?

I would like to disable strict host key checking in ssh for Ubuntu 11.04. How to do it?
karthick87
  • 81,947
392
votes
8 answers

How is the /tmp directory cleaned up?

How is the /tmp directory cleaned up? Is it automatic? If so, how frequently is it cleaned up?
392
votes
4 answers

How to set JAVA_HOME for Java?

I've installed a version of Java. How can we set the $JAVA_HOME environment variable correctly?
390
votes
8 answers

How to list dependent packages (reverse dependencies)?

In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.
l0b0
  • 8,819
386
votes
14 answers

How do I change the computer name?

When I connect to my server (ubuntu server 10.10), I get this: name@server-name.belkin ~> How can I remove ".belkin"?
Wolfy
  • 7,920
385
votes
25 answers

How to get the GPU info?

I'm looking for a command that would give me the same info as: cat /proc/cpuinfo Except for the GPU (type of the chip and memory, frequency).
user2413
  • 14,337
385
votes
9 answers

How to see time stamps in bash history?

Is there any way I can see at what time the commands were executed from the bash history? We can see the order but is there any way I can get the time also? Bottom-Line: Execution time in the Bash history
Raja G
  • 102,391
  • 106
  • 255
  • 328
385
votes
23 answers

Unable to mount Windows (NTFS) filesystem due to hibernation

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount. When I try to enter my Windows partition through Nautilus I get a message saying that this partition is…
yotamoo
  • 4,229
384
votes
7 answers

How can I check the available version of a package in the repositories?

How can I check the version of the available package in the Ubuntu repositories without installing it?
Raja G
  • 102,391
  • 106
  • 255
  • 328
383
votes
10 answers

How do I fix a "Problem with MergeList" or "status file could not be parsed" error when trying to do an update?

The computer gave me this output in a window: E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages E: The package lists or status file could not…
user12250
381
votes
16 answers

How can I get a list of all repositories and PPAs from the command line into an install script?

I know how to list all packages installed on my system. But how could I get a list of all repositories and PPA's into a script that I can run on a new machine to replicate the repository setup including the keys? I know I can look into…
stwissel
  • 6,211
  • 5
  • 23
  • 24
380
votes
7 answers

fsck error on boot: /dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

I dual boot Ubuntu and Windows 7. I was browsing on FireFox in Ubuntu and all of a sudden I get some error message, so I rebooted. Now when I try to boot into Ubuntu I get this message: fsck from util-linux 2.26.2 /dev/sda6 contains a file system…
Jordy
  • 3,901
  • 3
  • 13
  • 4
377
votes
3 answers

How do I remove an alias?

I want to remove gs alias from my PC. When I type gs it will open GhostScript. But I checked everywhere in the home directory .alias .bash_aliases .bashrc I also overwrite the gs with my custom alias. I can't remove it. And I also type alias in…
jean000
  • 3,879
  • 2
  • 13
  • 3
376
votes
10 answers

Run a shell script as another user that has no password

I would like to run a script from the main ubuntu shell as a different user that has no password. I have full sudo privileges, so I tried this: sudo su -c "Your command right here" -s /bin/sh otheruser Then I have to enter my password, but I am not…
rubo77
  • 32,486
376
votes
16 answers

Unable to correct problems, you have held broken packages

After upgrading from 10.04 to 12.04 I am trying to install different packages. For instance ia32-libs and skype (4.0). When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message. Output…
trond
  • 3,785