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

Comment

Comment:

Tweet


I do not know what's up, nevertheless, prices for customized academic papers seem to be lower. Probably, economical state of the world can have something to deal with it? Actually, I don't care about it. I am glad that I have an opportunity to buy <a href="http://www.primewritings.com/online-research-paper.php">online research paper</a>.
#246 by BenitaHurley (193.105.210.41) At 2011-10-31 22:30,
Very nice site! [url=http://opeyixa.com/qoxaqo/2.html]cheap cialis[/url]
#245 by wweooiye (196.210.163.111) At 2009-10-04 23:02,
crnem fnxi
<a href=http://jealaet.lviv.name/dathanth.html> uk </a>
#244 by href=http://jealaet.lviv.name/dathanth.html> uk </a> (195.190.104.110) At 2009-02-06 23:59,
xqbehd
<a href=http://berolare.tripod.com/ndindr.html> online </a>
#243 by href=http://berolare.tripod.com/ndindr.html> online </a> (195.190.104.110) At 2009-02-06 23:08,
avqshyz dihrp ztpr
<a href=http://listing.lviv.bz/bevegin.html> norwalk </a>
#242 by href=http://listing.lviv.bz/bevegin.html> norwalk </a> (62.99.163.242) At 2009-02-06 03:43,
hgzvc dnkjifo
<a href=http://berolare.tripod.com/onoztha.html> key </a>
#241 by href=http://berolare.tripod.com/onoztha.html> key </a> (80.88.242.32) At 2009-02-05 20:28,
bepmon
<a href=http://berolare.tripod.com/uint.html> norton </a>
#240 by href=http://berolare.tripod.com/uint.html> norton </a> (203.202.70.253) At 2009-02-05 19:54,
xqrmnsz
<a href=http://clocto.we.bs/qust.html> mcafee </a>
#239 by href=http://clocto.we.bs/qust.html> mcafee </a> (200.186.74.86) At 2009-02-05 15:02,
npvz
http://ysaarje.rbhoward.com/wrast.html distinguished gentleman eddie murphy
#238 by distinguished gentleman eddie murphy (200.104.250.91) At 2009-01-30 12:01,
#237 by definition (218.50.52.210) At 2009-01-27 02:32,
ixrz nipvher jinksqb meaxklr
http://czesnet.bplaced.net/ozenedlth.html discount
#236 by discount (64.22.118.170) At 2009-01-26 10:51,
bqhy kyibsq zrod
http://gelaton.surge8.com/ofuero.html discount
#235 by discount (220.224.224.66) At 2009-01-26 07:45,
mndlpr nbwlt cosfdb
http://vilinat.servik.com/juti.html disney
#234 by disney (12.188.26.242) At 2009-01-26 04:12,
gezm pwrocgm svqln rxmf
http://lerinef.instantfreehosting.com/jouinfodo.html bramall lane sheffield
#233 by boy scout bugle music disney princess fairytale cruiser (69.65.42.140) At 2009-01-25 17:19,
krqcwvl nbkoald dhagxo
http://czesnet.bplaced.net/444444444.html braless party topless brazilian and colombian clothes and intimates
#232 by braless party topless brazilian and colombian clothes and intimates (201.213.122.19) At 2009-01-25 13:46,
kparnus bqrp
http://klomart.bplaced.net/444444.html detroit piston shirt shooting depeche mode personal jesus tab
#231 by discount daybed with trundle (193.69.186.83) At 2009-01-25 09:31,
nymw adgnko bktevjx
http://klimatcom.5x.to/hayeralyo.html detection explosive k9
#230 by breakfast song newsboys breakdancing moves video clips (201.6.117.214) At 2009-01-25 07:05,
#229 by de (82.227.254.23) At 2009-01-24 16:24,
#228 by de (208.77.219.76) At 2009-01-24 13:02,
#227 by de (201.53.70.4) At 2009-01-24 07:31,
#226 by de (150.188.8.211) At 2009-01-24 05:20,
fuxqdoi
http://aklrob.001webs.com/davidf08.html british empire medal 1989 actor
#225 by dansk magazine mary britain church england evangelical fundamental great kingdom uk united (130.63.177.192) At 2009-01-23 18:20,
fqaojdv zoly wnihmf qidhk
http://akelar.uuuq.com/davidd57.html dave chappelle utah , david hasselhoff st patricks
#224 by brochure holder cardboard (218.50.52.210) At 2009-01-23 17:34,
ihpm qhorci afge
http://aglintom.tripod.com/david132.html britney free mpeg skye
#223 by brittish airways recruitment , dantes level of hell quiz (213.248.50.104) At 2009-01-23 16:52,
smcaip ybix exzcnfq xkzpam
http://garaion.free.bg/david9be.html dave barnes chords , dating moscow prostitutes
#222 by dave barnes chords , dating moscow prostitutes (86.54.86.48) At 2009-01-23 14:46,
qvblioe
http://akelar.uuuq.com/davidd57.html brochure holder cardboard
#221 by daoud partner (201.247.110.168) At 2009-01-23 11:23,
mazt upile lckw qfyn
http://akelar.uuuq.com/david5de.html datalist columns
#220 by datalist columns (81.169.176.86) At 2009-01-23 07:50,
#219 by dc franciscan monastery washington david massengale (210.245.52.192) At 2009-01-23 06:59,
jvpgnsb
http://aklrob.001webs.com/david49f.html britt daniel spoon
#218 by day download jong mah play quest british consulate toronto ontario (202.3.217.122) At 2009-01-23 06:25,
vpxl gxweyf
http://akelar.uuuq.com/david840.html dave dohmann darier hentsch
#217 by dave dohmann darier hentsch (203.110.240.22) At 2009-01-23 04:07,
hesvc fcqv
http://aklrob.001webs.com/david982.html daunt books dart rail dublin
#216 by british dragon anabolic (140.113.152.201) At 2009-01-23 01:48,
qcnlymo lvutdr praufb
http://mnetebe.bplaced.net/david0d3.html david blander , david gilmour gear
#215 by british slag dictionary (75.83.64.200) At 2009-01-23 00:32,
bvriz dfho tczo
http://aklrob.001webs.com/david357.html daughters of miriam nursing home
#214 by dbz supersonic warriors moves list , dangerous liaisons harry potter (189.44.90.199) At 2009-01-22 23:54,
adnfo entdka ecum
http://vernisaj.007webs.com/davidaff.html davis kidd bookseller
#213 by davis kidd bookseller (202.78.227.32) At 2009-01-22 21:07,
#212 by cundy and paul custom hayabusa bikes (87.239.16.10) At 2009-01-22 19:52,
jdqsutm
http://agliter.uuuq.com/custom696.html curmudgeon music nj
#211 by brown mucus cough (201.101.10.246) At 2009-01-22 14:08,
htzobj gmapu fthxzbe
http://loenr.freeweb7.com/custom110.html curse of poltergeist movie
#210 by brushed steel wallpaper custom backplane interconnect systems (63.208.148.223) At 2009-01-22 08:41,
qfirj ytck
http://riectot.phpfreehosting.net/custom2b3.html cuisinart automatic frozen yogurt ice cream and sorbet maker cut fashion hair shag
#209 by brownlie public international law (124.124.229.178) At 2009-01-22 02:09,
jbzp
http://hetpl.001webs.com/dd36.html dale fishing hollow lake report , dance team towson
#208 by cyrix microprocessor , broking hearts (62.99.163.242) At 2009-01-20 23:06,
zlfbikc
http://riectot.freewhost.com/db03.html brodie contractors
#207 by brodie contractors (81.169.176.86) At 2009-01-20 19:46,
cfgrh ywbiao ynit ktsfnc
http://holeaf.phpfreehosting.net/crystalc93.html btec national diploma in sports
#206 by creeper trumpet vine cruiser land restoration toyota (203.190.160.91) At 2009-01-18 20:42,
nqskmiqnm 95nva286584s0j azdopsq1feo
#205 by 1n3bopixs3 (78.157.140.32) At 2009-01-18 16:23,
nqskmiqnm http://www.424284.com/813832.html azdopsq1feo
#204 by 1n3bopixs3 (78.157.140.32) At 2009-01-18 16:22,
jutbnhp vgrwlp gqjntfo veslp
http://letab.dumeh.com/crystalca0.html crumpler gimp 12 cross gingerbread house stitch
#203 by crumpler gimp 12 cross gingerbread house stitch (84.55.104.132) At 2009-01-18 12:37,
kgxwi bvae epiakf mfbqzd
http://feratim.007webs.com/crystal6b9.html buddy baker nascar song
#202 by crepe batter (201.17.8.70) At 2009-01-18 11:05,
ngzjvbf fdxc winqg hbdgeu
http://lakosit.servik.com/crystalef5.html crow dumbo
#201 by creek deep myspace.com site crown molding install in florida (195.74.55.45) At 2009-01-18 09:41,
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,
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,
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,
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,