summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/bootloader-config
blob: 1595d30f997b20f1bcdd83f2c690fdd723c133ad (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
#!/usr/bin/perl

use lib qw(/usr/lib/libDrakX);
use Getopt::Long;

use common;
use bootloader;

$::isStandalone = 1; #- not using standalone which messes with @ARGV and usage
c::openlog('bootloader-config' . "[$$]");

$ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}";

my %options = (
	       'action=s' => \ (my $action),

	       'label=s' => \ (my $label),

	       'chainload=s' => \ (my $chainload),

	       'image=s' => \ (my $image), 
	       'kernel-version=s' => \ (my $kernel_version), 

	       'initrd-options=s' => \ (my $initrd_options),
	       'no-short-name' => \ (my $no_short_name),
	       'no-entry' => \ (my $no_entry),
	       'no-launch' => \ (my $no_launch),
	       'no-initrd' => \ (my $no_initrd),
	      );

GetOptions(%options) && $action or die <<'EOF';
usage: bootloader-config --action add-kernel (--image <vmlinuz> | --kernel-version <2.6.xxx>) [--label <...>] [--no-short-name] [--initrd-options <options>]
       bootloader-config --action remove-kernel (--image <vmlinuz> | --kernel-version <2.6.xxx>)

       bootloader-config --action add-entry (--image <image> | --chainload <device>) --label <...>
       bootloader-config --action remove-entry (--image <image> | --chainload <device> | --label <...>)

       bootloader-config --action update-splash
       bootloader-config --action remove-splash
       bootloader-config --action rebuild-initrds
       bootloader-config --action migrate-to-uuids
EOF

my @known_actions = qw(add-kernel remove-kernel update-splash remove-splash rebuild-initrds migrate-to-uuids detectloader add-entry remove-entry add-resume2);
$action && member($action, @known_actions) or die "<action> must be one of " . join(' ', @known_actions) . "\n";

if ($image) {
    if (my $ver = bootloader::vmlinuz2version($image)) {
	if ($kernel_version) {
	    $kernel_version eq $ver or die "$kernel_version and $ver do not match (hint: do not pass both --image and --kernel-version)\n";
	} else {
	    $kernel_version = $ver;
	}
    }
    $image = "/boot/$image" if $image !~ m!^/!;
} elsif ($kernel_version) {
    $image = find { -e $_ } map { "/boot/$_-$kernel_version" } qw(vmlinux uImage vmlinuz);
}


my $all_hds = fsedit::get_hds();
fs::get_info_from_fstab($all_hds);

my $bootloader = bootloader::read($all_hds);
if (!$bootloader) {
    if (member($action, 'add-kernel', 'remove-kernel')) {
	if ($no_initrd) {
	    die "Cannot find a bootloader installed and initrd build suppressed\n";
	}
	warn "Cannot find a boot loader installed. Only taking care of initrd\n";
    } else {
	die "Cannot find a boot loader installed\n";
    }
}

$action =~ s/-/_/g;
$::{$action}->();


#-###############################################################################
sub remove_now_broken_boot_symlinks() {
    foreach (glob("/boot/vmlinuz*"), glob("/boot/initrd*")) {
	-l $_ && !-e $_ or next;
	log::l("removing now broken symlink $_");
	unlink $_;
    }
}
sub remove_kernel() {
    unlink "/lib/modules/$kernel_version/build";
    unlink "/lib/modules/$kernel_version/source";
    remove_now_broken_boot_symlinks();

    if (!$bootloader) {
	#- removing the initrd for weird configs where no mga bootloader is configured
	my $kernel_str = bootloader::vmlinuz2kernel_str($image) or die "bad kernel name $image\n";
	my $initrd_long = bootloader::kernel_str2initrd_long($kernel_str);
	unlink "/boot/$initrd_long";
	return;
    }

    my %proposed_labels;
    my @new_entries;

    my ($to_remove, $to_keep) = partition {
	if ($_->{kernel_or_dev} && $_->{kernel_or_dev} eq $image) {
	    1;
	} else {
	    my $vmlinuz = $_->{kernel_or_dev} && bootloader::expand_vmlinuz_symlink($_->{kernel_or_dev});
	    if ($vmlinuz && "/boot/$vmlinuz" eq $image) {
		#- eg: removing kernel XXX and entry "linux" has /boot/vmlinuz -> vmlinuz-XXX
		#-     so finding out which kernel still installed is better suited to use label "linux"
		if (!%proposed_labels) {
		    %proposed_labels = bootloader::get_kernels_and_labels_before_kernel_remove($vmlinuz); 
		}
		if (my $kernel_str = $proposed_labels{$_->{label}}) {
		    push @new_entries, [ $kernel_str, $_ ];
		    1;
		} else {
		    0;
		}
	    } else {
		0;
	    }
	}
    } @{$bootloader->{entries}};

    $_->{initrd} && unlink $_->{initrd} foreach @$to_remove;

    @{$bootloader->{entries}} = @$to_keep;

    foreach (@new_entries) {
	my ($kernel_str, $v) = @$_;
	bootloader::add_kernel($bootloader, $kernel_str, $v);
    }

    modify_bootloader();
}    


#-###############################################################################
sub add_kernel() {
    configure_ide_controller();
    bootloader::create_link_source();

    my $kernel_str = bootloader::vmlinuz2kernel_str($image) or die "bad kernel name $image\n";

    if (!$bootloader) {
	#- building the initrd for weird configs where no mga bootloader is configured
	my $fake_bootloader = { vga => undef };
	my %opts = (initrd_options => $initrd_options);
	my $initrd_long = bootloader::kernel_str2initrd_long($kernel_str);
	bootloader::mkinitrd($kernel_str->{version}, $fake_bootloader, \%opts, "/boot/$initrd_long");
	return;
    }

    my $root_part = fs::get::root_([ fs::get::fstab($all_hds) ]) or warn "cannot find root partition in /etc/fstab\n";
    $root_part ||= fs::get::root_from_mounted() or die "cannot find root partition\n";
    my %opts = (
		root => fs::wild_device::from_part('', $root_part), 
		initrd_options => $initrd_options,
		if_($label, label => $label),
		(grep_each { member($::a, 'vga', 'lock') } %{$bootloader->{default_options}}),
	       );

        #- short name
	bootloader::add_kernel($bootloader, $kernel_str, { %opts }, 0, $no_initrd) if !$no_short_name;

        #- long name
	$kernel_str->{use_long_name} = 1;
        bootloader::add_kernel($bootloader, $kernel_str, { %opts }, 1, $no_initrd);

    modify_bootloader();
}

sub configure_ide_controller() {
    my $modules_conf = modules::any_conf->read;
    if ($modules_conf->get_alias('ide-controller') || 
        $modules_conf->get_probeall('ide-controller')) {
	#- already configured
    } elsif (my @l = detect_devices::probe_category('disk/ide')) {
	$modules_conf->add_probeall('ide-controller', $_->{driver}) foreach @l;
	$modules_conf->write;
    }
}

sub modify_bootloader() {
    !$no_entry or return;

    bootloader::action($bootloader, 'write', $all_hds);
    bootloader::action($bootloader, 'when_config_changed') if !$no_launch;
}

#-###############################################################################
sub add_entry() {
    $label or die "you must give a label\n";
    ($image xor $chainload) or die "you must give an image or a chainload\n";

    my $entry = {
		  type => $image ? 'image' : 'other',
		  label => $label,
		  kernel_or_dev => $image || $chainload,
		 };
    bootloader::add_entry($bootloader, $entry);
    modify_bootloader();
}

