you don't have enough free space in /var/cache/apt/archives

今天,我在我的嵌入式linux安装桌面的时候,遇到问题。
you don't have enough free space in /var/cache/apt/archives/.

 

网上一对堆抄来抄去的方法,说什么apt-get clean, 什么apt-get autoclen就好了,我想说,我的的var目录是一个单独分区,空间本来就真不够,无路怎么clean都不够的。

最后,解决方法就是吧这个文件夹重新定位,不要放在var里面,我的var是一个分区,用软连接定向到一个空间足够的分区就可以了:


1. 清除所有已下载的安装包
sudo apt-get clean

2. 在某个空间大的分区建立一个目录,然后把/var/cache/apt/archives换成指向那个目录的软链接


mkdir -p "$HOME/debs/partial"
sudo rm -rf /var/cache/apt/archives
sudo ln -s "$HOME/debs" /var/cache/apt/archives

转载于:https://www.cnblogs.com/mynameislinduan/p/10843105.html

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
100%原生的DELPHI编写的ZIP/UNZIP 全功能开发包,包含全部源代码. Delphi 4, 5, 6, 7, 2005, 2006, 2007 and 2009 compatible C++ Builder 4, 5 6, 2007, and 2009 compatible The VCLZip Delphi component allows you to add ZIP and UNZIP capabilites to your application. This component is different from most other "ZIP" development libraries in that it is written in 100% Delphi Object Pascal code and is full featured. There are no DLL's to tote around. This component links right into your application's executable. It is very easy to use. Just SOME of the features include: Create zip files fully compatable with PKZip Completely native Delphi VCL (NO DLLS) Create Disk Spanning and Blocked zip files Delphi 4, 5, 6, 7, 2005, 2006, 2007 and 2009 compatible C++ Builder 4, 5 6, 2007, and 2009 compatible Zip directly from streams to zip files Unzip directly to streams from zip files Stream to Stream zipping and unzipping Unzip directly to memory buffers Zip directoy from memory buffers Create and read Zip and File Comments Create Self Extracting Zip Files (16 bit and 32 bit distributable Windows sfx stubs included (source included for these too) or use your own stubs) Complete support for encrypted files (encrypts as it zips) Save Relative Path information Unzip using Relative Paths (even if zip file wasn't created with relative path info) Use enhanced wildcards Exclude List (tell VCLZip which files not to include (use wildcards too)) NoCompress (STORE) List (tell VCLZip which files to just store (use wildcards too) Set your own temp directory Plenty of events Long filenames, even the 16 bit VCLZip/VCLUnZip Includes comprehensive Zip Utility with source as demo Includes a small stream zipping demo Includes a context sensitive help file Use Unicode filenames, archive names, and pathnames (except for Delphi/BCB 4 and5) . No Royalties! AES Strong Encryption Zip64 capabilities, properties, methods and events: Uncompressed, Compressed, and Archive file sizes can be up to 2^63-1 bytes in length. You can compress up to 2147483647 files into an archive. This is compatible with PKZip's Zip64 format. If a file does not extend beyond any of the original limitations (filesizes of 4 gig or 65535 files) then no Zip64 format information is included in the archive. property isZip64 - tells you when you are working with a zip file that is using Zip64 format. Faster processing due to linking to Zlib 1.2.3 object files for compression and decompression routines. Blocked Zip Files (spanned zip archives split onto hard drive) Compatible with PKZip and WinZip split archives file naming format. For backwards compatability you can tell VCLZip to use the old VCLZip filenaming format by using the BlockMode property

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值