代码之家  ›  专栏  ›  技术社区  ›  Fiorelo Odobashi

COTson linux安装

  •  1
  • Fiorelo Odobashi  · 技术社区  · 7 年前

    我是linux新手,我知道这应该是一个愚蠢的问题,但我在互联网上没有找到任何东西,所以我决定在这里问它:

    在使用这行代码配置COTson程序的过程中,它给了我一个错误:

    代码: ./configure --simnow_dir ../simnow-linux64-4.6.2pub

    错误:

    Cleaning temporary directory: /home/user/add-image_tmp_dir
    * bootstrap.status is present
    * WARNING: problems detected in bootstrap.status
    * Run again bootstrap.sh
    * Checking the cotson directory ...
    * COTSon directory for images already exist.
    * Tuning /etc/sysctl.conf...
    *   Total RAM Memory system     = about 2 GB
    *   mapoptim   = 0
    *   mapmin     = 4194304
    *   mapok      = 4194304
    *   mapconfig  = 4194304
    *   mapcurrent = 4194304
    * Detected that VM configuration is ok: vm.max_map_count = 4194304
    * Detected Distribution 'Ubuntu' - Version 'raring'
    * Ubuntu raring supported
    ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
    * Checking if extra packages should be installed ...
      . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 
    
    *** NOTE: for this step (installation of missing packages/dependencies: g++-multilib bison flex vnc4server rxvt xfwm4 xfonts-100dpi xfonts-75dpi zsh sharutils build-essential xvnc4viewer screen liblua5.1-0-dev zlib1g-dev indent xutils-dev libsqlite3-dev sqlite3 libdbd-sqlite3-perl libdbd-pg-perl gnuplot libboost-dev libboost-thread-dev lzma gnuplot-x11 procmail rpcbind gawk mc quota libpqxx3-dev ruby rubygems libopenssl-ruby libsqlite3-ruby ), either ask your admin or be sure you have sudo access
    * Installing missing packages/dependencies...
    E: Unable to correct problems, you have held broken packages.
    E: Unable to correct problems, you have held broken packages.
    * Packages installation FINISHED
    * Checking ruby gems
    sudo: gem: command not found
    * Installing missing gems
    * Checking connection befor to install ruby test-unit
    * Connection OK
    * Installing rubygems test-unit
    sudo: gem: command not found
    * Gems installation FINISHED
    
    ERROR: Could not install one or more of g++ g++-multilib subversion genisoimage bison flex vnc4server  rxvt xfwm4 xfonts-100dpi xfonts-75dpi zsh sharutils build-essential xvnc4viewer screen liblua5.1-0 liblua5.1-0-dev zlib1g-dev indent xutils-dev libsqlite3-dev sqlite3 libdbd-sqlite3-perl libdbd-pg-perl gnuplot libboost-dev libboost-thread-dev lzma libxcursor1 libxrender1 libsm6 libxi6 libfontconfig1 gnuplot-x11 subversion procmail rpcbind genisoimage gawk gedit mc quota libpqxx3-dev ruby ruby1.8 rubygems libopenssl-ruby libsqlite3-ruby 
    - Please check your distribution and edit 'configure' to reflect it
    * ERROR: bootstrap.sh KO
    

    以下是我为达到这一点而遵循的指南(第13页):

    Teraflux_COTson_installation_guide

    我知道我需要安装一些软件包,但如何才能获得它们?

    欲了解更多详情,请咨询

    谢谢

    更新1

    我尝试使用@Scott Stensland提供的代码,但当它开始安装软件包时,会出现以下错误:

    错误:

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Note, selecting 'libruby' instead of 'libopenssl-ruby'
    g++ is already the newest version.
    libxi6 is already the newest version.
    ruby1.8 is already the newest version.
    subversion is already the newest version.
    gedit is already the newest version.
    libfontconfig1 is already the newest version.
    libxrender1 is already the newest version.
    genisoimage is already the newest version.
    liblua5.1-0 is already the newest version.
    libsm6 is already the newest version.
    libxcursor1 is already the newest version.
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     build-essential : Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
     g++-multilib : Depends: gcc-multilib (>= 4:4.6.3-1ubuntu5) but it is not going to be installed
                    Depends: g++-4.6-multilib (>= 4.6.3-1~) but it is not going to be installed
     liblua5.1-0-dev : Depends: liblua5.1-0 (= 5.1.4-12ubuntu1.1) but 5.1.5-4 is to be installed
                       Depends: libreadline-dev but it is not going to be installed
                       Recommends: libtool
     libpqxx3-dev : Depends: libpq-dev (>= 8.0.3-1) but it is not going to be installed
     libsqlite3-dev : Depends: libsqlite3-0 (= 3.7.9-2ubuntu1.2) but 3.7.15.2-1ubuntu1 is to be installed
     sqlite3 : Depends: libsqlite3-0 (= 3.7.9-2ubuntu1.2) but 3.7.15.2-1ubuntu1 is to be installed
     zlib1g-dev : Depends: zlib1g (= 1:1.2.3.4.dfsg-3ubuntu4) but 1:1.2.7.dfsg-13ubuntu2 is to be installed
    E: Unable to correct problems, you have held broken packages.
    

    我试着用 sudo apt-get install -f packagename sudo apt-get autoclean $$ apt-get clear cache 但什么都没发生。

    1 回复  |  直到 7 年前
        1
  •  1
  •   Scott Stensland    7 年前

    下面是您的消息中的一个剪贴,前面有安装语法

    sudo apt-get update && sudo apt-get upgrade
    sudo apt-get install -y g++ g++-multilib subversion genisoimage bison flex vnc4server  rxvt xfwm4 xfonts-100dpi xfonts-75dpi zsh sharutils build-essential xvnc4viewer screen liblua5.1-0 liblua5.1-0-dev zlib1g-dev indent xutils-dev libsqlite3-dev sqlite3 libdbd-sqlite3-perl libdbd-pg-perl gnuplot libboost-dev libboost-thread-dev lzma libxcursor1 libxrender1 libsm6 libxi6 libfontconfig1 gnuplot-x11 subversion procmail rpcbind genisoimage gawk gedit mc quota libpqxx3-dev ruby ruby1.8 rubygems libopenssl-ruby libsqlite3-ruby 
    

    那会给你丢失的包裹

    更新1

    无法更正问题,您持有损坏的软件包

    当你在谷歌上搜索上述消息时,你提到的第一个链接是 https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages 指向您应该发出的下一个命令。。。继续,把它的建议作为首要答案,然后重新发出上面列出的命令