nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

FreeBSD 7 ports mismatch checksum update error

This is a discussion on FreeBSD 7 ports mismatch checksum update error within the All about FreeBSD/OpenBSD/NetBSD forums, part of the *BSD Operating systems category; Hi All, I'm new to FreeBSD. I did a Standard User installation of FreeBSD 7. I included Bash, vim-lite and ...


Go Back   nixCraft Linux Forum > *BSD Operating systems > All about FreeBSD/OpenBSD/NetBSD

Linux answers from nixCraft.


All about FreeBSD/OpenBSD/NetBSD Discuss all about the Rock solid FreeBSD/OpenBSD/NetBSD. You are free to talk about any issues related to BSD administration, networking, services and other stuff, share information or ask doubts.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2008, 01:32 PM
Junior Member
User
 
Join Date: Nov 2008
OS: FreeBSD
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
speederpro is on a distinguished road
Default FreeBSD 7 ports mismatch checksum update error

Hi All,

I'm new to FreeBSD. I did a Standard User installation of FreeBSD 7. I included Bash, vim-lite and portupgrade during the installation. After the installation, I use "csup" to update all my ports. I couldn't do all update at once as my server kept timing out. Therefore, I use several ports-supfile to update all the ports.

Now, here is my problem. After I updated all the ports, I issued the command "portupgrade -a" to try to update all my existing installation. It error out with "mismatch checksum".

Can someone tell me what I did wrong?

Things that I have tried:
1) Use spin rite to check for physical disk damage and reinstall the OS. Redo all the updates of ports and get the same "mismatch checksum"
2) move "/usr/ports" to "/usr/ports.bak". Use csup to redownload all the ports. Now issue "portupgrade -a" again. I get the "mismatch checksum" again
3) In the "ports-supfile", I changed to use a different host. Next I delete all the ports. Then I ran "csup" again. Same error.
4) Go to "/usr/ports/shell/bash" and issue the command "make". Same error.
5) Go to "gettext" and issue the command "make". Same error.
6) Thinking that it may just be those ports got corrupted or something, so I went to "/usr/ports/www/apache22" and issue the command "make". Same error.

Please give me some advice or ideas that I can tried to get it to work.
Reply With Quote
  #2 (permalink)  
Old 12-11-2008, 01:51 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

I do not use cvsup but portsnap works like a charm. Try as follows:
Code:
portsnap fetch extract
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 12-11-2008, 10:30 PM
Junior Member
User
 
Join Date: Nov 2008
OS: FreeBSD
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
speederpro is on a distinguished road
Default

Oh, I should have mentioned that I tried that as well and here is the error I got.

root@mail01:/usr> /usr/sbin/portsnap fetch extract
Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
Fetching snapshot tag from portsnap1.FreeBSD.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Tue Nov 11 16:20:34 PST 2008:
341b84f29598780a5ab9bd059fdcda5e0adb78c6a2ed53100% of 54 MB 331 kBps 00m00s
Extracting snapshot... tar: Unrecognized archive format: Inappropriate file type or format
tar: Error exit delayed from previous errors.
Reply With Quote
  #4 (permalink)  
Old 12-11-2008, 11:23 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
I use "csup" to update all my ports. I couldn't do all update at once as my server kept timing out.
#1: I think this casing problem. It is not getting all fresh files and it was killed before it finishes. As a result you are getting the same thing on the next run via cvsup or portsnap.

#2: It may possible that cvsup server itself has bad stuff. It happend in the past a few years ago. Since you have reinstalled everything and checked disk, I suggest chaning CVSserver and try again. Or try after 1 or 2 days later. Mean while if you need any packages just use pkg_add -r -v bash command.

#3 can you run tar command indivdually? Like
Code:
tar -zcvf /tmp/test.tar.gz /etc
If not then your system is not properly updated and some libaries are missing for sure.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #5 (permalink)  
Old 12-11-2008, 11:30 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

Try building port with NO_CHECKSUM=Yes
Code:
cd /usr/ports/shells/bash
make install clean NO_CHECKSUM=Yes
This will help running server and apps. Then you can troubleshoot problem.
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #6 (permalink)  
Old 13-11-2008, 12:13 AM
Junior Member
User
 
