apt-get: command not found
之前安装包的时候不小心安装了aptitude相关的包,卸载掉之后重新把apt安装上就好了
1、查看系统中是否安装有aptitude包,执行如下命令:
aptitude show apt-transport-https
Package: apt-transport-https
Version number: 1.3~rc2
Status: Not installed
Priority: optional
Part: admin
Maintainer: APT Development Team <deity@lists.debian.org>
System: amd64
Uncompressed size: 237 k
Depends on: libapt-pkg5.0 (>= 1.3~rc2), libc6 (>= 2.14), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2)
Recommended: ca-certificates
Conflict: apt-transport-https:i386
Description: https download transport for APT
2:卸载aptitude包
dpkg -r aptitude
3:安装apt包
apt包的deb文件下载地址
下载对应的deb包
使用dpkg进行安装(两个deb文件要版本对应)
sudo dpkg -i apt_1.6.1_amd64.debsudo dpkg -i libapt-pkg-dev_1.6.1_amd64.deb
4:修复和更新
apt-get install -f
apt-get update
参考链接:
https://blog.csdn.net/opencv_fjc/article/details/106074145
apt-get: command not found相关推荐
- linux apt-get找不到命令,ubuntu 下 apt /apt-get command not found 命令找不到
简介:apt 命令在ubuntu下找不到.(针对云平台,等可联网的ubuntu 如果是虚拟机,请确认能否联网 (如是虚拟机且不能联网请参考其他文章,大致方向是先挂载系统镜像再安装)) (ps:一般的 ...
- Linux apt命令
Linux apt命令及其与apt-get的关系 转自:https://blog.csdn.net/taotongning/article/details/82320472.https://www.r ...
- apt apt 用法_apt命令–实用用法指南
apt apt 用法 This guide will walk you through everything you'd need to start using the apt command in ...
- Linux:apt命令
目录 1. 查找 2. 安装 2.1 只安装不升级 2.2 只升级不安装 2.3 安装指定版本 3.更新 3.1 一键升级: 4. 删除 apt(Advanced Packaging Tool)是一个 ...
- Linux查看已经安装软件的版本,安装软件的路径,以及dpkg、aptitude、apt-get、apt工具的使用
Linux查看已经安装软件的版本,安装软件的路径,以及dpkg.aptitude.apt-get.apt工具的使用: 1 dpkg的使用 2 Linux查看已经安装的软件以及版本 2.1 Linux查 ...
- 安装aptitude后apt实效
Ubuntu18-apt重新安装踩坑记录 问题描述 解决方法 问题描述 由于某些需求安装了 aptitude ,安装过程中好像把apt给卸载了. 报错:apt: command not found 解 ...
- Ubuntu操作-05 Dpkg与Apt
文章目录 1 dpkg(debian系统的包管理工具) 1.1 相关介绍 1.1.1 deb软件包名规则 1.1.2 dpkg软件包相关文件介绍 1.1.3 dpkg数据库 1.1.4 dpkg子命令 ...
- 检查 ubuntu 版本_如何检查Ubuntu版本–快速简便的方法
检查 ubuntu 版本 In this tutorial, we will go over the easiest methods to check Ubuntu version from the ...
- 在Ubuntu上安装Docker –分步指南
Let me walk you through the steps to install docker on Ubuntu today. Since I was installing it on my ...
- Java云同桌学习系列(十九)——Linux系统
本博客java云同桌学习系列,旨在记录本人学习java的过程,并与大家分享,对于想学习java的同学,我希望这个系列能够鼓励大家一同与我学习java,成为"云同桌". 每月预计保持 ...
最新文章
- ATS 6.2.1打release版本rpm包时插件中出现undefined symbol的问题追踪
- 跨模态学习在三维语义分割领域适应中的应用
- python计时函数_python计时函数
- Windows上安装HADOOP单机伪分布式集群
- 文件结束[置顶] javaweb框架--自定义标签与freemaker结合
- k8s 给worker/master节点打标签(角色标签)
- Django中pipeline操作Redis数据库
- [Swift]快速反向平方根 | Fast inverse square root
- 代码覆盖度-NCover监控IIS和exe,结果分析
- java模拟http_java模拟http请求的错误问题整理
- 深入浅出设计模式---5、享元模式
- 删除服务器远程桌面痕迹,清除3389连接后留下的日志,清除3389远程桌面连接记录...
- Excel·VBA合并工作簿
- Android 如何获取运行内存和总运行内存等
- APP全栈工程师修炼之路(二)
- 微信小程序(一)天气预报
- BackTrack 5 tools
- 2017全球ROI Top25游戏广告平台排行榜
- 《精通python设计模式》读书笔记之——结构型设计模式
- SystemUI之任务管理器