terminal won't except sudo apt-get clean

Asked by David

I need more space to get updates but the terminal won't except the sudo apt-get clean. I just installed Ubuntu 9.04 desktop i386.ISO on a 250GB drive and thought that should be enough for alot of updates? What do I do?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
David
Solved:
Last query:
Last reply:
Revision history for this message
Tom (tom6) said :
#1

During boot-up do you get to a menu with lots of options for booting into Ubuntu?

The 2nd ubuntu option should say "recovery mode" near the end of it's line, choose this line and you should get to another menu with lots of options worth doing about once a month anyway - "Clear some space" then "Fix broken packages" and lastly "fsck check and repair partition" and then go up to "continue with normal boot"

Revision history for this message
Josh Kupershmidt (schmiddy) said :
#2

250GB should be more than plenty for any Ubuntu installation. Please provide the following information:

1. The error message you get telling you you're out of disk space.
2. The outputs from the following commands:
     a. df -h
     b. du -sm /* 2>/dev/null | sort -n

I suspect you don't actually have 250GB allocated to your Ubuntu install. Perhaps you have other partitions taking up space, or you just have an a large number of movies/mp3s/documents in your home directory.

Revision history for this message
Tom (tom6) said :
#3

15Gb should be more than enough for Ubuntu so it's very odd that you're running into problems. Have you installed Ubuntu inside Windows using the Wubi installer? When you boot-up do you get a menu with just one choice for Windows and just one for Ubuntu?

Also in the terminal it's worth trying the other options such as

sudo apt-get autoremove

sudo apt-get autoclean

and stuff like that. Note that "sudo" requires your normal user password, not your SuperUser/Root one.

Please let us know how it goes and also about the boot-up
Good luck and regards from
Tom :)

Revision history for this message
David (shuttlemanten) said :
#4

I just tried all the information that tom and josh gave and still no luck. Maybe I should just reinstall my ubuntu cd and try to allocate some disk space for the os?

Revision history for this message
David (shuttlemanten) said :
#5

I do have two hard drives one is 500GB for windows and the second drive is 250GB.

Revision history for this message
David (shuttlemanten) said :
#6

The message I get of not having enough space is when I try to do the updates thats when the message is that I need more disk space.

Revision history for this message
Tom (tom6) said :
#7

Please let us know - When you boot-up do you get a menu with just one choice for Windows and just one for Ubuntu?

Revision history for this message
Tom (tom6) said :
#8

Alternatively, please let us know how you installed Ubuntu. Was your computer on and in Xp when you put the Ubuntu cd in, and then Xp found the cd and installed Ubuntu?

Revision history for this message
Tom (tom6) said :
#9

The best way to install Ubuntu is to put the cd in and then restart (reboot) the machine. This way the machine should boot-up from the cd rather than booting into Windows. You should get to a menu that has "Try Ubuntu without changes to the machine", otherwise this guide should help
https://help.ubuntu.com/community/BootFromCD

Choosing that option, the default one, to "Try Ubuntu without changes" should get you to a working desktop and we call this a "LiveCd session", if it works ;) It's quite often a good tool for troubleshooting, or for showing off Ubuntu to other people on their machines without affecting their machine (if you're reasonably careful not to touch their hard-drives). It usually picks-up on the internet connection and you'll probably (hopefully) find you can surf the internet using firefox in the LiveCd sesion without having to do any configuring of anything. Then this guide is the best way to install Ubuntu
https://help.ubuntu.com/community/WindowsDualBoot

Instead of re-installing though please could you use the LiveCd session to have a look at what's going on with your hard drives? Go up to the top taskbar and click on

System - Administration - Partition Editor

and then copy (&paste?) the information from the bottom pane in their into here so we can have look at what's going on. Take care with the partition editor tho just close it and DONT press "Apply" as you could lose a lot of data very fast with this tool.

Good luck with this
Regards from
Tom :)

Revision history for this message
David (shuttlemanten) said :
#10

When I first installed Ubuntu 9.04 I left the older os on the hard drive so I reinstalled 9.04 I erased the 8.04 os and now everything is ok. I did the updates of 155 and it worked great. Thanks for your help.

Revision history for this message
Tom (tom6) said :
#11

Nicely fixed but i don't think we had really helped you there, we were still asking questions so you really deserve full credit for solving this on your own. Nicely done and welcome to linux-land, especially the Ubuntu corner :)))

Congrats and regards from
Tom :)

Revision history for this message
David (shuttlemanten) said :
#12

Well I took your advice and ran the liveCd session an seen where I could run the new and the old os side by side I realized that is what I had done so that is when I reinstalled and erased the older ubuntu os so with out being pointed in the right direction I wouldn't have found the problem on my own.
Thanks

Revision history for this message
Tom (tom6) said :
#13

Brilliant, nicely done :))

In many cases the Wubi install is great and some people stick with it for years even. Many distros have something similar, usually called a 'frugal' install (which hints at other advantages). However in Ubuntu it's used to attempt to "make things easier" for noobs which, given the complexity of the problems it does cause (often inevitably), is a very unusual obfuscation to see in linux-land which is usually about Openness and Freedom of choice. The problem "which you wouldn't have found on your own" wouldn't have existed with more care on our part. Now you have an excellent system and will probably find that each OS is able to compliment the other, especially until you learn the advantages of linux for almost every task :) Now you've escaped the Wubi you'll experience normal linux as it's meant to be :) Welcome in :) Also the LiveCd option is very handy to know of so it's not all been a waste of time :)

If you need to sort out multimedia all in one go then this page should help
https://help.ubuntu.com/community/Medibuntu
and for a few other notes sometimes worth dipping into there's
https://help.ubuntu.com/community/SwitchingToUbuntu/FromWindows
Although the antivirus and firewall advice is a bit wonky now so here's this guide
https://help.ubuntu.com/community/Antivirus
and some command-line hints
https://help.ubuntu.com/community/UsingTheTerminal
and if you really can't find a better alternative to a certain Windows style program
http://www.winehq.org/

Good luck now and have fun :)
Regards from
Tom :)