sub _get_entry() {
    listlength(grep { $_ } $label, $image, $chainload) == 1 or die "you must give one of --label, --image and --chainload\n";

    $label ? bootloader::get_label($label, $bootloader) : 
             find { $_->{kernel_or_dev} && $_->{kernel_or_dev} eq ($image || $chainload) } @{$bootloader->{entries}};
}

sub remove_entry() {
    my $e = _get_entry() or return;

    @{$bootloader->{entries}} = grep { $_ != $e } @{$bootloader->{entries}};
    modify_bootloader();
}

sub add_resume2() {
    my $e = _get_entry() or return;
   
    my ($simple, $dict) = bootloader::unpack_append($e->{append});
    if (my $resume = find { $_->[0] eq 'resume' } @$dict) {
	if (!any { $_->[0] eq 'resume2' } @$dict) {
	    push @$dict, [ resume2 => "swap:$resume->[1]" ];
	    $e->{append} = bootloader::pack_append($simple, $dict);

	    modify_bootloader();
	}
    }
}

#-###############################################################################
sub rebuild_initrds() {    
    bootloader::rebuild_initrds($bootloader);
    bootloader::action($bootloader, 'when_config_changed') if !$no_launch;
}

#-###############################################################################
sub migrate_to_uuids() {    
    foreach (fs::get::fstab($all_hds)) {
	_add_uuid_to_swap($_) if $_->{fs_type} eq 'swap' && !$_->{device_UUID};
    }

    my $fstab = [ fs::get::fstab($all_hds) ];

    _migrate_to_uuids__fstab($fstab);

    my $bootloader_migrated;
    my $may_migrate = sub {
	my ($label, $dev_ref) = @_;
	my $dev_ = _migrate_dev_to_uuid($fstab, $$dev_ref) or return;

	log::l("migrate_to_uuids: migrating bootloader $label=$$dev_ref entry");
	$$dev_ref = $dev_;
	$bootloader_migrated = 1;
    };
    # migrate root=
    $may_migrate->('root', \$_->{root}) foreach grep { !$_->{keep_verbatim} } @{$bootloader->{entries}};

    # migrate resume=
    bootloader::modify_append($bootloader, sub {
	my ($_simple, $dict) = @_;
	foreach (grep { $_->[0] eq 'resume' } @$dict) {
	    $may_migrate->($_->[0], \$_->[1]);
	}
    });

    if ($bootloader_migrated) {
	bootloader::action($bootloader, 'write', $all_hds, '.before-migrate-to-uuids');
	bootloader::action($bootloader, 'when_config_changed');
    }
}

sub _migrate_to_uuids__fstab {
    my ($fstab) = @_;

    my @raw_fstab = fs::read_fstab('', '/etc/fstab', 'keep_freq_passno', 'verbatim_credentials');

    my $fstab_migrated;
    foreach my $part (@raw_fstab) {
	_should_prefer_UUID($part) or next;

	my $part_ = find { fs::get::is_same_hd($part, $_) } @$fstab
	  or log::l("migrate_to_uuids: do not know $part->{device}, cannot migrate it"), next;

	$part->{device_UUID} = $part_->{device_UUID}
	  or log::l("migrate_to_uuids: no UUID for $part->{device}, cannot migrate it"), next;
	$part->{prefer_device_UUID} = 1;
	$part->{prefer_device} = 0;
	delete $part->{device_alias} if $part->{device_alias} && $part->{device_alias} =~ m!\bmapper/!; # see fs::dmraid::migrate_device_names() for more

	log::l("migrate_to_uuids: migrating fstab $part->{device} entry");
	$fstab_migrated = 1;
    }
    if ($fstab_migrated) {
	cp_af('/etc/fstab', '/etc/fstab.before-migrate-to-uuids');

	my ($s) = fs::prepare_write_fstab(\@raw_fstab, '', 'keep_smb_credentials');
	output('/etc/fstab', $s);
    }
}

sub _migrate_dev_to_uuid {
    my ($fstab, $dev) = @_;
    $dev && $dev =~ m!/dev/! or return;

    my $part = fs::get::device2part($dev, $fstab);
    _should_prefer_UUID($part) or return;
    $part && $part->{device_UUID} && "UUID=$part->{device_UUID}";
}

sub _should_prefer_UUID {
    my ($part) = @_;
    devices::should_prefer_UUID($part->{device})
	|| $part->{device} =~ m!\bmapper/!; # we want to migrate dmraid devices, because of xxx1 vs xxxp1 device name issue
}

# add UUID to swap v.2 in case the swap was created long ago when mkswap didn't do it by default
sub _add_uuid_to_swap {
    my ($part) = @_;

    my $ids = fs::type::call_blkid($part);
    $ids->{ID_FS_VERSION} eq '2' 
      or log::l("ERROR: do not know swap version $ids->{ID_FS_VERSION}, so cannot add UUID to it"), return;

    my $uuid = run_program::get_stdout('uuidgen');
    log::l("adding UUID=$uuid to $part->{device}");
    $uuid =~ s/-//g; 
    $uuid =~ s/(..)/chr(hex($1))/ge;

    {
	my $F;
	sysopen($F, devices::make($part->{device}), 2) or die "error opening device $part->{device} for writing";
	sysseek($F, 1036, 0) && syswrite($F, $uuid) or log::l("writing UUID failed");
    }

    if (my $p = fs::type::type_subpart_from_magic($part)) {
	$part->{device_UUID} = $p->{device_UUID};
    }
}

#-###############################################################################
sub update_splash() {
    bootloader::update_splash($bootloader);
    bootloader::action($bootloader, 'when_config_changed') if !$no_launch;
}

sub remove_splash() {
    foreach (@{$bootloader->{entries}}) {
	bootloader::remove_boot_splash($_->{initrd}) if $_->{initrd};
    }
    bootloader::action($bootloader, 'when_config_changed') if !$no_launch;
}

sub detectloader() {
    print uc(bootloader::main_method($bootloader->{method})), "\n" if $bootloader;
}
>842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298
# translation of zh_TW.po to Chinese Traditional
# translation of urpmi-zh_TW.po to Chinese Traditional
#
# Latest versions of po files are at http://www.mandrakelinux.com/l10n/zh_TW.php3
#
# Big5.
# Copyright (c) 1999 Free Software Foundation, Inc.
# Copyright (c) 1999 MandrakeSoft
# Taiwan Linux User Group
# Chinese GNU/Linux Extension(CLE) http://cle.linux.org.tw/CLE/
# Kenduest Lee <kenduest@i18n.linux.org.tw> , 2002\n"
# Andrew Lee <andrew@cle.linux.org.tw>, 1999.
# Joe Man <trmetal@yahoo.com.hk>, 2001.
# Jau-Shiung Liau <pesder@seed.net.tw>, 2002.
# Hilbert <freehil@yahoo.com>, 2003, 2004.
# Hilbert <h@mandrake.org>, 2004.
#
msgid ""
msgstr ""
"Project-Id-Version: zh_TW\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-03-04 20:47+0100\n"
"PO-Revision-Date: 2004-02-04 08:17+0800\n"
"Last-Translator: Hilbert <h@mandrake.org>\n"
"Language-Team: Chinese Traditional <zh@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=BIG5\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.0.2\n"

#. This is a list of chars acceptable as a 'yes' answer to a Yes/No question;
#. you can put here the letters for 'yes' for your language, so people
#. can hit those keys in their keyboard to reply.
#. please keep the 'Yy' for compatibility reasons
#.
#: placeholder.h:11
msgid "Yy"
msgstr "Yy¬O"

