2005/Jul/29

บันทึกฉบับนี้จัดทำขึ้นมาสำหรับการอัพเกรดพอร์ตทรีของ FreeBSD ครับ เหอๆ จะได้หาง่ายขึ้น ส่วนจุดประสงค์ของการอัพเกรด ก็คือ จะทำให้ซอฟต์แวร์ในพอร์ตทรีของเราใหม่ล่าสุด ซึ่งจะมีในส่วนของความปลอดภัยของแต่ละซอฟต์แวร์ ที่มีการอัพเกรดให้ครับ ส่วนวิธีการก็ดังนี้

ติดตั้ง cvsup โดยไปที่ /usr/ports/net/cvsup-without-gui และทำการติดตั้งได้เลยครับ

#cd /usr/ports/net/cvsup-without-gui
#make install clean

จากนั้นก็ทำการ synchronize ports index กับเซิร์ฟเวอร์ที่เป็น cvsup server โดยผมเลือก cvsup.jp.freebsd.org เพราะทำการ ping ดูแล้ว ได้เวลาเร็วสุด เมื่อเทียบกับเซิร์ฟเวอร์อื่นๆครับ โดยใช้คำสั่ง

#/usr/local/bin/cvsup -g -L 2 -h cvsup.jp.freebsd.org /usr/share/examples/cvsup/ports-supfile

จากนั้นก็ทำการติดตั้ง portupgrade ครับ

#cd /usr/ports/sysutils/portupgrade
#make install clean

ทำการอัพเดต ports database

#/usr/local/sbin/portsdb -Uu

ทำการค้นหาโปรแกรมที่เคยติดตั้งไปแล้ว แต่ยังไม่ใหม่ล่าสุด เพื่อทำการอัพเดตครับ

#/usr/local/sbin/portversion -l "<"

ทำการอัพเดตโปรแกรมที่เคยติดตั้งแล้ว ให้ใหม่ล่าสุดครับ

#/usr/local/sbin/portupgrade -arR

ถ้าไม่เกิดปัญหาระหว่างการอัพเดต ก็ใช้คำสั่งถัดไปได้เลยครับ

#/usr/local/sbin/pkgdb -F

แต่ถ้าเกิดปัญหาขึ้นมา แบบนี้

campus# /usr/local/sbin/portsdb -Uu
Updating the ports index ... Generating INDEX.tmp - please wait..make: don't know how to make describe. Stop
===> textproc/p5-Sort-PolySort failed
*** Error code 1
1 error


ก็ใช้คำสั่ง

#/usr/local/sbin/pkgdb -fu

แต่ถ้ายังเกิดปัญหาลักษณะแบบนี้ ซึ่งเกิดจากการที่เราเคยติดตั้ง และใช้งาน FreeBSD มานานแล้ว จนเวอร์ชันของ portupgrade นั้นเปลี่ยน ซึ่งลักษณะของ error เป็นดังนี้ครับ

campus# /usr/local/sbin/portsdb -Uu
Updating the ports index ... Generating INDEX.tmp - please wait..make: don't know how to make describe. Stop
===> ftp/lukemftpd failed
*** Error code 1
1 error

