Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-58-virtual x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Sun Feb 23 10:40:22 UTC 2014
System load: 0.03 Processes: 147
Usage of /: 100.0% of 9.84GB Users logged in: 0
Memory usage: 43% IP address for virbr0: 192.168.122.1
Swap usage: 0% IP address for br100: 10.0.0.1
=> / is using 100.0% of 9.84GB
Graph this data and manage this system at:
https://landscape.canonical.com/
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
Use Juju to deploy your cloud instances and workloads:
https://juju.ubuntu.com/#cloud-precise
Last login: Sun Feb 23 10:35:47 2014 from act-portal1.gw.csiro.au
ubuntu@openstack:~$ du -sk * | sort -nr154496 openstack-manuals148300 identity-api
129208 object-api
52232 devstack
34480 volume-api
32724 api-site
7952 compute-api
5344 netconn-api
1120 python-swiftclient
32 sh
ubuntu@openstack:~$ sudo rm -r python-swiftclient/
ubuntu@openstack:~$ du -sk * | sort -nr
154496 openstack-manuals
148300 identity-api
129208 object-api
52232 devstack
34480 volume-api
32724 api-site
7952 compute-api
5344 netconn-api
32 sh
ubuntu@openstack:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 9.9G 9.9G 0 100% /
udev 2.0G 8.0K 2.0G 1% /dev
tmpfs 792M 252K 791M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 0 2.0G 0% /run/shm
cgroup 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/vdb 30G 173M 28G 1% /mnt
ubuntu@openstack:~$ du -sch .[!.]* * |sort -h
0 .sudo_as_admin_successful
4.0K .bash_logout
4.0K .bashrc
4.0K .cache
4.0K .gitconfig
4.0K .my.cnf
4.0K .profile
4.0K .rnd
4.0K .viminfo
8.0K .cinderclient
8.0K .distlib
8.0K .fop
20K .ssh
28K .novaclient
32K sh
108K .pip
280K .bash_history
5.3M netconn-api
7.8M compute-api
32M api-site
34M volume-api
52M devstack
107M .m2
127M object-api
145M identity-api
151M openstack-manuals
659M total
继续获得
fatal: cannot create directory at 'bla-bla': No space left on device
重新启动并没有解决。
user251046 的方法:
root@openstack:~# apt-get clean -y && apt-get autoremove -y
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
ubuntu@openstack:~$ sudo dpkg --configure -a
Setting up localepurge (0.6.2+nmu2) ...
Creating config file /etc/locale.nopurge with new version
ubuntu@openstack:~$ sudo su
root@openstack:/home/ubuntu# apt-get clean -y && apt-get autoremove -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
root@openstack:/home/ubuntu# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 9.9G 9.8G 0 100% /
root@openstack:~# apt-get install deborphan
Reading package lists... Done
Building dependency tree
Reading state information... Done
deborphan is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
root@openstack:~# deborphan
root@openstack:~#
tmp 中没有任何内容
root@openstack:/home/ubuntu# cd /tmp
root@openstack:/tmp# ls
fileKeMpuD fileTTvnyD
root@openstack:/tmp# rm *
root@openstack:/tmp# ls -l
total 0
root@openstack:/tmp# cd
root@openstack:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 9.9G 9.8G 0 100% /
root@openstack:~# exit
exit
ubuntu@openstack:~$ du -sch .[!.]* * |sort -h
0 .sudo_as_admin_successful
4.0K .bash_logout
4.0K .bashrc
4.0K .cache
4.0K .gitconfig
4.0K .my.cnf
4.0K .profile
4.0K .rnd
4.0K .viminfo
8.0K .cinderclient
8.0K .distlib
8.0K .fop
20K .ssh
28K .novaclient
32K sh
108K .pip
284K .bash_history
5.3M netconn-api
7.8M compute-api
32M api-site
34M volume-api
52M devstack
107M .m2
127M object-api
145M identity-api
151M openstack-manuals
659M total
答案1
使用 apt-get clean -y && apt-get autoremove -y
DebOrphan 还会找到孤立的软件包。在 Synaptic 中,选择左下方的状态,然后选择未安装。然后删除所有未安装的软件包。
在您有足够的空间安装 FSlint 后,使用它来释放更多空间。这个 excellin 工具比我所知道的 Linux 中的任何其他程序清理得都多。