Join Date: Nov 2008
OS: FreeBSD
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
speederpro is on a distinguished road
Default

Quote:
Originally Posted by nixcraft View Post
#1: I think this casing problem. It is not getting all fresh files and it was killed before it finishes. As a result you are getting the same thing on the next run via cvsup or portsnap.
I'm not quite catching what you meant here.

Quote:
Originally Posted by nixcraft View Post
#2: It may possible that cvsup server itself has bad stuff. It happend in the past a few years ago. Since you have reinstalled everything and checked disk, I suggest chaning CVSserver and try again. Or try after 1 or 2 days later. Mean while if you need any packages just use pkg_add -r -v bash command.
I have retry my csup several times (each time using "rm -rf /usr/ports") over two weeks and to no avail. Yes, I did try other cvs server as well. Here are the ones that I tried: cvsup1.ca.FreeBSD.org, cvsup.FreeBSD.org and cvsup1.FreeBSD.org

Quote:
Originally Posted by nixcraft View Post
#3 can you run tar command indivdually? Like
Code:
tar -zcvf /tmp/test.tar.gz /etc
If not then your system is not properly updated and some libaries are missing for sure.
I don't really know how to use command line tar. Here is what I did following your example.
root@mail01:~> mkdir tmp
root@mail01:~> cd tmp
root@mail01:~/tmp> cp /usr/local/share/gettext/archive.tar.gz .
root@mail01:~/tmp> tar -zxvf archive.tar.gz

It seems to extracted all the files into "/tmp/archive" directory. That should mean there isn't any problem with my tar utility.

Quote:
Originally Posted by rockdalinux
Try building port with NO_CHECKSUM=Yes
Sweet. I went to "/usr/ports/shells/bash". Did a "make deinstall" then "make install clean NO_CHECKSUM=Yes". That did the trick for bash shells. However, I don't understand why my checksum would be bad. Any clue?

Next I went to "/usr/ports/devel/gettext". I used the same procedure: "make deinstall", "make install clean NO_CHECKSUM=yes"

Here is what I get:
===> Extracting for libtool-1.5.26
tar: Unrecognized archive format: Inappropriate file type or format
gzip: data stream error
gzip: /usr/ports/distfiles//libtool-1.5.26.tar.gz: uncompress failed
tar: Error exit delayed from previous errors.
*** Error code 1

Stop in /usr/ports/devel/libtool15.
*** Error code 1

Stop in /usr/ports/devel/gettext.

Notice on the line that there is two "/" after distfiles
Quote:
gzip: /usr/ports/distfiles//libtool-1.5.26.tar.gz: uncompress failed
How do I fix this one?
Reply With Quote
  #7 (permalink)  
Old 13-11-2008, 04:02 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Run following to see what error you get on screen
Code:
portupgrade -n -a
Do you have latest kernel and libs installed? If not I suggest install them two. Here is my latest version:
Code:
uname -r
My version:
Code:
7.0-RELEASE-p5
If not patch level 5 I suggest following cvsup doc to update base system and run buildworld:

FreeBSD cvsup: Update The FreeBSD From Previous Releases Using Source Code

Once done remove old /usr/ports and use portsnap to fetch latest ports.

Finally, yry searching following two files for any other information regarding error and updates:
/usr/ports/UPDATING
/usr/src/UPDATING
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #8 (permalink)  
Old 14-11-2008, 12:27 AM
Junior Member
User
 
Join Date: Nov 2008
OS: FreeBSD
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
speederpro is on a distinguished road
Default

Code:
mail01# uname -r
7.0-RELEASE
Taking nixCraft advice, I tried another cvsup server. This time I use cvsup8.FreeBSD.org. I deleted the ports folder again. In my ports-supfile, I use "ports-all" so that it updates all my ports at once. It finishes without any error. Hurray! Atleast I got all ports updated successfully this time.

After csup has completed successfully. I ran "portupgrade -a" again.
Code:
mail01# cat tmp.txt 
===>   Giving up on fetching files: vim/vim-7.2.tar.bz2 vim/vim-7.2.tar.bz2
Make sure the Makefile and distinfo file (/usr/ports/editors/vim-lite/../vim/disinfo)
are up to date. If you are absulutely sure you want to override this
check, type "make NO_CHECKSUM=yes [other args]".
*** Error code 1

Stop in /usr/ports/editors/vim-lite.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.3103.7 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=vim-lite-7.1.145 UPGRADE_PORT_VER=7.1.145 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! devel/gettext (gettext-0.16.1_3)      (checksum mismatch)
        * shells/bash (bash-3.2.25)
        ! emulators/linux_base-fc4 (linux_base-fc-4_10) (checksum mismatch)
        ! databases/ruby-bdb (ruby18-bdb-0.62)  (checksum mismatch)
        * ports-mgmt/portupgrade (portupgrade-2.3.1,2)
        ! editors/vim-lite (vim-lite-7.1.145)   (checksum mismatch)
--->  Packages processed: 1 done, 3 ignored, 2 skipped and 4 failed
Code:
mail01# portupgrade -n -a
--->  Session started at: Thu, 13 Nov 2008 11:50:08 -0800
** No need to upgrade 'perl-5.8.8_1' (>= perl-5.8.8_1). (specify -f to force)
--->  ** Upgrade tasks 10: 0 done, 1 ignored, 0 skipped and 0 failed
** No need to upgrade 'db41-4.1.25_4' (>= db41-4.1.25_4). (specify -f to force)
--->  ** Upgrade tasks 10: 0 done, 2 ignored, 0 skipped and 0 failed
** No need to upgrade 'libiconv-1.11_1' (>= libiconv-1.11_1). (specify -f to force)
--->  ** Upgrade tasks 10: 0 done, 3 ignored, 0 skipped and 0 failed
--->  Upgrade of emulators/linux_base-fc4 started at: Thu, 13 Nov 2008 11:50:10 -0800
--->  Upgrading 'linux_base-fc-4_10' to 'linux_base-fc-4_13' (emulators/linux_base-fc4)
OK? [no]
--->  Upgrade of emulators/linux_base-fc4 ended at: Thu, 13 Nov 2008 11:50:10 -0800 (consumed 00:00:00)
--->  ** Upgrade tasks 10: 1 done, 3 ignored, 0 skipped and 0 failed
--->  Upgrade of devel/gettext started at: Thu, 13 Nov 2008 11:50:10 -0800
--->  Upgrading 'gettext-0.16.1_3' to 'gettext-0.17_1' (devel/gettext)
OK? [no]
--->  Upgrade of devel/gettext ended at: Thu, 13 Nov 2008 11:50:10 -0800 (consumed 00:00:00)
--->  ** Upgrade tasks 10: 2 done, 3 ignored, 0 skipped and 0 failed
--->  Upgrade of shells/bash started at: Thu, 13 Nov 2008 11:50:10 -0800
--->  Upgrading 'bash-3.2.25' to 'bash-3.2.39_1' (shells/bash)
OK? [no]
--->  Upgrade of shells/bash ended at: Thu, 13 Nov 2008 11:50:10 -0800 (consumed 00:00:00)
--->  ** Upgrade tasks 10: 3 done, 3 ignored, 0 skipped and 0 failed
** No need to upgrade 'ruby-1.8.6.287,1' (>= ruby-1.8.6.287,1). (specify -f to force)
--->  ** Upgrade tasks 10: 3 done, 4 ignored, 0 skipped and 0 failed
--->  Upgrade of databases/ruby-bdb started at: Thu, 13 Nov 2008 11:50:10 -0800
--->  Upgrading 'ruby18-bdb-0.6.2' to 'ruby18-bdb-0.6.4' (databases/ruby-bdb)
OK? [no]
--->  Upgrade of databases/ruby-bdb ended at: Thu, 13 Nov 2008 11:50:10 -0800 (consumed 00:00:00)
--->  ** Upgrade tasks 10: 4 done, 4 ignored, 0 skipped and 0 failed
--->  Upgrade of ports-mgmt/portupgrade started at: Thu, 13 Nov 2008 11:50:10 -0800
--->  Upgrading 'portupgrade-2.3.1,2' to 'portupgrade-2.4.6,2' (ports-mgmt/portupgrade)
OK? [no]
--->  Upgrade of ports-mgmt/portupgrade ended at: Thu, 13 Nov 2008 11:50:10 -0800 (consumed 00:00:00)
--->  ** Upgrade tasks 10: 5 done, 4 ignored, 0 skipped and 0 failed
--->  Upgrade of editors/vim-lite started at: Thu, 13 Nov 2008 11:50:10 -0800
--->  Upgrading 'vim-lite-7.1.145' to 'vim-lite-7.2.29' (editors/vim-lite)
OK? [no]
--->  Upgrade of editors/vim-lite ended at: Thu, 13 Nov 2008 11:50:10 -0800 (consumed 00:00:00)
--->  ** Upgrade tasks 10: 6 done, 4 ignored, 0 skipped and 0 failed
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
        - lang/perl5.8 (perl-5.8.8_1)
        - databases/db41 (db41-4.1.25_4)
        - converters/libiconv (libiconv-1.11_1)
        + emulators/linux_base-fc4 (linux_base-fc-4_10)
        + devel/gettext (gettext-0.16.1_3)
        + shells/bash (bash-3.2.25)
        - lang/ruby18 (ruby-1.8.6.287,1)
        + databases/ruby-bdb (ruby18-bdb-0.6.2)
        + ports-mgmt/portupgrade (portupgrade-2.3.1,2)
        + editors/vim-lite (vim-lite-7.1.145)