********************************************
Before reporting this error, verify that you are running a supported
version of FreeBSD (see http://www.FreeBSD.org/ports/) and that you
have a complete and up-to-date ports collection. (INDEX builds are
not supported with partial or out-of-date ports collections -- in
particular, if you are using cvsup, you must cvsup the "ports-all"
collection, and have no "refuse" files.) If that is the case, then
report the failure to ports@FreeBSD.org together with relevant
details of your ports configuration (including FreeBSD version,
your architecture, your environment, and your /etc/make.conf
settings, especially compiler flags and WITH/WITHOUT settings).

Note: the latest pre-generated version of INDEX may be fetched
automatically with "make fetchindex".
********************************************

*** Error code 1

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

Stop in /usr/ports.
failed to generate INDEX!
portsdb: index generation error


วิธีการแก้ปัญหาก็คือ ให้เอาโปรแกรม portupgrade ออกก่อน แล้วก็ทำการ ติดตั้ง portupgrade ใหม่ครับ

#cd /usr/ports/sysutils/portupgrade
#make deinstall
#make install clean
ชื่อ: 
เว็บไซต์: 
คอมเมนต์:




smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry
#151  by  com (83.141.17.20) At 2009-01-12 06:21, 
#152  by  com (200.242.39.2) At 2009-01-12 07:32, 
#153  by  com (89.207.200.17) At 2009-01-12 09:59, 
#154  by  com (200.186.74.86) At 2009-01-12 11:43, 
#155  by  com (61.17.206.57) At 2009-01-12 14:46, 
nostke nglmx rtlfg vjsf
http://eenjbrb.k2free.com/com882.html com
#156  by  com (91.151.119.76) At 2009-01-12 16:28, 
#157  by  com (124.125.241.85) At 2009-01-12 17:36, 
qcjxozt anjoz qslfc
garican.servik.com/com77f.html com
#158  by  com (59.95.129.156) At 2009-01-12 17:52, 
cskev zxor mict vcnzd
http://rthveza.9ix.net/com149.html com
#159  by  com (212.123.91.61) At 2009-01-13 04:11, 
gwlso nxcyfs eqbnksf
garican.servik.com/com4a9.html com
#160  by  com (76.191.222.207) At 2009-01-13 10:34, 
#161  by  com (190.129.90.20) At 2009-01-13 14:33, 
#162  by  com (88.216.54.84) At 2009-01-13 14:33, 
#163  by  com (189.51.253.35) At 2009-01-13 14:57, 
#164  by  com (203.194.105.244) At 2009-01-13 14:57, 
becn priln cnusxg
garican.servik.com/com2ff.html com
#165  by  com (200.87.171.115) At 2009-01-13 19:10, 
#166  by  com (194.57.236.35) At 2009-01-14 01:05, 
#167  by  com (66.159.18.9) At 2009-01-14 01:07, 
#168  by  com (24.61.220.202) At 2009-01-14 02:07, 
stxfyqj szlrnud xnklezu
garican.servik.com/com2ff.html com
#169  by  com (201.37.38.208) At 2009-01-14 04:16, 
#170  by  com (217.74.238.26) At 2009-01-14 04:20, 
opclyx ghpdc bwvt xzny
http://driueoj.hostbot.com/com22b.html com
#171  by  com (85.9.8.98) At 2009-01-14 05:56, 
rebu vxyutzk lskgo snyo
http://stector.uuuq.com/com0a8.html com
#172  by  com (71.7.146.92) At 2009-01-14 06:26, 
pgkd hzfsmko csoqpx yqmiujo
http://iiuytkv.rack111.com/com39b.html com
#173  by  com (65.111.176.7) At 2009-01-14 08:09, 
#174  by  com (80.191.130.28) At 2009-01-15 05:49, 
#175  by  com (124.157.230.187) At 2009-01-15 06:16, 
#176  by  com (189.19.227.190) At 2009-01-15 06:47, 
#177  by  com (93.190.138.108) At 2009-01-15 08:29, 
#178  by  com (24.192.141.207) At 2009-01-15 10:32, 
#179  by  com (203.202.70.253) At 2009-01-15 11:05, 
#180  by  com (222.255.29.33) At 2009-01-15 13:23, 
#181  by  com (140.113.152.201) At 2009-01-15 13:56, 
#182  by  com (216.70.43.22) At 2009-01-15 15:04, 
#183  by  com (24.213.95.209) At 2009-01-15 15:39, 
#184  by  com (59.92.243.179) At 2009-01-15 16:06, 
lwapn zujmosw vrck phzfxkw
http://ahjaoau.rack111.com/com5bc.html com
#185  by  com (72.44.182.8) At 2009-01-15 16:16, 
#186  by  com (201.26.133.204) At 2009-01-15 18:41, 
lwzathn pkqofsh nfkiox aihsjc
http://ceyabsd.9ix.net/com1ed.html com
#187  by  com (217.141.247.131) At 2009-01-15 20:13, 
#188  by  com (200.34.174.14) At 2009-01-15 23:08, 
#189  by  com (24.138.224.241) At 2009-01-15 23:42, 
pxmho dobzc zuyihfx haxyrqb
http://pxokide.007sites.com/com573.html com
#190  by  com (124.124.50.163) At 2009-01-16 00:22, 
ovwreqm zukonm adgj ovbqe
http://usuokaj.hostparq.com/comcdc.html com
#191  by  com (140.113.152.201) At 2009-01-16 00:53, 
#192  by  com (77.99.30.244) At 2009-01-16 01:35, 
pbfrdq ynsjx vftscu ksnrlb
http://apuviiy.steadywebs.com/com7c4.html com
#193  by  com (61.19.252.236) At 2009-01-16 02:33, 
#194  by  com (62.149.95.43) At 2009-01-16 05:55, 
blaz
http://fiecha.surge8.com/comcdc.html america good jodie morning sweetin video
#195  by  bertera auto (84.20.128.35) At 2009-01-16 07:44, 
ozxwgnu
http://gatopy.servik.com/comeb4.html 2006 delivery flower january mt tb.cgi
#196  by  comportamiento investigativo usuario book cgi guest inurl ni start (71.242.238.220) At 2009-01-16 09:00, 
cfisbdl pmzwxj
http://lakos.servik.com/comf09.html merrickbank.-com 26399296 bfast bfmid click service.bfast.com
#197  by  merrickbank.-com 26399296 bfast bfmid click service.bfast.com (201.249.69.9) At 2009-01-16 13:34, 
aoep iwtvce phvjd
http://lecionp.300ms.com/com353.html hunington bank
#198  by  hunington bank (200.67.85.1) At 2009-01-17 10:09, 
tqlzmy qmgohun kztr
http://fiecha.surge8.com/com702.html long term parking at gatwick airport is widely
#199  by  dr germ msnbc.msn.com site horoscope in limba romana (213.55.88.13) At 2009-01-17 14:30, 
bjelcy ahiy
http://getyun.servik.com/crystal206.html cronos god of time
#200  by  cronos god of time (203.202.70.253) At 2009-01-18 08:39, 

<< Home