sudo: add-apt-repository: command not found

错误来啦:sudo: add-apt-repository:command not found
      网上解决办法是直接安装工具包 命令:sudo apt-get install python-software-properties

loter亲测安装后还是报command not found,所以依赖包还没有安装完全,少了什么呢?

执行命令:add-apt-repository ,如图,除了要安装python-software-properties外还需要software-properties-common

ok,执行安装命令:sudo apt-get software-properties-common

是这个  才起作用能安装sudo apt-get install software-properties-common

 

时间: 2024-07-31 04:34:36

sudo: add-apt-repository: command not found的相关文章

python 错误信息是:sudo :apt-get:command not found

1.问题描述 错误信息是:sudo :apt-get:command not found 2.问题原因及解决 在centos下用yum install xxx yum和apt-get的区别一般来说著名的linux系统基本上分两大类: 1.RedHat系列:Redhat.Centos.Fedora等 2.Debian系列:Debian.Ubuntu等 RedHat 系列 1 常见的安装包格式 rpm包,安装rpm包的命令是“rpm -参数” 2 包管理工具 yum 3 支持tar包 Debian系

Jenkins连接git时出现“Failed to connect to repository : Command ... HEAD" returned status code 128:”的问题解决

网上说的解决方法如下: 其实生成ssh时不应该使用当前用户去生成ssh,而是使用jenkins这个用户去生成ssh,然后再去git服务器上配置你生成key,最后再jenkins上配置返回给你的key. 参考: http://www.jianshu.com/p/ed0edb93e234 http://stackoverflow.com/questions/21557998/jenkins-failed-to-connect-to-repository

如何在Ubuntu 14.04 LTS上安装MariaDB

MariaDB是一个开源数据库且100%与MySQL兼容,目标是替代MySQL数据库. MariaDB的背景 : 2008年,MySQL被后来被Oracle在2010年收购的 Sun Microsystems 收购了. 最初被Sun公司的收购由于符合项目的需要而受到MySQL社区的欢呼,但是这种情绪并没有持续太久,接下来被Oracle的收购,不幸期望远远低于预 期.许多MySql的开发者离开了Sun和Oracle公司开始新的项目.在他们中间就有MySQL的创建者以及项目长期技术带头人之一的 Mi

在Ubuntu 14.10中如何安装和配置‘天气信息指示器’

在Ubuntu桌面中有各种提供天气信息的方法,你可以使用Unity Dash和桌面应用来获得天气信息,比如 Typhoon . 但是可以提供快速查询天气状况和温度数据,并且只需要一次鼠标点击而获得大量气象数据的面板插件,才是到目前为止Linux平台下最受欢迎的天气应用. Atareao开发的 My Weather Indicator 就是这类应用中的一个,也可以说是最好的一个. 它在Unity面板上显示实时温度和天气状况,并且有一个包括体感温度.云量和日升日落时间等天气数据的菜单.除此之外,该应

Ubuntu 18.04 64位安装tensorflow-gpu

第一步(可直接跳到第二步):安装nvidia显卡驱动 linux用户可以通过官方ppa解决安装GPU驱动的问题.使用如下命令添加Graphic Drivers PPA: 1 sudo add-apt-repository ppa:graphics-drivers/ppa  然后更新源: 1 sudo apt-get update  然后去navidia官网查看最新的驱动版本号:navidia官网:http://www.geforce.cn/drivers 比如说驱动的最新版本号为396,则执行如

How can I add a new user as sudoer using the command line?

Two ways to use sudo command for a standard user account: First, If you want to use sudo command for a standard user account, then you need to add this account to /etc/sudoers file. Use the following steps to add your desired user account to /etc/sud

-bash: sudo: command not found Error and Solution

文章转自: http://www.cyberciti.biz/faq/debian-ubuntu-rhel-centos-linux-bash-sudo-command-not-found/ 安装sudo $ su - and install sudo apt-get install sudo 修改sudo sudo vi /etc/sudoers 安装红色的那一行,添加一个用户 # # This file MUST be edited with the 'visudo' command as

sudo apt-get update:Could not get lock /var/lib/apt/lists/lock解决办法

今天更新时候出现了点小问题,一开始更新到一半,我嫌速度慢,就取消掉了. 更新了sources.list之后再执行sudo apt-get update 提示我出错了 E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable) E: Unable to lock the list directory 在网上搜索到的解决方案──“将/var/lib/apt/list/lock删除

Ubuntu 添加删除用户 How to Add and Delete Users on Ubuntu 16.04

Introduction One of the most basic tasks that you should know how to do on a fresh Linux server is add and remove users. When you create a new system, you are often (such as on DigitalOcean Droplets) only given the root account by default. While runn

Set up and Use Local Yum Repository

Just like the blogs I wrote before: Offline Package Installation I and Solve Conflicts in RPM installation, Use rpm or bare yum command to install downloaded rpm file works but I find somehow this will cause some maintenance problems, for example War