--->  Packages processed: 6 done, 4 ignored, 0 skipped and 0 failed
--->  Session ended at: Thu, 13 Nov 2008 11:50:10 -0800 (consumed 00:00:02)
I'm going to try run the kernel update. I will post my result once I got it updated. Thanks for all the help. It is very appreciated.

btw, is there any difference between using portsnap and csup? I had only tried the "portsnap fetch extract" as per your suggestion. I don't really understand how portsnap work yet.
Reply With Quote
  #9 (permalink)  
Old 14-11-2008, 12:44 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Code:
btw, is there any difference between using portsnap and csup? I had only tried the "portsnap fetch extract" as per your suggestion. I don't really understand how portsnap work yet.
portsnap is really easy. First time you need to fetch everything:
Code:
portsnap fetch extract
Then update package
Code:
portupgrade -a -R

In order to update system again (note we are using update now)
Code:
 portsnap fetch update
And upgrade all installed packages:
Code:
portmanager -u
I suggest update system kernel, base system and libs to latest version. Delete /usr/ports and fetch latest using portsnap fetch extract. This should fix problem.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #10 (permalink)  
Old 14-11-2008, 05:48 AM
Junior Member
User
 
Join Date: Nov 2008
OS: FreeBSD
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
speederpro is on a distinguished road
Default

I got to the step "make buildworld" and here is the error I got:
Code:
/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md:4283: error: 'reload_in_progbess' undeclared here (not in a function)
/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md:4284:6: warning: null character(s) ignored
/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md:1151:8: error: "" is not a valid filename
*** Error code 1

Stop in /usr/src/gnu/usr.bin/cc/cc_tools.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
I'm wondering can it be hardware issue that I'm having. Example cables, motherboard or something to that extend. I'm getting impatient with this. I'm gonna see if I can find another computer tomorrow to try it out. This is just getting impossible.
Reply With Quote
Reply

Tags
mismatch checksum , ports update problem , portsnap


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Howto update ports FreeBSD raj All about FreeBSD/OpenBSD/NetBSD 6 28-02-2010 07:02 PM
Freebsd Ports raj All about FreeBSD/OpenBSD/NetBSD 1 29-08-2008 09:40 AM
How to update antivirus database in FreeBSD enochalbert All about FreeBSD/OpenBSD/NetBSD 1 15-08-2008 12:57 PM
mtrr: type mismatch piggy Linux hardware 1 02-08-2007 10:32 PM
Why is there a mismatch between df and du outputs? raj Linux hardware 4 14-05-2007 05:51 PM


All times are GMT +5.5. The time now is 09:01 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38