#. This is a list of chars acceptable as a 'no' answer to a Yes/No question;
#. you can put here the letters for 'no' for your language, so people
#. can hit those keys in their keyboard to reply.
#. please keep the 'Nn' for compatibility reasons
#.
#: placeholder.h:17
msgid "Nn"
msgstr "Nn§_"

#: ../_irpm:23
#, c-format
msgid "installing %s\n"
msgstr "¥¿¦b¦w¸Ë %s\n"

#: ../_irpm:33
#, c-format
msgid ""
"Automatic installation of packages...\n"
"You requested installation of package %s\n"
msgstr ""
"¦Û°Ê®M¥ó¦w¸Ë...\n"
"±z­n¨D¦w¸Ëªº®M¥ó %s\n"

#: ../_irpm:33 ../urpme:28 ../urpmi:571
#, c-format
msgid "Is this OK?"
msgstr "³o¼Ë¥i¥H¶Ü?"

#: ../_irpm:35 ../urpmi:143
#, c-format
msgid "Ok"
msgstr "½T©w"

#: ../_irpm:36 ../urpmi:144
#, c-format
msgid "Cancel"
msgstr "¨ú®ø"

#: ../_irpm:44 ../urpmi:507 ../urpmi:579
#, c-format
msgid " (Y/n) "
msgstr " (Y/n) (¬O/§_) "

#: ../_irpm:63
#, c-format
msgid "%s: command not found\n"
msgstr "%s:§ä¤£¨ì«ü¥O\n"

#: ../rpm-find-leaves:10
#, c-format
msgid ""
"usage: %s [options]\n"
"where [options] are from\n"
msgstr ""

#: ../rpm-find-leaves:12
#, fuzzy, c-format
msgid "   -h|--help      - print this help message.\n"
msgstr "  --help         - Åã¥Ü¦¹»¡©ú°T®§.\n"

#: ../rpm-find-leaves:13
#, fuzzy, c-format
msgid "   -g [group]     - restrict results to given group.\n"
msgstr "  --group        - Åã¥Ü¼ÐÅÒ¸s²Õ: ¸s²Õ.\n"

#: ../rpm-find-leaves:14
#, fuzzy, c-format
msgid "                    defaults is %s.\n"
msgstr "  -l             - Åã¥Ü®M¥óÀÉ®×.\n"

#: ../urpm.pm:109
#, c-format
msgid "Unknown webfetch `%s' !!!\n"
msgstr "¥¼ª¾ªº webfetch `%s'!!!\n"

#: ../urpm.pm:129
#, c-format
msgid "unknown protocol defined for %s"
msgstr "¥¼ª¾ªº³q°T¨ó©w¶µ¥Ø©w¸q©ó %s"

#: ../urpm.pm:151
#, c-format
msgid "no webfetch found, supported webfetch are: %s\n"
msgstr ""

#: ../urpm.pm:167
#, c-format
msgid "unable to handle protocol: %s"
msgstr "µLªk³B²z³q°T¨ó©w: %s"

#: ../urpm.pm:188
#, c-format
msgid "copy failed: %s"
msgstr "½Æ»s¥¢±Ñ: %s"

#: ../urpm.pm:193
#, c-format
msgid "wget is missing\n"
msgstr "wget ¿ò¥¢\n"

#: ../urpm.pm:239
#, c-format
msgid "wget failed: exited with %d or signal %d\n"
msgstr "wget ¥¢±Ñ: Â÷¶}©ó %d ©Î«H¸¹ %d\n"

#: ../urpm.pm:242
#, c-format
msgid "curl is missing\n"
msgstr "curl ¿ò¥¢\n"

#: ../urpm.pm:341
#, c-format
msgid "curl failed: exited with %d or signal %d\n"
msgstr "curl ¥¢±Ñ: Â÷¶}©ó %d ©Î«H¸¹ %d\n"

#: ../urpm.pm:347 ../urpm.pm:394
#, c-format
msgid "rsync is missing\n"
msgstr "rsync ¿ò¥¢\n"

#: ../urpm.pm:391 ../urpm.pm:438
#, c-format
msgid "rsync failed: exited with %d or signal %d\n"
msgstr "rsync ¥¢±Ñ: Â÷¶}©ó %d ©Î«H¸¹ %d\n"

#: ../urpm.pm:395
#, c-format
msgid "ssh is missing\n"
msgstr "ssh ¿ò¥¢\n"

#: ../urpm.pm:448 ../urpmi:657
#, c-format
msgid "        %s%% of %s completed, ETA = %s, speed = %s"
msgstr "        %s%% of %s §¹¦¨, ETA = %s, ³t«× = %s"

#: ../urpm.pm:450 ../urpmi:660
#, c-format
msgid "        %s%% completed, speed = %s"
msgstr "        %s%% §¹¦¨, ³t«× = %s"

#: ../urpm.pm:457 ../urpm.pm:1055 ../urpm.pm:1714 ../urpm.pm:1723
#: ../urpm.pm:2326 ../urpm.pm:3006 ../urpmi:668 ../urpmi.addmedia:161
#, c-format
msgid "...retrieving failed: %s"
msgstr "...Â^¨ú¥¢±Ñ: %s"

#: ../urpm.pm:500 ../urpm.pm:513 ../urpm.pm:526
#, c-format
msgid "syntax error in config file at line %s"
msgstr "»yªk¿ù»~©ó³]©wÀɤºªº²Ä %s ¦æ"

#: ../urpm.pm:537
#, c-format
msgid "medium \"%s\" trying to use an already used hdlist, medium ignored"
msgstr "´CÅé \"%s\" ¥¿¦b¹Á¸Õ¨Ï¥Î¤@­Ó¤w¸g³Q¨Ï¥Îªº hdlist, ©¿²¤´CÅé"

#: ../urpm.pm:543
#, c-format
msgid "medium \"%s\" trying to use an already used list, medium ignored"
msgstr "´CÅé \"%s\" ¥¿¦b¹Á¸Õ¨Ï¥Î¤@­Ó¤w¸g³Q¨Ï¥Îªº²M³æ, ©¿²¤´CÅé"

#: ../urpm.pm:559
#, c-format
msgid ""
"unable to take care of medium \"%s\" as list file is already used by another "
"medium"
msgstr "µLªk³B²z´CÅé \"%s\" ¦]¬°¥t¤@­Ó´CÅ饿¦b¨Ï¥Î²M³æÀÉ"

#: ../urpm.pm:565
#, c-format
msgid "unable to use name \"%s\" for unnamed medium because it is already used"
msgstr "µLªk¨Ï¥Î¦WºÙ \"%s\" µ¹¥¼©R¦Wªº´CÅé¦]¬°¥¦¤w¸g³Q¨Ï¥Î¤F"

#: ../urpm.pm:572
#, c-format
msgid "unable to take medium \"%s\" into account as no list file [%s] exists"
msgstr "¤£·|¦Ò¼{¨Ï¥Î´CÅé \"%s\" ¦]¬°µL²M³æÀÉ®× [%s] ¦s¦b"

#: ../urpm.pm:576
#, c-format
msgid "unable to determine medium of this hdlist file [%s]"
msgstr "µLªk¨M©w³o­Ó hdlist ÀÉ®× [%s] ªº´CÅé"

#: ../urpm.pm:585
#, c-format
msgid "unable to access hdlist file of \"%s\", medium ignored"
msgstr "µLªk¦s¨ú \"%s\" hdlist ÀÉ®×, ©¿²¤³o­Ó´CÅé"

#: ../urpm.pm:587 ../urpm.pm:2695
#, c-format
msgid "unable to access list file of \"%s\", medium ignored"
msgstr "µLªk¦s¨ú \"%s\" ªº²M³æÀÉ, ©¿²¤³o­Ó´CÅé"

#: ../urpm.pm:611
#, c-format
msgid "trying to bypass existing medium \"%s\", avoiding"
msgstr "¥¿¦b¹Á¸ÕÁ׶}²{¦sªº´CÅé  \"%s\" , ¥¿¦bÁקK"

#: ../urpm.pm:619
#, c-format
msgid ""
"virtual medium \"%s\" should not have defined hdlist or list file, medium "
"ignored"
msgstr "µêÀÀ´CÅé \"%s\" ¤£À³¸Ó¦³©w¸q hdlist ©Î²M³æÀÉ®×, ©¿²¤³o­Ó´CÅé"

#: ../urpm.pm:624
#, c-format
msgid "virtual medium \"%s\" should have a clear url, medium ignored"
msgstr "µêÀÀ´CÅé \"%s\" À³¸Ó¦³¤@­Ó²M·¡ªº url, ©¿²¤³o­Ó´CÅé"

#: ../urpm.pm:633
#, c-format
msgid "unable to find hdlist file for \"%s\", medium ignored"
msgstr "µLªk§ä¨ì \"%s\" hdlist ÀÉ®×, ©¿²¤³o­Ó´CÅé"

#: ../urpm.pm:640
#, c-format
msgid "unable to find list file for \"%s\", medium ignored"
msgstr "µLªk§ä¨ì \"%s\" ²M³æÀÉ®×, ©¿²¤³o­Ó´CÅé"

#: ../urpm.pm:663
#, c-format
msgid "incoherent list file for \"%s\", medium ignored"
msgstr "«e«á¤£¤@­Pªº \"%s\" ªº²M³æÀÉ®×, ©¿²¤³o­Ó´CÅé"

#: ../urpm.pm:671
#, c-format
msgid "unable to inspect list file for \"%s\", medium ignored"
msgstr "µLªkÀˬd \"%s\" ªº²M³æÀÉ®×, ©¿²¤³o­Ó´CÅé"

#: ../urpm.pm:704
#, c-format
msgid "too many mount points for removable medium \"%s\""
msgstr "¥i²¾°Ê¦¡´CÅé \"%s\" ªº±¾¸üÂI¹L¦h"

#: ../urpm.pm:705
#, c-format
msgid "taking removable device as \"%s\""
msgstr "±N¥i²¾°Ê¦¡¸Ë¸m·í¦¨ \"%s\""

#: ../urpm.pm:709
#, c-format
msgid "using different removable device [%s] for \"%s\""
msgstr "¨Ï¥Î¤£¦Pªº¥i²¾°Ê¦¡¸Ë¸m [%s] ©ó \"%s\" "

#: ../urpm.pm:714 ../urpm.pm:717
#, c-format
msgid "unable to retrieve pathname for removable medium \"%s\""
msgstr "µLªkÂ^¨ú²¾°Ê¦¡´CÅé \"%s\" ªº¸ô®|¦WºÙ"

#: ../urpm.pm:730
#, c-format
msgid "unable to write config file [%s]"
msgstr "µLªk¼g¤J³]©wÀÉ [%s]"

#: ../urpm.pm:752
#, c-format
msgid "write config file [%s]"
msgstr "¼g¤J³]©wÀÉ [%s]"

#: ../urpm.pm:764
#, c-format
msgid "Can't use parallel mode with use-distrib mode"
msgstr ""

#: ../urpm.pm:774
#, c-format
msgid "unable to parse \"%s\" in file [%s]"
msgstr "µLªk¸ÑªR %s Àɮפºªº %s"

#: ../urpm.pm:785
#, c-format
msgid "examining parallel handler in file [%s]"
msgstr "ÀËÅç [%s] Àɮפºªº¥­¦æ³B²z¾¹"

#: ../urpm.pm:795
#, c-format
msgid "found parallel handler for nodes: %s"
msgstr "¦b %s µo²{¸`ÂIªº³B²z¾¹"

#: ../urpm.pm:799
#, c-format
msgid "using associated media for parallel mode: %s"
msgstr "¨Ï¥Î¬ÛÃö´CÅé©ó¥­¦æ¼Ò¦¡: %s"

#: ../urpm.pm:803
#, c-format
msgid "unable to use parallel option \"%s\""
msgstr "µLªk¨Ï¥Î¥­¦æ¿ï¶µ \"%s\""

#: ../urpm.pm:814
#, c-format
msgid ""
"--synthesis cannot be used with --media, --excludemedia, --sortmedia, --"
"update or --parallel"
msgstr ""
"--synthesis ¤£¯à°÷»P --media, --excludemedia, --sortmedia, --update »P --"
"parallel ¨Ï¥Î"

#: ../urpm.pm:865 ../urpm.pm:887 ../urpm.pm:1239 ../urpm.pm:1250
#: ../urpm.pm:1311 ../urpm.pm:1328 ../urpm.pm:1411 ../urpm.pm:1468
#: ../urpm.pm:1640 ../urpm.pm:1740 ../urpm.pm:1838 ../urpm.pm:1844
#: ../urpm.pm:1943 ../urpm.pm:2022 ../urpm.pm:2026
#, c-format
msgid "examining synthesis file [%s]"
msgstr "ÀËÅçºî¦XÀÉ®× [%s]"

#: ../urpm.pm:869 ../urpm.pm:882 ../urpm.pm:891 ../urpm.pm:1242
#: ../urpm.pm:1253 ../urpm.pm:1317 ../urpm.pm:1323 ../urpm.pm:1416
#: ../urpm.pm:1472 ../urpm.pm:1644 ../urpm.pm:1744 ../urpm.pm:1832
#: ../urpm.pm:1850 ../urpm.pm:2032
#, c-format
msgid "examining hdlist file [%s]"
msgstr "ÀËÅç hdlist ÀÉ®× [%s]"

#: ../urpm.pm:877 ../urpm.pm:1246
#, c-format
msgid "virtual medium \"%s\" is not local, medium ignored"
msgstr "µêÀÀ´CÅé \"%s\" ¨Ã«D¥»¦aºÝ, ©¿²¤³o­Ó´CÅé"

#: ../urpm.pm:900 ../urpm.pm:1260 ../urpm.pm:1336 ../urpm.pm:1420
#: ../urpm.pm:1748
#, c-format
msgid "problem reading hdlist or synthesis file of medium \"%s\""
msgstr "Ū¨ú \"%s\" ´CÅ骺 hdlist ©Îºî¦XÀÉ®×µo¥Í°ÝÃD"

#: ../urpm.pm:906 ../urpm.pm:1982
#, c-format
msgid "performing second pass to compute dependencies\n"
msgstr "¥¿¦b°õ¦æ²Ä¤G³¡¬Û¨Ì©Êªº­pºâ\n"

#: ../urpm.pm:918
#, c-format
msgid "skipping package %s"
msgstr "¥¿¦b²¤¹L®M¥ó %s"

#: ../urpm.pm:927
#, c-format
msgid "would install instead of upgrade package %s"
msgstr "·|­n¦w¸Ë¦Ó«D¤É¯Å®M¥ó %s"

#: ../urpm.pm:938 ../urpm.pm:2495 ../urpm.pm:2556 ../urpm.pm:3128
#: ../urpm.pm:3226
#, c-format
msgid "unable to open rpmdb"
msgstr "µLªk¶}±Ò rpmdb"

#: ../urpm.pm:977
#, c-format
msgid "medium \"%s\" already exists"
msgstr "´CÅé \"%s\" ¤w¸g¦s¦b"

#: ../urpm.pm:984
#, c-format
msgid "virtual medium need to be local"
msgstr ""

#: ../urpm.pm:1016
#, c-format
msgid "added medium %s"
msgstr "¥[¤Jªº´CÅé %s"

#: ../urpm.pm:1032
#, c-format
msgid "unable to access first installation medium"
msgstr "µLªk¦s¨ú²Ä¤@­Ó¦w¸Ë´CÅé"

#: ../urpm.pm:1036
#, c-format
msgid "copying hdlists file..."
msgstr "½Æ»s hdlist ÀÉ®×..."

#: ../urpm.pm:1038 ../urpm.pm:1351 ../urpm.pm:1440
#, c-format
msgid "...copying failed"
msgstr "...½Æ»s¥¢±Ñ"

#: ../urpm.pm:1038 ../urpm.pm:1351 ../urpm.pm:1444
#, c-format
msgid "...copying done"
msgstr "...½Æ»s§¹¦¨"

#: ../urpm.pm:1040 ../urpm.pm:1059 ../urpm.pm:1087
#, c-format
msgid ""
"unable to access first installation medium (no Mandrake/base/hdlists file "
"found)"
msgstr "µLªk¦s¨ú²Ä¤@­Ó¦w¸Ë´CÅé (§ä¤£¨ì Mandrake/base/hdlists ÀÉ®×)"

#: ../urpm.pm:1046
#, c-format
msgid "retrieving hdlists file..."
msgstr "Â^¨ú hdlists ÀÉ®×..."

#: ../urpm.pm:1053 ../urpm.pm:1730 ../urpm.pm:2323 ../urpm.pm:3004
#: ../urpmi.addmedia:159
#, c-format
msgid "...retrieving done"
msgstr "...Â^¨ú§¹¦¨"

#: ../urpm.pm:1075
#, c-format
msgid "invalid hdlist description \"%s\" in hdlists file"
msgstr "hdlists Àɮפ¤¦³µL®Äªº hdlist ±Ô­z \"%s\""

#: ../urpm.pm:1120
#, c-format
msgid "trying to select nonexistent medium \"%s\""
msgstr "¥¿¦b¹Á¸Õ¿ï¾Ü¤£¦s¦bªº´CÅé \"%s\""

#: ../urpm.pm:1122
#, c-format
msgid "selecting multiple media: %s"
msgstr "¥¿¦b¿ï¾Ü¦h­Ó´CÅé: \"%s\""

#: ../urpm.pm:1122
#, c-format
msgid "\"%s\""
msgstr "\"%s\""

#: ../urpm.pm:1138
#, c-format
msgid "removing medium \"%s\""
msgstr "²¾°£´CÅé \"%s\""

#: ../urpm.pm:1287
#, c-format
msgid ""
"unable to access medium \"%s\",\n"
"this could happen if you mounted manually the directory when creating the "
"medium."
msgstr ""

#: ../urpm.pm:1340
#, c-format
msgid ""
"virtual medium \"%s\" should have valid source hdlist or synthesis, medium "
"ignored"
msgstr "µêÀÀ´CÅé \"%s\" À³¸Ó¦³¦³®Äªº¨Ó·½ hdlist ©Îºî¦X, ©¿²¤³o­Ó´CÅé"

#: ../urpm.pm:1348
#, c-format
msgid "copying description file of \"%s\"..."
msgstr "½Æ»s \"%s\" ªº±Ô­zÀÉ®×..."

#: ../urpm.pm:1371 ../urpm.pm:1600
#, c-format
msgid "computing md5sum of existing source hdlist (or synthesis)"
msgstr "­pºâ¨Ó·½ hdlist ªº md5sum (©Îºî¦X)"

#: ../urpm.pm:1382 ../urpm.pm:1611
#, c-format
msgid "examining MD5SUM file"
msgstr "¥¿¦bÀËÅç MD5SUM ÀÉ®×"

#: ../urpm.pm:1436
#, c-format
msgid "copying source hdlist (or synthesis) of \"%s\"..."
msgstr "¥¿¦b½Æ»s \"%s\" ªº¨Ó·½ hdlist (©Îºî¦X)..."

#: ../urpm.pm:1449
#, fuzzy, c-format
msgid "copy of [%s] failed (file is suspiciously small)"
msgstr "¤U¸ü [%s] ¥¢±Ñ (¬O§_¨S¦³¦w¸Ë wget µ{¦¡¡H)"

#: ../urpm.pm:1453
#, c-format
msgid "computing md5sum of copied source hdlist (or synthesis)"
msgstr "¥¿¦b­pºâ³Q½Æ»sªº¨Ó·½ hdlist (©Îºî¦X) ªº md5sum"

#: ../urpm.pm:1455
#, fuzzy, c-format
msgid "copy of [%s] failed (md5sum mismatch)"
msgstr "½Æ»s [%s] ¥¢±Ñ"

#: ../urpm.pm:1476 ../urpm.pm:1648 ../urpm.pm:1946
#, c-format
msgid "problem reading synthesis file of medium \"%s\""
msgstr "Ū¨ú \"%s\" ´CÅ骺ºî¦XÀÉ®×µo¥Í°ÝÃD"

#: ../urpm.pm:1515
#, c-format
msgid "reading rpm files from [%s]"
msgstr "¥Ñ [%s] Ū¨ú rpm ÀÉ®×"

#: ../urpm.pm:1534
#, c-format
msgid "unable to read rpm files from [%s]: %s"
msgstr "µLªk¥Ñ [%s] Ū¨ú rpm ®M¥ó: %s"

#: ../urpm.pm:1539
#, c-format
msgid "no rpm files found from [%s]"
msgstr "¦b [%s] ¤º§ä¤£¨ì rpm ÀÉ®×"

#: ../urpm.pm:1666
#, c-format
msgid "retrieving source hdlist (or synthesis) of \"%s\"..."
msgstr "¥¿¦bÂ^¨ú \"%s\" ªº¨Ó·½ hdlist (©Îºî¦X)..."

#: ../urpm.pm:1685
#, c-format
msgid "found probed hdlist (or synthesis) as %s"
msgstr "µo²{±´¬d¨ìªº hdlist (©Îºî¦X) ¬° %s"

#: ../urpm.pm:1721
#, c-format
msgid "computing md5sum of retrieved source hdlist (or synthesis)"
msgstr "¥¿¦b­pºâ¨Ó·½ hdlist (©Îºî¦X) ªº md5sum"

#: ../urpm.pm:1723
#, c-format
msgid "md5sum mismatch"
msgstr "md5sum ¤£¦X"

#: ../urpm.pm:1804
#, c-format
msgid "retrieval of source hdlist (or synthesis) failed"
msgstr "Â^¨ú¨Ó·½ hdlist (©Îºî¦X) ¥¢±Ñ"

#: ../urpm.pm:1811
#, c-format
msgid "no hdlist file found for medium \"%s\""
msgstr "µL´CÅé \"%s\" ªº hdlist Àɮ׳Q§ä¨ì"

#: ../urpm.pm:1822 ../urpm.pm:1874
#, c-format
msgid "file [%s] already used in the same medium \"%s\""
msgstr "ÀÉ®× [%s] ¤w¸g³Q¬Û¦Pªº \"%s\" ´CÅé©Ò¨Ï¥Î¤F"

#: ../urpm.pm:1860
#, c-format
msgid "unable to parse hdlist file of \"%s\""
msgstr "µLªk±q»yªk¤W¤ÀªR \"%s\" ªº hdlist ÀÉ®×"

#: ../urpm.pm:1898
#, c-format
msgid "unable to write list file of \"%s\""
msgstr "µLªk¼g¤J \"%s\" ªº²M³æÀÉ®×"

#: ../urpm.pm:1905
#, c-format
msgid "writing list file for medium \"%s\""
msgstr "¥¿¦b¼g¤J \"%s\" ªº²M³æÀÉ®×"

#: ../urpm.pm:1907
#, c-format
msgid "nothing written in list file for \"%s\""
msgstr "¨S¦³¸ê®Æ¼g¤J \"%s\" ªº²M³æÀÉ®×"

#: ../urpm.pm:1920
#, c-format
msgid "examining pubkey file of \"%s\"..."
msgstr "ÀËÅç \"%s\" ªº pubkey ÀÉ®×..."

#: ../urpm.pm:1927
#, c-format
msgid "...imported key %s from pubkey file of \"%s\""
msgstr "...¥Ñ \"%s\" ªº pubkey Àɮ׶פJ key %s"

#: ../urpm.pm:1930
#, c-format
msgid "unable to import pubkey file of \"%s\""
msgstr "µLªk¶×¤J \"%s\" ªº pubkey ÀÉ®×"

#: ../urpm.pm:1996
#, c-format
msgid "reading headers from medium \"%s\""
msgstr "¥¿¦bŪ¨ú´CÅé \"%s\" ªº¼ÐÀY"

#: ../urpm.pm:2001
#, c-format
msgid "building hdlist [%s]"
msgstr "¥¿¦b«Ø¥ß hdlist [%s]"

#: ../urpm.pm:2013 ../urpm.pm:2042 ../urpmi:417
#, c-format
msgid "built hdlist synthesis file for medium \"%s\""
msgstr "¬°´CÅé \"%s\" «Ø¥ßºî¦XÀÉ®×"

#: ../urpm.pm:2062
#, c-format
msgid "found %d headers in cache"
msgstr "¦b cache §ä¨ì %d ­Ó¼ÐÀY"

#: ../urpm.pm:2066
#, c-format
msgid "removing %d obsolete headers in cache"
msgstr "¥¿¦b²¾°£ %d ­Ó¦b cache ¤º¼o±óªº¼ÐÀY"

#: ../urpm.pm:2266
#, c-format
msgid "mounting %s"
msgstr "¥¿¦b±¾¸ü %s"

#: ../urpm.pm:2279
#, c-format
msgid "unmounting %s"
msgstr "¥¿¦b¨ø¸ü %s"

#: ../urpm.pm:2301
#, c-format
msgid "relocated %s entries in depslist"
msgstr "­«·s¦w¸m %s ¶µ¥Ø©ó depslist"

#: ../urpm.pm:2302
#, c-format
msgid "no entries relocated in depslist"
msgstr "µL¶µ¥Ø³Q­«·s¦w¸m©ó depslist"

#: ../urpm.pm:2315
#, c-format
msgid "invalid rpm file name [%s]"
msgstr "µL®Äªº rpm ÀɮצWºÙ [%s]"

#: ../urpm.pm:2321
#, c-format
msgid "retrieving rpm file [%s] ..."
msgstr "¥¿¦bÂ^¨ú rpms ÀÉ®× [%s] ..."

#: ../urpm.pm:2328 ../urpm.pm:3170
#, c-format
msgid "unable to access rpm file [%s]"
msgstr "µLªk¦s¨ú rpm ÀÉ®× [%s]"

#: ../urpm.pm:2333
#, c-format
msgid "unable to register rpm file"
msgstr "µLªkµù¥U rpm ÀÉ®×"

#: ../urpm.pm:2336
#, c-format
msgid "error registering local packages"
msgstr "µù¥U¥»¦aºÝ®M¥ó¿ù»~"

#: ../urpm.pm:2437
#, c-format
msgid "no package named %s"
msgstr "¨S¦³®M¥ó©R¦W¬° %s"

#: ../urpm.pm:2440 ../urpme:96
#, c-format
msgid "The following packages contain %s: %s"
msgstr "¥H¤U®M¥ó¥]§t %s: %s"

#: ../urpm.pm:2632 ../urpm.pm:2676 ../urpm.pm:2702
#, c-format
msgid "there are multiple packages with the same rpm filename \"%s\""
msgstr "¦³¦h­Ó®M¥ó¦³¬Û¦P rpm ÀɮצWºÙ \"%s\""

#: ../urpm.pm:2687
#, c-format
msgid "unable to correctly parse [%s] on value \"%s\""
msgstr "µLªk¥¿½T±q»yªk¤W¤ÀªR [%s] ©ó¼Æ­È \"%s\""

#: ../urpm.pm:2714
#, c-format
msgid ""
"medium \"%s\" uses an invalid list file:\n"
"  mirror is probably not up-to-date, trying to use alternate method"
msgstr ""

#: ../urpm.pm:2718
#, c-format
msgid "medium \"%s\" does not define any location for rpm files"
msgstr ""

#: ../urpm.pm:2730
#, c-format
msgid "package %s is not found."
msgstr "§ä¤£¨ì®M¥ó %s."

#: ../urpm.pm:2770 ../urpm.pm:2785 ../urpm.pm:2809 ../urpm.pm:2824
#, c-format
msgid "urpmi database locked"
msgstr "urpmi ¸ê®Æ®wÂê¦í¤F"

#: ../urpm.pm:2876 ../urpm.pm:2879 ../urpm.pm:2909
#, c-format
msgid "medium \"%s\" is not selected"
msgstr "¥¼¿ï¾Ü´CÅé \"%s\" "

#: ../urpm.pm:2905
#, c-format
msgid "unable to read rpm file [%s] from medium \"%s\""
msgstr "µLªk¥Ñ´CÅé \"%s\" Ū¨ú [%s] rpm ÀÉ®×"

#: ../urpm.pm:2913
#, c-format
msgid "incoherent medium \"%s\" marked removable but not really"
msgstr "«e«á¤£¤@­Pªº´CÅé \"%s\" ¼Ð¥Ü¬°¥i²¾°£¦ý¬O¨Æ¹ê¤W«o¤£¬O³o»ò¤@¦^¨Æ"

#: ../urpm.pm:2926
#, c-format
msgid "unable to access medium \"%s\""
msgstr "µLªk¦s¨ú´CÅé \"%s\" "

#: ../urpm.pm:2987
#, c-format
msgid "malformed input: [%s]"
msgstr "¤£¦X®æ¦¡ªº¿é¤J:[%s]"

#: ../urpm.pm:2994
#, c-format
msgid "retrieving rpm files from medium \"%s\"..."
msgstr "¥¿¦b¥Ñ´CÅé \"%s\" Â^¨ú rpm ÀÉ®×..."

#: ../urpm.pm:3071 ../urpmi:746
#, c-format
msgid "Preparing..."
msgstr "·Ç³Æ¤¤..."

#: ../urpm.pm:3102
#, c-format
msgid "using process %d for executing transaction"
msgstr ""

#: ../urpm.pm:3132
#, c-format
msgid ""
"created transaction for installing on %s (remove=%d, install=%d, upgrade=%d)"
msgstr ""

#: ../urpm.pm:3135
#, c-format
msgid "unable to create transaction"
msgstr "µLªk«Ø¥ß³B²z"

#: ../urpm.pm:3143
#, c-format
msgid "removing package %s"
msgstr "¥¿¦b²¾°£®M¥ó %s"

#: ../urpm.pm:3145
#, c-format
msgid "unable to remove package %s"
msgstr "µLªk²¾°£®M¥ó %s"

#: ../urpm.pm:3155
#, c-format
msgid "adding package %s (id=%d, eid=%d, update=%d, file=%s)"
msgstr ""

#: ../urpm.pm:3158
#, c-format
msgid "unable to install package %s"
msgstr "µLªk¦w¸Ë®M¥ó %s"

#: ../urpm.pm:3357 ../urpm.pm:3388
#, c-format
msgid "due to missing %s"
msgstr "¥Ñ©ó %s ¿ò¥¢"

#: ../urpm.pm:3358 ../urpm.pm:3386
#, c-format
msgid "due to unsatisfied %s"
msgstr "¥Ñ©ó %s ¥¼³Qº¡¨¬"

#: ../urpm.pm:3359
#, c-format
msgid "trying to promote %s"
msgstr "¥¿¦b¹Á¸Õ«P¶i %s"

#: ../urpm.pm:3360
#, c-format
msgid "in order to keep %s"
msgstr "¬°¤F­n«O¯d %s"

#: ../urpm.pm:3381
#, c-format
msgid "in order to install %s"
msgstr "¬°¤F­n¦w¸Ë %s"

#: ../urpm.pm:3393
#, c-format
msgid "due to conflicts with %s"
msgstr "¥Ñ©ó»P %s ªº½Ä¬ð"

#: ../urpm.pm:3395
#, c-format
msgid "unrequested"
msgstr ""

#: ../urpm.pm:3411
#, c-format
msgid "Invalid signature (%s)"
msgstr ""

#: ../urpm.pm:3438
#, c-format
msgid "Invalid Key ID (%s)"
msgstr ""

#: ../urpm.pm:3440
#, c-format
msgid "Missing signature (%s)"
msgstr ""

#: ../urpme:35
#, c-format
msgid ""
"urpme version %s\n"
"Copyright (C) 1999, 2000, 2001, 2002 MandrakeSoft.\n"
"This is free software and may be redistributed under the terms of the GNU "
"GPL.\n"
"\n"
"usage:\n"
msgstr ""
"urpmi ª©¥» %s\n"
"Copyright (C) 1999, 2000, 2001, 2002 MandrakeSoft.\n"
"³o¬O¦Û¥Ñ³nÅé¥B¥i¥H¿í·Ó GNU GPL ªº±ø´Úµo§G.\n"
"\n"
"¥Îªk:\n"

#: ../urpme:40 ../urpmf:31 ../urpmi:78 ../urpmi.addmedia:53
#: ../urpmi.removemedia:36 ../urpmi.update:59 ../urpmq:40
#, c-format
msgid "  --help         - print this help message.\n"
msgstr "  --help         - Åã¥Ü¦¹»¡©ú°T®§.\n"

#: ../urpme:41 ../urpmi:84
#, c-format
msgid "  --auto         - automatically select a package in choices.\n"
msgstr "  --auto         - ¦Û°Ê¿ï¾Ü¤@­Ó¤Wµ¥®M¥ó.\n"

#: ../urpme:42 ../urpmi:125
#, c-format
msgid ""
"  --test         - verify if the installation can be achieved correctly.\n"
msgstr "  --test         - ½T»{¦w¸Ë¬O§_¯à°÷¥¿½T¹F¦¨.\n"

#: ../urpme:43 ../urpmi:98 ../urpmq:60
#, c-format
msgid ""
"  --force        - force invocation even if some packages do not exist.\n"
msgstr "  --force        - ±j¨î¹ê¬I§Y¨Ï¬Y¨Ç®M¥ó¤£¦s¦b.\n"

#: ../urpme:44 ../urpmi:103 ../urpmq:61
#, c-format
msgid "  --parallel     - distributed urpmi across machines of alias.\n"
msgstr ""

#: ../urpme:45 ../urpmi:104
#, c-format
msgid "  --root         - use another root for rpm installation.\n"
msgstr "  --root         - ¨Ï¥Î¥t¤@­Ó rpm ¦w¸Ëªº®Ú.\n"

#: ../urpme:46
#, c-format
msgid ""
"  --use-distrib  - configure urpmi on the fly from a distrib tree, useful\n"
"                   to (un)install a chroot with --root option.\n"
msgstr ""

#: ../urpme:48 ../urpmi:134 ../urpmq:73
#, c-format
msgid "  -v             - verbose mode.\n"
msgstr "  -v             - §¹¾ã¸ê°T¼Ò¦¡.\n"

#: ../urpme:49
#, c-format
msgid "  -a             - select all packages matching expression.\n"
msgstr "  -a             - ¿ï¾Ü©Ò¦³²Å¦X´y­zªº®M¥ó.\n"

#: ../urpme:68
#, c-format
msgid "urpme: unknown option \"-%s\", check usage with --help\n"
msgstr "urpmi: ¥¼ª¾ªº¿ï¶µ \"-%s\", ¥H --help Àˬd¨Ï¥Î¤èªk\n"

#: ../urpme:91
#, c-format
msgid "unknown packages"
msgstr "¥¼ª¾ªº®M¥ó"

#: ../urpme:91
#, c-format
msgid "unknown package"
msgstr "¥¼ª¾ªº®M¥ó"

#: ../urpme:101
#, c-format
msgid "removing package %s will break your system"
msgstr "²¾°£®M¥ó %s ±N¯}Ãa±zªº¨t²Î"

#: ../urpme:103
#, c-format
msgid "Nothing to remove"
msgstr "¨S¦³ªF¦è¥i²¾°£"

#: ../urpme:107
#, c-format
msgid "Checking to remove the following packages"
msgstr "¥¿¦bÀˬd¥H²¾°£¥H¤U®M¥ó:"

#: ../urpme:114
#, c-format
msgid "To satisfy dependencies, the following packages will be removed (%d MB)"
msgstr "¬°¤Fº¡¨¬¬Û¨Ì©Ê, ¤U¦C®M¥ó±N·|³Q²¾°£ (%d MB)"

#: ../urpme:116 ../urpmi:533 ../urpmi:692
#, c-format
msgid " (y/N) "
msgstr " (y/N) (¬O/§_) "

#: ../urpme:119 ../urpmi:735
#, c-format
msgid "removing %s"
msgstr "¥¿¦b²¾°£ %s"

#: ../urpme:123
#, c-format
msgid "Removing failed"
msgstr "¥¿¦b²¾°£¥¢±Ñ"

#: ../urpme:152 ../urpmi:930
#, c-format
msgid "Sorry, bad choice, try again\n"
msgstr "¹ï¤£°_, ¿ù»~¿ï¾Ü, ¦A¸Õ¤@¦¸\n"

#: ../urpmf:26
#, c-format
msgid ""
"urpmf version %s\n"
"Copyright (C) 2002 MandrakeSoft.\n"
"This is free software and may be redistributed under the terms of the GNU "
"GPL.\n"
"\n"
"usage:\n"
msgstr ""
"urpmf ª©¥» %s\n"
"Copyright (C) 2002 MandrakeSoft.\n"
"³o¬O¦Û¥Ñ³nÅé¥B¥i¥H¿í·Ó GNU GPL ªº±ø´Úµo§G.\n"
"\n"
"¥Îªk:\n"

#: ../urpmf:32 ../urpmi:79 ../urpmq:41
#, c-format
msgid "  --update       - use only update media.\n"
msgstr "  --update       - ¥u¨Ï¥Î§ó·sªº´CÅé.\n"

#: ../urpmf:33 ../urpmi:80 ../urpmq:42
#, c-format
msgid "  --media        - use only the given media, separated by comma.\n"
msgstr "  --media        - ¥u¨Ï¥Îµ¹©wªº´CÅé, ¥H³r¸¹¤À¶}.\n"

#: ../urpmf:34 ../urpmi:81 ../urpmq:43
#, c-format
msgid "  --excludemedia - do not use the given media, separated by comma.\n"
msgstr "  --excludemedia - ¤£¨Ï¥Îµ¹©wªº´CÅé, ¥H³r¸¹¤À¶}.\n"

#: ../urpmf:35 ../urpmi:82 ../urpmq:44
#, c-format
msgid ""
"  --sortmedia    - sort media according to substrings separated by comma.\n"
msgstr "  --sortmedia    - ¨Ì¾Ú¤l¦r¦ê±Æ§Ç´CÅé, ¥H³r¸¹¤À¶}.\n"

#: ../urpmf:36 ../urpmq:45
#, c-format
msgid "  --synthesis    - use the synthesis given instead of urpmi db.\n"
msgstr "  --synthesis    - ¨Ï¥Îµ¹©wªººî¦XÀÉ®×, ¦Ó¤£¬O urpmi db.\n"

#: ../urpmf:37
#, c-format
msgid "  --verbose      - verbose mode.\n"
msgstr "  --verbose      - §¹¾ã¸ê°T¼Ò¦¡.\n"

#: ../urpmf:38
#, c-format
msgid ""
"  --quiet        - do not print tag name (default if no tag given on "
"command\n"
"                   line, incompatible with interactive mode).\n"
msgstr ""
"  --quiet        - ¤£Åã¥Ü¼ÐÅÒ¦WºÙ (¹w³]­YµL¼ÐÅÒµ¹©w©ó ©R\n"
"                   ¥O¦C, ¤£¬Û®e©ó¤¬°Ê¦¡¼Ò¦¡).\n"

#: ../urpmf:40
#, c-format
msgid "  --uniq         - do not print identical lines.\n"
msgstr "  --uniq          - ¤£Åã¥Ü¦P¤@ªº¦æ.\n"

#: ../urpmf:41
#, c-format
msgid "  --all          - print all tags.\n"
msgstr "  --all          - ¦C¦L¥þ³¡¼ÐÅÒ.\n"

#: ../urpmf:42
#, c-format
msgid "  --group        - print tag group: group.\n"
msgstr "  --group        - Åã¥Ü¼ÐÅÒ¸s²Õ: ¸s²Õ.\n"

#: ../urpmf:43
#, c-format
msgid "  --size         - print tag size: size.\n"
msgstr "  --size          - Åã¥Ü¼ÐÅÒ¤j¤p: ¤j¤p.\n"

#: ../urpmf:44
#, c-format
msgid "  --epoch        - print tag epoch: epoch.\n"
msgstr "  --epoch          - Åã¥Ü¼ÐÅҮɥN: ®É¥N.\n"

#: ../urpmf:45
#, c-format
msgid "  --summary      - print tag summary: summary.\n"
msgstr "  --summary       - ¦C¦L¼ÐÅÒºK­n: ºK­n.\n"

#: ../urpmf:46
#, c-format
msgid "  --description  - print tag description: description.\n"
msgstr "  --description   - Åã¥Ü¼ÐÅÒ´y­z: ´y­z.\n"

#: ../urpmf:47
#, c-format
msgid "  --sourcerpm    - print tag sourcerpm: source rpm.\n"
msgstr "  --sourcerpm    - Åã¥Ü¼ÐÅÒ sourcerpm: source rpm.\n"

#: ../urpmf:48
#, c-format
msgid "  --packager     - print tag packager: packager.\n"
msgstr "  --packager     - Åã¥Ü¼ÐÅÒ¥]¸ËªÌ: ¸ËªÌ.\n"

#: ../urpmf:49
#, c-format
msgid "  --buildhost    - print tag buildhost: build host.\n"
msgstr "  --buildhost    - Åã¥Ü¼ÐÅÒ buildhost: build host.\n"

#: ../urpmf:50
#, c-format
msgid "  --url          - print tag url: url.\n"
msgstr "  --url          - Åã¥Ü¼ÐÅÒ url: url.\n"

#: ../urpmf:51
#, c-format
msgid "  --provides     - print tag provides: all provides.\n"
msgstr "  --provides     - Åã¥Ü¼ÐÅÒ´£¨Ñ: ¥þ³¡´£¨Ñ.\n"

#: ../urpmf:52
#, c-format
msgid "  --requires     - print tag requires: all requires.\n"
msgstr "  --requires     - Åã¥Ü¼ÐÅһݭn: ¥þ³¡»Ý­n.\n"

#: ../urpmf:53
#, c-format
msgid "  --files        - print tag files: all files.\n"
msgstr "  --files        - Åã¥Ü¼ÐÅÒÀÉ®×: ¥þ³¡ÀÉ®×.\n"

#: ../urpmf:54
#, c-format
msgid "  --conflicts    - print tag conflicts: all conflicts.\n"
msgstr "  --conflicts     - Åã¥Ü¼ÐÅҽĬð: ½Ä¬ð.\n"

#: ../urpmf:55
#, c-format
msgid "  --obsoletes    - print tag obsoletes: all obsoletes.\n"
msgstr "  --obsoletes     - Åã¥Ü¼ÐÅÒ¹L®É: ¥þ³¡¹L®É.\n"

#: ../urpmf:56 ../urpmi:118 ../urpmq:70
#, c-format
msgid ""
"  --env          - use specific environment (typically a bug\n"
"                   report).\n"
msgstr "  --env          - ¨Ï¥Î¯S©wÀô¹Ò (¤@¯ë¥Î©ó¯äÂΦ^³ø).\n"

#: ../urpmf:58
#, c-format
msgid "  -i             - ignore case distinctions in every pattern.\n"
msgstr "  -i             - ©ó¨C¤@­Ó¼Ë¦¡¤¤©¿²¤¤j¤p¼g¤À§O.\n"

#: ../urpmf:59 ../urpmq:85
#, c-format
msgid "  -f             - print version, release and arch with name.\n"
msgstr "  -f             - Åã¥Üª©¥», µo¦æ»P arch ¦WºÙ.\n"

#: ../urpmf:60
#, c-format
msgid "  -e             - include perl code directly as perl -e.\n"
msgstr "  -e             - ª½±µ¥]§t perl ½XÃþ¦ü perl -e.\n"

#: ../urpmf:61
#, c-format
msgid ""
"  -a             - binary AND operator, true if both expression are true.\n"
msgstr "  -a             - ¤G¤¸ AND ¹Bºâ¤l, ¯u­È­Y¨âªÌ¬Ò¯u.\n"

#: ../urpmf:62
#, c-format
msgid ""
"  -o             - binary OR operator, true if one expression is true.\n"
msgstr "  -o             - ¤G¤¸ OR ¹Bºâ¤l, ¯u­È­Y¤@ªÌ¬°¯u.\n"

#: ../urpmf:63
#, c-format
msgid "  !              - unary NOT, true if expression is false.\n"
msgstr "  !             - ¤@¤¸ NOT, ¯u­È­Y´y­z¥y¬°°².\n"

#: ../urpmf:64
#, c-format
msgid "  (              - left parenthesis to open group expression.\n"
msgstr "  (              - ¥ª¬A©·¥H¶}±Ò¸s²Õ´y­z¥y.\n"

#: ../urpmf:65
#, c-format
msgid "  )              - right parenthesis to close group expression.\n"