apt-get

Remove broken java installation (linux)

邮差的信 提交于 2019-12-12 11:19:56
问题 I somehow messed up my Java installation and now I get this: $ sudo apt-get remove jre1.8.0_66 (Reading database ... 55212 files and directories currently installed.) Removing jre1.8.0-65 ... find: `/usr/java/*': No such file or directory /var/lib/dpkg/info/jre1.8.0-65.postrm: line 586: /usr/sbin/alternatives: No such file or directory dpkg: error processing jre1.8.0-65 (--remove): subprocess installed post-removal script returned error exit status 127 Errors were encountered while processing

Docker build has no network, but docker run has

拥有回忆 提交于 2019-12-12 10:47:19
问题 If I want to build my Dockerfile, it can't connect to the network or at least DNS: Sending build context to Docker daemon 15.95 MB Sending build context to Docker daemon Step 0 : FROM ruby ---> eeb85dfaa855 Step 1 : RUN apt-get update -qq && apt-get install -y build-essential libpq-dev ---> Running in ec8cbd41bcff W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/InRelease W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease W: Failed to fetch

树莓派安装opencv

☆樱花仙子☆ 提交于 2019-12-12 08:10:36
sudo apt - get install libatlas - base - dev sudo apt - get install libhdf5 - dev sudo apt - get install libhdf5 - serial - dev sudo apt - get install libatlas - base - dev sudo apt - get install libjasper - dev sudo apt - get install libqtgui4 sudo apt - get install libqt4 - test sudo pip3 install opencv - python == 4.1 .0 .25 来源: CSDN 作者: 腥红之怨 链接: https://blog.csdn.net/qq_41834780/article/details/103487913

Ubuntu上部署Django项目

天涯浪子 提交于 2019-12-12 00:57:32
apache+mode_wsgi 1. 安装apache sudo apt-get update sudo apt-get install apache2(Use 'sudo apt autoremove' to remove them.) 2. 安装uwsgi sudo apt-get install python3-dev sudo apt-get install python3-pip 3. apache+nginx or uwsgi+nginx 下载python3:apt-cache search apache python3 将本地文件上传到Ubuntu上面:scp -i 权限 本地文件地址 Ubuntu上的文件地址 安装MySQL数据库 1. sudo apt-get install mysql-server 2. sudo apt-get install mysql-client 3. sudo apt-get install libmysql client-dev(未安装是pip install mysqlclient时会失败) 在安装的过程中可能会提示设置密码。 mysql -u <用户名> -p <密码> 然后就可以连接数据库了 安装成功需要自己设置root账号 关闭apach:sudo service apache2 stop 启动apache:sudo

ubuntu+nginx+php7+mysql 安装

时光毁灭记忆、已成空白 提交于 2019-12-11 17:11:26
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 原文: http://www.07net01.com/2016/01/1121802.html 添加nginx源 echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" >> /etc/apt/sources.list echo "deb-src http://nginx.org/packages/ubuntu/ trusty nginx" >> /etc/apt/sources.list 安装nginx apt-get update apt-get install nginx PHP7.0.1 apt-get install python-software-properties add-apt-repository ppa:ondrej/php-7.0 apt-get install php7.0-fpm 做一些配置: vi /etc/php/7.0/fpm/php.ini #将cgi.fix_pathinfo=1这一行去掉注释,将1改为0。 MySQL 5.7.10 下载apt文件[ http://dev.mysql.com/downloads/repo/apt/ ] dpkg -i mysql-apt-config_xx_all

apt-get error: Version '5:19.03.4~3-0~ubuntu-bionic' for 'docker-ce' was not found

笑着哭i 提交于 2019-12-11 14:16:17
问题 Documentation provides syntax to install specific version of docker-ce : $ sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io On similar line, below dockerfile uses the above syntax: FROM jenkins/jenkins:lts ENV DEBIAN_FRONTEND=noninteractive USER root ARG DOCKER_GID=497 # Create Docker Group with GID # Set default value of 497 if DOCKER_GID set to blank string by Docker compose RUN groupadd -g ${DOCKER_GID:-497} docker # Install base packages for

Unable to Install Heroku toolbelt on Samsung ARM Chromebook?

南楼画角 提交于 2019-12-11 13:20:56
问题 I have a Samsung Series 3 Chromebook with the ARM processor. I made a Crouton chroot and installed Ubuntu cli. I have Node.js 0.10.15 installed and running. I tried to install the heroku-toolbelt and it won't run. Below is the command: (precise)root@localhost:/# wget --no-check-certificate -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh I used --no-check-certificate because when I took quiet mode off I learned that was causing the install to punt. After it told me a few times it could

linux ubuntu server, can't complete “sudo apt-get install ubuntu-desktop” [closed]

心已入冬 提交于 2019-12-11 13:10:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I'va installed ubuntu server 10.41 in Vm ware, and I would like to install the desktop but each time i try to do the command sudo apt-get install ubuntu-desktop this error shows up: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libp/libproxy/ libproxy0-o.3.1-ubuntu1-amd64.deb 403 Forbidden [Ip:91

ubuntu强迫症自用删除无用图标及系统自带软件

怎甘沉沦 提交于 2019-12-11 12:21:36
1 删除文件管理器左边Music、Videos等标签 首先删除相应文件夹 sudo rm -rf Music Videos 打开Files文件管理器--点击顶部Bookmarks--选择Bookmarks...--选择你要删除的书签--修补该书签location为当前已有目录--此时左下角"-"由灰变黑--点击"-",ok删除完成。 2 删除无用软件 #!/bin/sh sudo apt-get remove thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot gnome-mines cheese transmission-common gnome-orca webbrowser-app gnome-sudoku landscape-client-ui-install # 卸载libreoffices sudo apt-get remove libreoffice-common # 卸载Amazon的链接 sudo apt-get remove unity-webapps-common 来源: CSDN 作者: 不是Gonga 链接: https://blog.csdn.net/qq_33698226/article/details/103489285

ubuntu 16.04下安装VMware-Workstation-12/14详细步骤

冷暖自知 提交于 2019-12-11 10:35:48
转截: https://www.cnblogs.com/zhenxiLi-2017/p/8446999.html 1.首先准备一个Ubuntu 16.04 系统 安装基本的开发工具 sudo apt install build-essential 2.使用多线程下载工具axel 从VMware官方地址下载如下:   $ sudo apt-get install axel   $ exel -n 10 https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-12.1.1-3770994.x86_64.bundle (-n 选项指定线程的数目) 3.赋予执行权限并安装:   $ chmod +x VMware-Workstation-Full-12.1.1-3770994.x86_64.bundle $ sudo ./VMware-Workstation-Full-12.5.5-5234757.x86_64.bundle (普通用户下的安装命令) 4.安装 VMware-Workstation-12    5.解决安装时出现的问题:   ubuntu上VMware:(vmware-installer.py:3847): Gtk-WARNING **: 无法在模块路   径中找到主题引擎: