Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to install zRam using the following commands in the terminal:

sudo add-apt-repository ppa:shnatsel/zram
sudo apt-get update
sudo apt-get install zramswap-enabler

But it throws the following error message which says that the package is not available:

E: Couldn't find package zramswap-enabler

I tried to download and install the zramswap-enabler_0.2.1-0~12~oneiric1_all.deb package, but after the second reboot it stops working.

share|improve this question

To install zRAM, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install zram-config

Once the installation is done go ahead and reboot your machine.

To check whether it works:

cat /proc/swaps
share|improve this answer
Just to clarify... you don't need to install zramswap-enabler or the ppa, the zram-config package is a meta-package containing the upstart job for it. If you want to verify that it is working, type mount at the command prompt and you'll see more fuse mounted partitions than before. – Scott Goodgame May 31 '13 at 15:16
User above claims that you don't need to restart, can you confirm? – Braiam Nov 25 '13 at 3:31
That's right you don't, but it won't hurt that you do, I do it out of habit. – Mitch Nov 25 '13 at 4:19
You do not need to reboot the machine, it's just a waste of time. Nice to see a moderator delete what I have already said and repeat it so that he can get all the credit. – Ken Sharp Jan 5 '14 at 7:02
Also works in 13.10. To configure the size of the swap (which defaults to half the memory) you can edit /etc/init/zram-config.conf. – otus Apr 6 '14 at 6:42

zramswap-enabler hasn't been released for 13.04 yet. Unless you can make an updated version yourself, you'll have to wait for Shnatsel to release one (this is according to, which only lists packages up to Quantal).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.