Siduction Forum

Siduction Forum => Software - Support => Topic started by: eQuacky on 2015/12/21, 08:10:20

Title: (solved) Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2015/12/21, 08:10:20
Hi folks,


wanted to follow devil's advice -  Migration back from KDE-Next to Debian-KDE - as described in the announcenments, but after a apt-get update and apt-get dist-upgrade I have got following Error:
.
.

852 upgraded, 25 newly installed, 10 to remove and 1 not upgraded.
18446744071772705524,2358121204
How odd... The sizes didn't match, email apt@packages.debian.org
Need to get 18.4 EB of archives.
After this operation, 13.1 MB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.


A df indicates to me that there should be enough space on disk.


Code: [Select]
root@sid-X121e:/home/ltq# df -h

Filesystem      Size  Used Avail Use% Mounted on
udev             10M     0   10M   0% /dev
tmpfs           712M 1020K  711M   1% /run
/dev/sda1       172G  106G   58G  65% /
tmpfs           1.8G  220K  1.8G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.8G     0  1.8G   0% /sys/fs/cgroup
/dev/sda3       116G   36G   75G  33% /disks/disk1part3
tmpfs           356M  4.0K  356M   1% /run/user/105
tmpfs           356M   12K  356M   1% /run/user/1000

A web search didn't find appropriate solutions either.


Any help appreciated.


Thomas

edited by bluelupo (Moderator): set code tags

Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: jure on 2015/12/21, 08:49:36
Hi Thomas

no you don`t have enough disk space at all for 18.4 EB  (Exabyte (EB) ;-)

Quote
...Need to get 18.4 EB of archive...

try apt-get clean > apt-get update > apt-get dsit-upgrade



Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2015/12/21, 09:35:41
Hi Jürgen,


ok Exabyte - wow! Cannot image such an amount.


And apt wanted me to get that not me :-)


Unfortunately your hint didn't work, error remains the same.
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: bluelupo on 2015/12/21, 12:58:08
Hi eQuacky,

this can help ;-)

Code: [Select]
# apt-get autoclean
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2015/12/21, 14:57:41
Hi bluelupo,


already tried, also apt-get autoremove.


Both failed. Same error message after du.
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: jure on 2015/12/21, 15:10:25
you did ?
Quote
Comment (#)  all kdenext-related entries in your sources.list
Check if you have a separate kdenext.list and comment the lines there
and you have no other mysterious entries in your sources lists ?

I am not an expert - but
if you are at the point "Cleaning up" you can try
Code: [Select]
rm -rf /var/lib/apt/list/* && apt update
apt dist-upgrade
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: piper on 2015/12/21, 20:44:16
Is  "apt"  itself listed as one of the apps to get dist-upgraded ?

I believe it will be.
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2015/12/22, 08:49:04
@jure
no I didn't, that error has been occured before I wanted to start the transition. Didn't touch the kdenext entry.


ok my sources.list.d looks as follows:
debian.list with usual unstable entry
misc.list commented as misc. siduction-lists which seems to provide experimental and user entries, but all are commented out and a
siduction.list with base, extra, fixes, and kdenext whereas last one was added by me times ago.


@piper
yep apt and apt-utils are listed by dist-upgrade.
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: piper on 2015/12/22, 13:23:05
Can you give this a try

Code: [Select]
apt-get update && apt-get --only-upgrade install apt apt-utils
Both should upgrade to version 1.1.5

After that, do

Code: [Select]
apt-get clean
Code: [Select]
apt-get update && apt-get dist-upgrade
Everything *should* be back to normal
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2015/12/22, 18:31:42
I gave it a try but error remains the same.


Both apts are now in version 1.1.5.


But what I have noticed with a apt-show-versions is following:


Code: [Select]
ltq@sid-X121e:~$ apt-show-versions | grep -i apt
apt:amd64/unstable 1.1.5 uptodate
apt:i386 not installed
apt-conf-siduction:all/unstable 0.3.5 uptodate
apt-file:all/unstable 2.5.4 uptodate
apt-listchanges:all/unstable 2.85.14 uptodate
apt-show-versions:all/unstable 0.22.7 uptodate
apt-utils:amd64/unstable 1.1.5 uptodate
apt-utils:i386 not installed
aptitude:amd64/unstable 0.7.4-2 upgradeable to 0.7.5-3
aptitude:i386 not installed
aptitude-common:all/unstable 0.7.4-2 upgradeable to 0.7.5-3
laptop-detect:amd64/unstable 0.13.7 uptodate
laptop-detect:i386 not installed
libapt-inst1.5:amd64 1.0.9.10 installed: No available version in archive
libapt-inst2.0:amd64/unstable 1.1.1 upgradeable to 1.1.5
libapt-inst2.0:i386 not installed
libapt-pkg-perl:amd64/unstable 0.1.29+b4 upgradeable to 0.1.29+b5
libapt-pkg-perl:i386 not installed
libapt-pkg4.12:amd64 1.0.9.10 installed: No available version in archive
libapt-pkg5.0:amd64/unstable 1.1.3 upgradeable to 1.1.5
libapt-pkg5.0:i386 not installed
libatk-adaptor:amd64/unstable 2.18.1-1 uptodate
libatk-adaptor:i386 not installed
libraptor2-0:amd64/unstable 2.0.14-1 uptodate
libraptor2-0:i386 not installed
netselect-apt:all/unstable 0.3.ds1-26 uptodate
python-apt:amd64/unstable 1.1.0~beta1 uptodate
python-apt:i386 not installed
python-apt-common:all/unstable 1.1.0~beta1 uptodate
python3-apt:amd64/unstable 1.1.0~beta1 uptodate
python3-apt:i386 not installed
xserver-xorg-input-synaptics:amd64/unstable 1.8.2-1 uptodate
xserver-xorg-input-synaptics:i386 not installed

Some of the "libapts" are not uptodate?!
Shall I du them in the same way?


thomas

edited by bluelupo (Moderator): set code tags
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: piper on 2015/12/22, 22:00:33
Lets try this

Code: [Select]
apt-get clean
Code: [Select]
rm -rf /var/lib/apt/list/*
Inside /var/cache/apt you have 2 folders (apt-file, archives) and 2 .bin files (pkgcache.bin, srcpkgcache.bin).

As root, either move them or cut & paste them to a backup folder.

Now try a

Code: [Select]
apt-get update && apt-get dist-upgrade
If, for some reason the *.bin files don't regenerate (they should) you can regenerate them with

Code: [Select]
apt-cache gencaches



Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2015/12/23, 18:29:15
hm tried it but got same error, that's really weird!
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: jure on 2015/12/23, 18:49:46
Hallo thomas

ich schreib`s mal auf deutsch

versuche doch mal per "apt update"nur einen Eintrag in einer Liste in "/etc/apt/sources.list.d/" - den Rest auskommentieren. Dann den nächsten .... um zu sehen ob es bei jedem Eintrag hängt, oder nur bei einem.
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2016/01/05, 11:49:24
Hi,
after the public holidays I had more time to fumble around.
Here's the content of my debian.list:
# debian loadbalancer
#deb http://http.debian.net/debian/ unstable main contrib non-free
#deb-src http://http.debian.net/debian/ unstable main contrib non-free

#deb http://http.debian.net/debian/ unstable main contrib
#deb http://http.debian.net/debian/ unstable main non-free
#deb http://http.debian.net/debian/ unstable contrib non-free
deb http://http.debian.net/debian/ main contrib non-free

With "deb ... unstable main contrib" and "deb ... unstable main non-free" same error message as usual.
With "deb ... unstable contrib non-free" I could dist-upgrade 15 packages with "deb ... main contrib non-free" 6.
Whereas last one shows further error message after using apt update like:

.
.
.
Ign:14 http://ftp.uni-kl.de/debian main/non-free all Packages
Err:7 http://ftp.uni-kl.de/debian main/contrib amd64 Packages
  404  Not Found [IP: 131.246.123.4 80]
Err:8 http://ftp.uni-kl.de/debian main/contrib i386 Packages
  404  Not Found [IP: 131.246.123.4 80]
Ign:9 http://ftp.uni-kl.de/debian main/contrib all Packages
Err:12 http://ftp.uni-kl.de/debian main/non-free amd64 Packages
  404  Not Found [IP: 131.246.123.4 80]
Err:13 http://ftp.uni-kl.de/debian main/non-free i386 Packages
  404  Not Found [IP: 131.246.123.4 80]
Ign:14 http://ftp.uni-kl.de/debian main/non-free all Packages
Reading package lists... Done
W: The repository 'http://http.debian.net/debian main Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Failed to fetch http://ftp.uni-kl.de/debian/dists/main/contrib/binary-amd64/Packages  404  Not Found [IP: 131.246.123.4 80]
W: Failed to fetch http://ftp.uni-kl.de/debian/dists/main/contrib/binary-i386/Packages  404  Not Found [IP: 131.246.123.4 80]
W: Failed to fetch http://ftp.uni-kl.de/debian/dists/main/non-free/binary-amd64/Packages  404  Not Found [IP: 131.246.123.4 80]
W: Failed to fetch http://ftp.uni-kl.de/debian/dists/main/non-free/binary-i386/Packages  404  Not Found [IP: 131.246.123.4 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: piper on 2016/01/05, 12:33:06
Can you change

deb http://http.debian.net/debian/ main contrib non-free

to

deb http://httpredir.debian.org/debian/ unstable main contrib non-free
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2016/01/05, 13:06:18
did it.
same error not having enough space ...
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: piper on 2016/01/05, 13:30:21
What I posted above, was to fix this


Code: [Select]
W: The repository '[url=http://http.debian.net/debian]http://http.debian.net/debian[/url] main Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure( manpage for repository creation and user configuration details.


I am out of ideas, perhaps visit us on irc, I have to leave for work
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: Geier0815 on 2016/01/05, 14:04:14
It seems that your nearest servers are in germany, so try
Quote
deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
for your debian.list as single and only entry and
Quote
deb http://packages.siduction.org/base unstable main contrib non-free
deb http://packages.siduction.org/fixes unstable main contrib non-free
deb http://packages.siduction.org/extra unstable main contrib non-free
for your siduction.list

remove all other .list-files from /etc/apt/sources.list.d and check twice that there is no /etc/apt/sources.list

then "apt-get update && apt-get dist-upgrade" Will this solve your problem?
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: paxmark2 on 2016/01/05, 14:15:14
If the main "root" cause is just a too full partition, ncdu is my tool of choice..  It has no dependencies on apt to the best of my knowledge and I use it to prune things like gnucash-doc out of /var/cache. My / is woefully small at 10 Gb.   


"Vacuum cleaning" of via journalctl is also a fast way to free up space out of /var/log.
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2016/01/05, 20:17:21
@geier0815

"remove all other .list-files from /etc/apt/sources.list.d and check twice that there is no /etc/apt/sources.list
then "apt-get update && apt-get dist-upgrade" Will this solve your problem?"

unfortunately not, neither with without kdenetxt entry nor with.

@paxmark2

root@sid-X121e:/home/ltq# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             10M     0   10M   0% /dev
tmpfs           712M  1.1M  711M   1% /run
/dev/sda1       172G  107G   57G  66% /
tmpfs           1.8G  100K  1.8G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.8G     0  1.8G   0% /sys/fs/cgroup
/dev/sda3       116G   36G   75G  33% /disks/disk1part3
tmpfs           356M   12K  356M   1% /run/user/1000
tmpfs           356M  4.0K  356M   1% /run/user/105

there seems to  be no shortage of memory?
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: Geier0815 on 2016/01/05, 20:44:44
You wrote that you get some error-messages by following what piper wrote in this post (http://forum.siduction.org/index.php?topic=5944.msg49067#msg49067) but you don't gave us this error-messages. Maybe it give us a hint.
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2016/01/06, 11:30:04
It was the same error as in my thread-start.
Last order with "apt-cache gencaches" I didn't have to do cause those bin-files had been regenerated.
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: ayla on 2016/01/06, 12:36:38
Hi

found this http://www.eenyhelp.com/bug-809838-apt-download-size-check-overflow-help-215913825.html on the web.

hth
ayla
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: jure on 2016/01/06, 13:50:37
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809838 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809838)
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2016/01/07, 22:47:17
@ayla and jure
thanks but didn't help either this hint with texlive.

But I remembered piper's advice to update apt and apt-utils manually what I did again. And a third package was upgraded named libaptpkg5.0. Anyway that combination made the deal. All of them now in version 1.1.10 and I could carry out the whole d-u.

Many thanks to all involved, especially piper and jure for endless efforts.

Greetz
Thomas
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: jure on 2016/01/07, 23:32:45
congratulation !!   ☑
Title: Re: Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: piper on 2016/01/08, 02:38:37
Glad you got it solved :)

I actually had the same issue, but, only building siduction, it didn't effect a normal du, why I was pulling what hair I have left when what I posted above didn't work for you.

Odd that libaptpkg5.0 didn't upgrade the first time round


IRC log

Code: [Select]
[Sunday, December 6, 2015] [5:56:12 PM EST] <piper> hmm, anyone doing local builds, starting today i get errors
[Sunday, December 6, 2015] [5:56:22 PM EST] <piper> 0 upgraded, 2182 newly installed, 0 to remove and 0 not upgraded.
[Sunday, December 6, 2015] [5:56:22 PM EST] <piper> 18446744072632231960,3217647640
[Sunday, December 6, 2015] [5:56:22 PM EST] <piper> How odd... The sizes didn't match, email apt@packages.debian.org
[Sunday, December 6, 2015] [5:56:22 PM EST] <piper> Need to get 18.4 EB of archives.
[Sunday, December 6, 2015] [5:56:22 PM EST] <piper> After this operation, 7588 MB of additional disk space will be used.
[Sunday, December 6, 2015] [5:56:22 PM EST] <piper> E: You don't have enough free space in /var/cache/apt/archives/.
[Sunday, December 6, 2015] [5:56:22 PM EST] <piper> 2015-12-06 17:34:33,143 CRITICAL - command failed with return value: 100
[Sunday, December 6, 2015] [5:56:22 PM EST] <piper> 2015-12-06 17:34:33,148 INFO  - cleaning up...
[Sunday, December 6, 2015] [5:57:19 PM EST] <piper> df -h   gives   /dev/sda3       199G   77G  113G  41% /
[Monday, December 7, 2015] [2:49:39 PM EST] <piper> with apt being updated today, no more errors, can build fine now ;P
Title: Re: (solved) Error: You don't have enough free space in /var/cache/apt/archives/.
Post by: eQuacky on 2016/01/08, 10:58:47
thanks folks for congrats!

Piper, I am quite sure this lipaptpkg5.0 wasn't within the packages to be du'ed. Just apt and apt-utils. But it worked for me and hopefully for all others with same/similar probem(s).
Thanks again!
greetz
Thomas