Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --sync downloads broken packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
MaratIK
n00b
n00b


Joined: 02 Apr 2003
Posts: 20
Location: Moscow, Russia

PostPosted: Fri Feb 07, 2014 8:29 pm    Post subject: emerge --sync downloads broken packages Reply with quote

Why such errors so frequent?
Are scripts that verifies package signatures on commit to CVS so difficult to develop?
Code:
# emerge -upvDN --complete-graph --with-bdeps\=y --keep-going --backtrack=30 @world

These are the packages that would be merged, in order:

Calculating dependencies - * Digest verification failed:
 * /usr/portage/dev-lang/php/php-5.5.9.ebuild
 * Reason: Filesize does not match recorded size
 * Got: 22167
 * Expected: 22166
 | * Digest verification failed:
 * /usr/portage/dev-lang/php/php-5.4.25.ebuild
 * Reason: Filesize does not match recorded size
 * Got: 22329
 * Expected: 22328
... done!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7134
Location: almost Mile High in the USA

PostPosted: Sat Feb 08, 2014 6:20 am    Post subject: Reply with quote

Are you choosing a specific portage mirror?
They look mostly OK for me usually. Happens once in a while though, when portage tree and distfiles get out of sync since they may be different servers...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sat Feb 08, 2014 8:17 am    Post subject: Reply with quote

This kind of error is not frequent. It can happen because of many reasons from time to time (and none of them is that packages are not verified prior to commits).

If this persists, you should really check your settings. The problem could be that your SYNC mirror of choice is doing funny things. Failing that, maybe there's something mangling the packages in your network, it could be a funky proxy, a rootkit, or whatever else. You can't discard fs corruption either.

We should start, maybe, defining what "frequent" means in this context and walk from there. :)
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
landdie
n00b
n00b


Joined: 10 Sep 2013
Posts: 26
Location: Southern Sweden

PostPosted: Sat Feb 08, 2014 5:37 pm    Post subject: Reply with quote

In my limited experience these Digest verification failures are here today and gone tomorrow with a fresh --sync.

On occasion, when feeling reckless and impatient, I've fixed non mission critical packages with
Code:
ebuild /usr/portage/net-im/skype digest
for example.

I've been warned this is a bad idea though but as yet I've not suffered the consequences! :?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sat Feb 08, 2014 5:47 pm    Post subject: Reply with quote

landdie wrote:
In my limited experience these Digest verification failures are here today and gone tomorrow with a fresh --sync.

On occasion, when feeling reckless and impatient, I've fixed non mission critical packages with
Code:
ebuild /usr/portage/net-im/skype digest
for example.

I've been warned this is a bad idea though but as yet I've not suffered the consequences! :?


Well, you will probably not notice the day you'll suffer them. That's the best part of it.

If it's portage being out of sync, then you just have to wait.

Else, it would mean that someone outside the Gentoo project has modified the tarball. The purpose: you can only guess :lol:
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
MaratIK
n00b
n00b


Joined: 02 Apr 2003
Posts: 20
Location: Moscow, Russia

PostPosted: Sun Feb 09, 2014 12:02 pm    Post subject: Reply with quote

eccerr0r wrote:
Are you choosing a specific portage mirror?
They look mostly OK for me usually. Happens once in a while though, when portage tree and distfiles get out of sync since they may be different servers...


I have no any SYNC server in my make.conf:

Code:
# cat /etc/make.conf | grep SYNC
#SYNC="rsync://rsync.gentoo.org/gentoo-portage"
#SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
Back to top
View user's profile Send private message
MaratIK
n00b
n00b


Joined: 02 Apr 2003
Posts: 20
Location: Moscow, Russia

PostPosted: Sun Feb 09, 2014 12:08 pm    Post subject: Reply with quote

i92guboj wrote:
If it's portage being out of sync, then you just have to wait.


I think there is not correct way.
May be it is better migrate toward storage handling in such way that is which supports atomic transactions (over bunch of files)? Such as to redistrubute portage tree between mirrors using svn, git or something else?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7134
Location: almost Mile High in the USA

PostPosted: Sun Feb 09, 2014 2:17 pm    Post subject: Reply with quote

One thing that I've seen in the past is silent revving of packages where the devs change an ebuild but not the revision number and sometimes the timestamp gets lost. Then possibly people who mirror the portage tree do not realize the file changed but still copies the manifest because other files changed...

No idea. Also could just be a bad computer in the rsync chain including network and disk drives that had a bit failure...

I think trying to just sync again if something went wrong is OK. As long as you're not doing something like

while true; do rsync with portage mirror; done # must have latest and greatest right away.

The warning they give is just to make sure someone doesn't do something like that and burn all network cycles when someone else may have a 6-month old tree and badly needs an update...

The other thing is distfiles mismatches, that happens more often that ebuild verification problems...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43200
Location: 56N 3W

PostPosted: Sun Feb 09, 2014 2:20 pm    Post subject: Reply with quote

MaratIK,

A git migration is in the works.

You are using the USA SYNC rotation, as thats the default. Look at your
Code:
emerge --info
output.
All we can tell is that the digests and the tarballs differ. You cannot tell which is correct, if either.

Resync and remove the offending tarballs from your distfiles.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7134
Location: almost Mile High in the USA

PostPosted: Sun Feb 09, 2014 2:23 pm    Post subject: Reply with quote

Oh no... more base system bloat

-rwxr-xr-x 112 root root 1459044 Dec 16 12:05 /usr/bin/git

... I guess git tends to be fairly quick at large trees so maybe not so bad after all.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum