[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#826944: apt-get update: 'Failed to stat ... TransactionState-stat' with deb-src line in sources.list



On Fri, Jun 10, 2016 at 01:05:50PM +0200, Michael Musenbrock wrote:
> Package: apt
> Version: 1.2.12
> Severity: important
> 
> Hi,
> 
> if I add a deb-src line (see sources.list at the end) apt-get update reports an error:
> # E: Failed to stat /var/lib/apt/lists/partial/ftp.debian.org_debian_dists_testing_InRelease - pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)
> # W: Duplicate sources.list entry ftp://ftp.debian.org/debian testing Release
> 
> I have commented all other source.list entries, and moved sources.list.d. The error still
> occurs with the two single lines:
> # deb http://ftp.debian.org/debian testing main non-free contrib
> # deb-src ftp://ftp.debian.org/debian testing main non-free contrib

Don't mix ftp and http for the same host. In fact, do not use ftp at all, it's
evil.

That should fix the issue, I suspect both the http and the ftp method
want to write the same file, which then fails because one already
completed and moved the whole thing away.

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.


Reply to: