LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2014, 09:39 PM   #1
AlexBB
Member
 
Registered: Mar 2014
Posts: 435

Rep: Reputation: Disabled
Ubuntu update.


Hi there,

I opened my VirtualBox with Ubuntu 12.3 version (?) and found a message that there is a new update. I clicked on OK, update began to work and then I got an error message: Not enough memory and you should clear your memory with a command which I tried to copy from the screen and then paste in Terminal. It did not copy and I do not remember the command. It sounded like "sudo ...... clear"

I have 4096 Mgb of base memory for Ubuntu, pretty much what was recommended. I have 16Gb of RAM. I could have given the VM as much as needed. What shall I do now?

Thanks, - Alex

Last edited by AlexBB; 08-23-2014 at 09:41 PM.
 
Old 08-23-2014, 10:19 PM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: OpenBSD
Posts: 1,644
Blog Entries: 8

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
The apt/cache directory is probably full. With Debian the command
Code:
apt-get clean
empties that directory. You could try it. Ubuntu will require sudo before the command.
 
Old 08-24-2014, 05:55 PM   #3
AlexBB
Member
 
Registered: Mar 2014
Posts: 435

Original Poster
Rep: Reputation: Disabled
Thank you. - Alex
 
Old 08-24-2014, 06:10 PM   #4
AlexBB
Member
 
Registered: Mar 2014
Posts: 435

