apt-get

ubuntu 12.04 libudev-dev won't install because of dependencies

匿名 (未验证) 提交于 2019-12-03 01:09:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a some sample c++ code that receives hotplug events using the udev library. It worked fine in Ubuntu 10.04. It's only prerequisite was the libudev-dev package: sudo apt-get install libudev-dev But when I tried to install that package in 12.04, I get: sudo apt-get install libudev-dev Reading package lists... Done Building dependency tree Reading state information... Done 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

ubuntu 下 nodejs与express 安装

折月煮酒 提交于 2019-12-03 01:08:51
历经坎坷 终于装好 如果不是root用户 所有指令前加 sudo 1,安装 python g++ gcc apt-get install python g++ gcc 2,node.js官网下载 https://nodejs.org/ 直接点install 就行 (原来是在 ubuntu可视化下安装 所以可以浏览网页直接下载) 下面是 阿里云上的 ubuntu安装方法 sudo apt-get update sudo apt-get install -y python -software-properties software-properties-common python g++ make sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs 3,解压node.tar.gz tar -zvcf 文件 路径目录/文件 /或者直接使用文档归档工具解压(解压到文件夹需要权限) sudo chmod 777 文件夹名 4,接换到解压出来的文件目录下 cd node-v0.12.1 5,安装 ./configure make make install 6,确认安装 node -v npm -v 接下来是安装express(一样 需要管理员权限 root

debian apt packages hash sum mismatch

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: From the Debian command line, I'm getting a hash sum mismatch after executing aptitude update; aptitude upgrade . Below is the command line output. I've tried an aptitude clean , but this does not seem to help. I've also done a few google searches, but nothing seems to help. I've been getting the mismatch error for a few days. Any help is appreciated. Resolving dependencies... open: 405; closed: 880; defer: 58; conflict: 78. The following packages will be upgraded: apache2.2-bin apt-utils aptdaemon aptdaemon-data avahi-daemon bind9-host

“ModuleNotFoundError: No module named <package>” in my Docker container

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to run a python script in a Docker container, and i don't know why, python can't find any of the python's module. I thaught it has something to do with the PYTHONPATH env variable, so i tried to add it in the Dockerfile like this : ENV PYTHONPATH $PYTHONPATH But it didn't work. this is what my Dockerfile looks like: FROM ubuntu:16.04 MAINTAINER SaveMe SaveMe@Desperate.com ADD . /app WORKDIR /app RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y locales # Set the locale RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en

Error when sudo apt-get install php5-cli

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using linux mint. I'm trying to install php5-cli, but after execution a corresponding bash command I've the following log: Reading package lists... Done Building dependency tree Reading state information... Done php5-cli is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 353 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process:

Installing WKHTMLtoPDF 0.12.x 64 bit on Ubuntu 12.04.5 (Dreamhost VPS)

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to install WKHTMLtoPDf 0.12.x on a Dreamhost VPS running Ubuntu 12.04.5. I found a realatively new resource and it seems like it should be pretty straight forward: sudo add - apt - repository ppa : pov / wkhtmltopdf sudo apt - get update sudo apt - get install wkhtmltopdf But, it tells me the user I'm SSH'd in with using Putty is not in the Sudoers file, and the incident will be reported. Is this the right way to install wkhtmltopdf on the Dreamhost VPS? and if so how do you add a user to the sudoers file? I'm not overly

pocketsphinx_continuous failed to open audio device

匿名 (未验证) 提交于 2019-12-03 00:48:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: After installing pocketsphinx , when I tried to run the pocketsphinx_continuous program then I got this error.. _oss.c(103): Failed to open audio device(/dev/dsp): No such file or directory FATAL_ERROR: "continuous.c", line 242: Failed top open audio device How to solve this problem? 回答1: Install the following from the terminal : sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop linux-image- uname -r libasound2; sudo apt-get -y --reinstall install

ubuntu16.04上安装ros-kinetic

匿名 (未验证) 提交于 2019-12-03 00:43:02
1.设置安装源 sudo sh -c ‘echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list‘ 2.设置key sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116 3.安装 sudo apt-get update sudo apt-get install ros-kinetic-desktop-full 4.初始化 sudo rosdep init rosdep update 5.配置环境变量 echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc source ~/.bashrc 6.安装rosinstall sudo apt-get install python-rosinstall 7.测试 roscore 转:https://www.cnblogs.com/rokey/p/7841959.html 原文:https://www.cnblogs.com/sea-stream/p/9362114.html

gym安装出错:pip install gym[atari] 报错解决方法

匿名 (未验证) 提交于 2019-12-03 00:41:02
运行 import gym 没问题,但是 env = gym.make( 'MsPacman-v0' ) 报错, 安装依赖的包: sudo apt -get install -y python -numpy python -dev cmake zlib1g -dev libjpeg -dev xvfb libav -tools xorg -dev python -opengl libboost -all -dev libsdl2 -dev swig libglfw3 -dev 安装libav-tools报错Package has no installation candidate,用: # apt-get update # apt-get upgrade # apt-get install <packagename> 其中 libav-tools , libglfw3-dev 安装不上的话,用这个替代: sudo apt -get install ffmpeg sudo apt -get install libglfw3 -dev 还有安装 Pillow : pip install Pillow 最后安装: pip install gym [atari] 参考: http://lib.csdn.net/article/aimachinelearning/68113 文章来源:

APT常用命令

匿名 (未验证) 提交于 2019-12-03 00:41:02
APT(Advanced Packaging Tool) is a set of tools for managing Debian packages, and therefore the applications installed on your Debian system. APT makes it possible to: Install applications Remove applications Keep your applications up to date and much more... APT是一个客户/服务器系统。在服务器上先复制所有DEB包(DEB是Debian软件包格式的文件扩展名),然后用APT的分析工具(genbasedir)根据每个DEB包的包头(Header)信息对所有的DEB包进行分析,并将该分析结果记录在一个文件中,这个文件称为DEB索引清单,APT服务器的DEB索引清单置于base文件夹内。一旦APT 服务器内的DEB有所变动,一定要使用genbasedir产生新的DEB索引清单。客户端在进行安装或升级时先要查询DEB索引清单,从而可以获知所有具有依赖关系的软件包,并一同下载到客户端以便安装。 当客户端需要安装、升级或删除某个软件包时,客户端计算机取得DEB索引清单压缩文件后,会将其解压置放于/var/state/apt/lists/