freebsd package update / upgrade

alexus alexus at gmail.com
Wed Feb 22 03:56:54 UTC 2012


f9# portupgrade --use-packages-only -av
--->  Session started at: Tue, 21 Feb 2012 22:44:07 -0500
[Updating the portsdb <format:bdb_btree> in /usr/ports ... - 23025
port entries found
.........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000
..... done]
--->  Checking for the latest package of 'x11/xcb-util'
** No such file or directory - /usr/ports/packages/All
--->  Fetching the package(s) for 'xcb-util-0.3.6,1' (x11/xcb-util)
--->  Fetching xcb-util-0.3.6,1
++ Will try the following sites in the order named:
	ftp://ftp.FreeBSD.org//pub/FreeBSD/ports/amd64/packages-9.0-release/
--->  Invoking a command: /usr/bin/fetch -o
'/var/tmp/portupgradezRNyMfFc/xcb-util-0.3.6,1.tbz'
'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/xcb-util-0.3.6,1.tbz'
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/xcb-util-0.3.6,1.tbz:
File unavailable (e.g., file not found, no access)
** The command returned a non-zero exit status: 1
** Failed to fetch
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/xcb-util-0.3.6,1.tbz
--->  Invoking a command: /usr/bin/fetch -o
'/var/tmp/portupgradezRNyMfFc/xcb-util-0.3.6,1.txz'
'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/xcb-util-0.3.6,1.txz'
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/xcb-util-0.3.6,1.txz:
File unavailable (e.g., file not found, no access)
** The command returned a non-zero exit status: 1
** Failed to fetch
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/xcb-util-0.3.6,1.txz
--->  Invoking a command: /usr/bin/fetch -o
'/var/tmp/portupgradezRNyMfFc/xcb-util-0.3.6,1.tgz'
'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/xcb-util-0.3.6,1.tgz'
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/xcb-util-0.3.6,1.tgz:
File unavailable (e.g., file not found, no access)
** The command returned a non-zero exit status: 1
** Failed to fetch
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/xcb-util-0.3.6,1.tgz
** Failed to fetch xcb-util-0.3.6,1
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
	! xcb-util-0.3.6,1	(fetch error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Fetching the latest package(s) for 'xcb-util' (x11/xcb-util)
--->  Fetching xcb-util
++ Will try the following sites in the order named:
	ftp://ftp.FreeBSD.org//pub/FreeBSD/ports/amd64/packages-9.0-release/
--->  Invoking a command: /usr/bin/fetch -o
'/var/tmp/portupgradev3WY15SS/xcb-util.tbz'
'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/xcb-util.tbz'
/var/tmp/portupgradev3WY15SS/xcb-util.tbz     100% of   72 kB   71 kBps
--->  Downloaded as xcb-util.tbz
--->  Identifying the package /var/tmp/portupgradev3WY15SS/xcb-util.tbz
--->  Saved as /usr/ports/packages/All/xcb-util-0.3.6_1.tbz
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
	+ xcb-util@
--->  Packages processed: 1 done, 0 ignored, 0 skipped and 0 failed
--->  Found a package of 'x11/xcb-util':
/usr/ports/packages/All/xcb-util-0.3.6_1.tbz (xcb-util-0.3.6_1)
--->  Located a package version 0.3.6_1
(/usr/ports/packages/All/xcb-util-0.3.6_1.tbz)
** Ignoring the package, which is the same version as is installed (0.3.6_1)
** No package available: x11/xcb-util
--->  ** Upgrade tasks 5: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Checking for the latest package of 'devel/pcre'
--->  Fetching the package(s) for 'pcre-8.21_1' (devel/pcre)
--->  Fetching pcre-8.21_1
++ Will try the following sites in the order named:
	ftp://ftp.FreeBSD.org//pub/FreeBSD/ports/amd64/packages-9.0-release/
--->  Invoking a command: /usr/bin/fetch -o
'/var/tmp/portupgradeY26QDgh7/pcre-8.21_1.tbz'
'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/pcre-8.21_1.tbz'
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/pcre-8.21_1.tbz:
File unavailable (e.g., file not found, no access)
** The command returned a non-zero exit status: 1
** Failed to fetch
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/pcre-8.21_1.tbz
--->  Invoking a command: /usr/bin/fetch -o
'/var/tmp/portupgradeY26QDgh7/pcre-8.21_1.txz'
'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/pcre-8.21_1.txz'
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/pcre-8.21_1.txz:
File unavailable (e.g., file not found, no access)
** The command returned a non-zero exit status: 1
** Failed to fetch
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/pcre-8.21_1.txz
--->  Invoking a command: /usr/bin/fetch -o
'/var/tmp/portupgradeY26QDgh7/pcre-8.21_1.tgz'
'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/pcre-8.21_1.tgz'
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/pcre-8.21_1.tgz:
File unavailable (e.g., file not found, no access)
** The command returned a non-zero exit status: 1
** Failed to fetch
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/All/pcre-8.21_1.tgz
** Failed to fetch pcre-8.21_1
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
	! pcre-8.21_1	(fetch error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Fetching the latest package(s) for 'pcre' (devel/pcre)
--->  Fetching pcre
++ Will try the following sites in the order named:
	ftp://ftp.FreeBSD.org//pub/FreeBSD/ports/amd64/packages-9.0-release/
--->  Invoking a command: /usr/bin/fetch -o
'/var/tmp/portupgradeTCONbart/pcre.tbz'
'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/pcre.tbz'
/var/tmp/portupgradeTCONbart/pcre.tbz         100% of  780 kB  216 kBps
--->  Downloaded as pcre.tbz
--->  Identifying the package /var/tmp/portupgradeTCONbart/pcre.tbz
--->  Saved as /usr/ports/packages/All/pcre-8.20.tbz
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
	+ pcre@
--->  Packages processed: 1 done, 0 ignored, 0 skipped and 0 failed
--->  Found a package of 'devel/pcre':
/usr/ports/packages/All/pcre-8.20.tbz (pcre-8.20)
--->  Located a package version 8.20 (/usr/ports/packages/All/pcre-8.20.tbz)
** Ignoring the package, which is the same version as is installed (8.20)
** No package available: devel/pcre
--->  ** Upgrade tasks 5: 0 done, 0 ignored, 0 skipped and 2 failed
--->  Skipping 'devel/glib20' (glib-2.28.8_2) because a requisite
package 'pcre-8.20' (devel/pcre) failed (specify -k to force)
--->  ** Upgrade tasks 5: 0 done, 0 ignored, 1 skipped and 2 failed
--->  Skipping 'security/snort' (snort-2.9.1.2) because a requisite
package 'pcre-8.20' (devel/pcre) failed (specify -k to force)
--->  ** Upgrade tasks 5: 0 done, 0 ignored, 2 skipped and 2 failed
--->  Skipping 'security/nmap' (nmap-5.61.t2) because a requisite
package 'pcre-8.20' (devel/pcre) failed (specify -k to force)
--->  ** Upgrade tasks 5: 0 done, 0 ignored, 3 skipped and 2 failed
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
	! x11/xcb-util (xcb-util-0.3.6_1)	(package not found)
	! devel/pcre (pcre-8.20)	(package not found)
	* devel/glib20 (glib-2.28.8_2)
	* security/snort (snort-2.9.1.2)
	* security/nmap (nmap-5.61.t2)
--->  Packages processed: 0 done, 0 ignored, 3 skipped and 2 failed
--->  Session ended at: Tue, 21 Feb 2012 22:45:00 -0500 (consumed 00:00:52)
f9#

i dont understand output
it seemed like portupgrade tried downloading xcb-util from few place
first unsuccessful but later on stumble upon a place to download it
and then didnt install it because i already have this package
installed, then it moved to pcre (same story here) and last part is
totally looses me, it sees that I have pcre yet it something isn't
good...

i do have pcre installed

f9# pkg_info | grep ^pcre
pcre-8.20           Perl Compatible Regular Expressions library
f9#

all I want is to update these

f9# portaudit -a
Affected package: python27-2.7.2_3
Type of problem: Python -- DoS via malformed XML-RPC / HTTP POST request.
Reference: http://portaudit.FreeBSD.org/b4f8be9e-56b2-11e1-9fb7-003067b2972c.html

Affected package: sudo-1.8.3_1
Type of problem: sudo -- format string vulnerability.
Reference: http://portaudit.FreeBSD.org/7c920bb7-4b5f-11e1-9f47-00e0815b8da8.html

Affected package: ruby-1.8.7.352_2,1
Type of problem: Multiple implementations -- DoS via hash algorithm collision.
Reference: http://portaudit.FreeBSD.org/91be81e7-3fea-11e1-afc7-2c4138874f7d.html

3 problem(s) in your installed packages found.

You are advised to update or deinstall the affected package(s) immediately.
f9#

P.S. why is it pkg_add installing vulnerable versions at the first
place? i just installed ruby and already is a problem??



On Thu, Feb 2, 2012 at 9:15 PM, Erich Dollansky
<erichfreebsdlist at ovitrap.com> wrote:
> Hi,
>
> On Friday 03 February 2012 08:52:07 alexus wrote:
>> What's the procedure on updating packages (not ports), can someone
>> point me (preferably in a handbook) or else where is fine too...
>
> it is also done with portupgrade. You just have to use -P or -PP.
>
> Check the manual to find out more.
>
> Erich
>>
>> --
>> http://alexus.org/
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>>
>>



-- 
http://alexus.org/


More information about the freebsd-questions mailing list