Original Poster
Rep: Reputation: Disabled
Well still there is a problem. When I tried to update I got the following message (I've had it before):

Quote:
The upgrade needs a total of 783 M free space on disk "/". Please free at least an additional 256 M of disk space on "/". Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'


I checked the Trash - it is empty. I ran the command in question-it did not help. What shall I do now? Can I increase the base memory for the VM now? I checked the Settings in Oracle VB and every possible checkbox is dimmed.

Now, again I tried to upgrade to a new version: Ubuntu 14.04.1 LTS. This is what I got after running the clean command many times:

Quote:
The upgrade has aborted. The upgrade needs a total of 1,972 M free space on disk '/'. Please free at least an additional 1,585 M of disk space on '/'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'


Now it wants even more space. How can I do it?

Thanks, - Alex

Last edited by AlexBB; 08-24-2014 at 06:37 PM.
 
Old 08-24-2014, 08:24 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
/ full how large is vhd?
 
Old 08-25-2014, 10:07 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,008

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
It isn't your memory which is full but your storage space on the hard disk drive. You can make the virtual hard drive bigger (assuming you have space on your real hard disk) by doling something like the following link suggests but you must shut down your virtual machine and not simply save the state.
https://forums.virtualbox.org/viewto...p?f=35&t=50661
 
Old 08-25-2014, 10:42 AM   #7
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44
Quote:
Originally Posted by 273 View Post
It isn't your memory which is full but your storage space on the hard disk drive. You can make the virtual hard drive bigger (assuming you have space on your real hard disk) by doling something like the following link suggests but you must shut down your virtual machine and not simply save the state.
https://forums.virtualbox.org/viewto...p?f=35&t=50661
I agree, you need to increase the size on your virtual hard drive.
 
1 members found this post helpful.
Old 08-25-2014, 09:01 PM   #8
AlexBB
Member
 
Registered: Mar 2014
Posts: 435

Original Poster
Rep: Reputation: Disabled
Quote:
how large is vhd?
Well, it says in Settings: Base Memory: 4096 MB. I could have given it twice as much had I known the situations like this could occur. It then says in a different place, Storage==>Ubuntu-32-VM.vdi:

Virtual Size: 8.00 GB
Actual Size: 8.00 GB.

I have 16 GB RAM and very large Hard disks: 123 GB free on C:

Last edited by AlexBB; 08-25-2014 at 09:05 PM.
 
Old 08-25-2014, 09:19 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
http://trivialproof.blogspot.com/201...hard-disk.html
 
Old 08-26-2014, 02:04 AM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,008

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
Quote:
Originally Posted by AlexBB View Post
Well, it says in Settings: Base Memory: 4096 MB. I could have given it twice as much had I known the situations like this could occur. It then says in a different place, Storage==>Ubuntu-32-VM.vdi:

Virtual Size: 8.00 GB
Actual Size: 8.00 GB.

I have 16 GB RAM and very large Hard disks: 123 GB free on C:
Please do yourself a favour and learn the difference between memory (or RAM) and storage (or disk space). Memory is where programs being executed and files being accesed are kept temporarily as they are used and storage is where programs and data are kept more permanently between system reeboots and the like. What you have run out of here is storage as you only gave the virtual hard drive 8GB whixh isn't much for a modern operating system full install. Personally I would double that or even quadruple it but, oif possible, use what VirtualBox calls a dynamically alocated disk so that only the storage required is taken up by the virtual disk. You can resize the disk, if you wish, by following the link in the post before mine.
If you don't understand the above you will save yourself a lot of trouble by confirming the difference between memory and storage and reading the VirtualBox manual to find out how they are allocated.
 
Old 08-26-2014, 08:25 PM   #11
AlexBB
Member
 
Registered: Mar 2014
Posts: 435

Original Poster
Rep: Reputation: Disabled
What makes you think I don't understand the difference between RAM & hard disk? A rather strange comment! But I do not understand what base memory refers to. It seems it is RAM, correct?

Anyhow I cannot do anything until weekend because I work many hours every day. But thanks everyone for all the contributions.
 
Old 08-26-2014, 10:50 PM   #12
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,008

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
Quote:
Originally Posted by AlexBB View Post
What makes you think I don't understand the difference between RAM & hard disk? A rather strange comment! But I do not understand what base memory refers to. It seems it is RAM, correct?

Anyhow I cannot do anything until weekend because I work many hours every day. But thanks everyone for all the contributions.
My apologies, perhaps it is the Ubuntu update program that is giving a confusing message but while what VirtualBox calls "base memory" is, indeed, RAM unless the Ubuntu installer is doing something very odd indeed it is not RAM but disk space it needs more of. I know this for two reasons: the first is that I have seen the problem before and the second because 4GB should be more than enough RAM for any OS.
 
Old 08-27-2014, 07:27 PM   #13
AlexBB
Member
 
Registered: Mar 2014
Posts: 435

Original Poster
Rep: Reputation: Disabled
Thank you. That's what I also thought. I read recommendations and tried to overindulge the system. I could have added more but I was afraid. What if giving it too much would somehow create negative consequences? :-)
 
Old 08-27-2014, 09:02 PM   #14
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
The system only uses memory that's required so you don't have to worry about the amount that you assigned it overtaxing system.
 
Old 08-28-2014, 02:02 AM   #15
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,008

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
Quote:
Originally Posted by AlexBB View Post
Thank you. That's what I also thought. I read recommendations and tried to overindulge the system. I could have added more but I was afraid. What if giving it too much would somehow create negative consequences? :-)
As long as you don't give the system hard disk space you don't have you will be fine. Just make sure the host system's hard drive has enough free space for the size you have allowed the guest to grow to. For example I give my guests around 30GB and while none of them grow to anything like that I know I've a spare 500GB on the drive they reside upon if that should ever happen.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deepin Update is Dead Slow. Can I use Ubuntu Update? yurmuki Linux Deepin 7 07-15-2014 12:41 PM
ubuntu software center in ubuntu 11.10 not running and update manager error quazisaad Linux - Newbie 2 11-30-2011 12:43 PM
LXer: Ubuntu Software Center Receives Major User Interface Update, More [Ubuntu 10.10 LXer Syndicated Linux News 0 06-29-2010 07:50 PM
why after every major update in Ubuntu new entries of Ubuntu are created at startup?? salfuser Linux - Newbie 4 01-12-2009 07:08 PM
Unable to upgrade to ubuntu 7.10, update manager fails to update.... jonbvgood Linux - Software 2 02-05-2008 04:58 PM


All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration