LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 585|回复: 5

為什麼安裝AUR上面的軟體要問密碼?

[复制链接]
发表于 2010-3-24 18:37:34 | 显示全部楼层 |阅读模式
下面的意思不是很理解,好像是說跟權限有關的,可是我就是用root呀!根據提示,要到/var/tmp/aurbuild/build/pdfsam去修復問題,該怎麼做呀?

(aurbuild是我裝aur倉庫的工具,使用yaourt也是一樣的結果,都要問密碼,請教是我系統哪裡錯了。)
  1. [~]# aurbuild -ns --auto -o "-s" pdfsam
  2. ==> Checking Buildtime Dependencies...
  3.    - java-environment: missing [M]
  4.         Not found in database.
  5.    - apache-ant: ok [M]
  6.    - libarchive: ok [M]
  7. ==> Checking Runtime Dependencies...
  8.    - java-runtime: missing [D]
  9.         Not found in database.
  10. ==> Making package: pdfsam 2.1.0e-1 any (三  3月 24 18:10:50 CST 2010)
  11. ==> Checking Runtime Dependencies...
  12. ==> Checking Buildtime Dependencies...
  13. ==> Installing missing dependencies...
  14. We trust you have received the usual lecture from the local System
  15. Administrator. It usually boils down to these three things:
  16.     #1) Respect the privacy of others.
  17.     #2) Think before you type.
  18.     #3) With great power comes great responsibility.
  19. 密碼:
  20. Sorry, try again.
  21. 密碼:
  22. sudo: 1 incorrect password attempt
  23. ==> ERROR: Pacman failed to install missing dependencies.
  24. aurbuild: could not build pdfsam with makepkg.
  25. Build directory retained at /var/tmp/aurbuild/build/pdfsam
  26. You can visit the directory, fix the problem, and run makepkg.
复制代码

下面是/etc/makepkg.conf
  1. #
  2. # /etc/makepkg.conf
  3. #
  4. #########################################################################
  5. # SOURCE ACQUISITION
  6. #########################################################################
  7. #
  8. #-- The download utilities that makepkg should use to acquire sources
  9. #  Format: 'protocol::agent'
  10. DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
  11.           'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
  12.           'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
  13.           'rsync::/usr/bin/rsync -z %u %o'
  14.           'scp::/usr/bin/scp -C %u %o')
  15. # Other common tools:
  16. # /usr/bin/snarf
  17. # /usr/bin/lftpget -c
  18. # /usr/bin/curl
  19. #########################################################################
  20. # ARCHITECTURE, COMPILE FLAGS
  21. #########################################################################
  22. #
  23. CARCH="i686"
  24. CHOST="i686-pc-linux-gnu"
  25. #-- Exclusive: will only run on -march=i686
  26. # -march (or -mcpu) builds exclusively for an architecture
  27. # -mtune optimizes for an architecture, but builds for whole processor family
  28. #預設值,如果打出來的包要分享給別人,要用這個,又或者直接分享PKGBUILD檔案
  29. #CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
  30. #CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
  31. #Athlon XP/Thunderbird XP/Duron Palomino/Duron 1800/Sempron 2400+系列
  32. CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
  33. CXXFLAGS="${CFLAGS}"
  34. #-- Make Flags: change this for DistCC/SMP systems
  35. #MAKEFLAGS="-j2"
  36. #########################################################################
  37. # BUILD ENVIRONMENT
  38. #########################################################################
  39. #
  40. # Defaults: BUILDENV=(fakeroot !distcc color !ccache !xdelta)
  41. #  A negated environment option will do the opposite of the comments below.
  42. #
  43. #-- fakeroot: Allow building packages as a non-root user
  44. #-- distcc:   Use the Distributed C/C++/ObjC compiler
  45. #-- color:    Colorize output messages
  46. #-- ccache:   Use ccache to cache compilation
  47. #-- xdelta:   Generate delta patch from previous to current package
  48. #
  49. BUILDENV=(fakeroot !distcc color !ccache !xdelta)
  50. #
  51. #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
  52. #-- specify a space-delimited list of hosts running in the DistCC cluster.
  53. #DISTCC_HOSTS=""
  54. #########################################################################
  55. # GLOBAL PACKAGE OPTIONS
  56. #   These are default values for the options=() settings
  57. #########################################################################
  58. #
  59. # Default: OPTIONS=(strip docs libtool emptydirs zipman)
  60. #  A negated option will do the opposite of the comments below.
  61. #
  62. #-- strip:     Strip symbols from binaries/libraries
  63. #-- docs:      Save doc and info directories
  64. #-- libtool:   Leave libtool (.la) files in packages
  65. #-- emptydirs: Leave empty directories in packages
  66. #-- zipman:    Compress manpages with gzip
  67. #-- purge:     Remove files specified by PURGE_TARGETS
  68. #
  69. OPTIONS=(strip docs libtool emptydirs zipman purge)
  70. #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
  71. INTEGRITY_CHECK=(md5)
  72. #-- Info and doc directories to remove (if option set correctly above)
  73. DOC_DIRS=(usr/{,share/}{info,doc,gtk-doc} opt/*/{info,doc,gtk-doc})
  74. #-- Directories to be searched for the strip option (if option set correctly above)
  75. STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
  76. #########################################################################
  77. # PACKAGE OUTPUT
  78. #########################################################################
  79. #
  80. # Default: put built package and cached source in build directory
  81. #
  82. #-- Destination: specify a fixed directory where all packages will be placed
  83. #PKGDEST=/home/packages
  84. #-- Source cache: specify a fixed directory where source files will be cached
  85. #SRCDEST=/home/sources
  86. #-- Packager: name/email of the person or organization building packages
  87. #PACKAGER="John Doe <john@doe.com>"
  88. SRCDEST=/var/cache/makepkg
  89. PKGDEST=/root/resys/system
  90. #########################################################################
  91. # BUILDSCRIPT/EXTENSION DEFAULTS
  92. #########################################################################
  93. #
  94. # WARNING: Do NOT modify these variables unless you know what you are
  95. #          doing.
  96. #
  97. BUILDSCRIPT='PKGBUILD'
  98. PKGEXT='.pkg.tar.gz'
  99. SRCEXT='.src.tar.gz'
  100. DB_COMPRESSION='gz'
  101. DB_CHECKSUMS=(md5)
  102. # vim: set ft=sh ts=2 sw=2 et:
复制代码
发表于 2010-3-24 18:52:45 | 显示全部楼层
要密码的是要安装依赖java-runtime。

你用pacman安装包不要密码吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-24 19:00:22 | 显示全部楼层
Post by jqxl0205;2077541
要密码的是要安装依赖java-runtime。

你用pacman安装包不要密码吗?


不用阿!都直接裝阿!
而且,我根本沒設密碼,直接按ENTER居然提示密碼錯誤。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-24 19:06:33 | 显示全部楼层
而且,明明我Java runtime已經裝上了,前一陣子倉庫好像整個掛掉過一次,現在搞得倉庫都亂掉了,很有錯誤。
回复 支持 反对

使用道具 举报

发表于 2010-3-24 19:13:25 | 显示全部楼层
Post by jiuny0209;2077549
而且,明明我Java runtime已經裝上了,前一陣子倉庫好像整個掛掉過一次,現在搞得倉庫都亂掉了,很有錯誤。


建议把系统中有的包重新安装一次,如果不想这么麻烦的话那就只装出问题的那些吧。。
回复 支持 反对

使用道具 举报

发表于 2010-3-24 19:42:34 | 显示全部楼层
你root用户的密码呢。输入试试看。。为何要用root,怎么还有人用root
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表