ubuntu 9.1.0 更新源list

本文提供了一份详细的 Ubuntu 9.10 Karmic Koala 的软件源配置示例,包括官方软件源及第三方软件源的设置方法。通过修改 /etc/apt/sources.list 文件并使用 apt-get update 命令更新软件包列表,用户可以确保系统能够访问到最新的软件版本。

 

 

 

sudo gedit /etc/apt/sources.list

sudo apt-get update

 

 

 

# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

# newer versions of the distribution.

 

deb http://ubuntu.cn99.com/ubuntu/ karmic main restricted

deb-src http://ubuntu.cn99.com/ubuntu/ karmic main restricted

 

## Major bug fix updates produced after the final release of the

## distribution.

 

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

## team. Also, please note that software in universe WILL NOT receive any

## review or updates from the Ubuntu security team.

deb http://ubuntu.cn99.com/ubuntu/ karmic universe

deb-src http://ubuntu.cn99.com/ubuntu/ karmic universe

 

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 

## team, and may not be under a free licence. Please satisfy yourself as to 

## your rights to use the software. Also, please note that software in 

## multiverse WILL NOT receive any review or updates from the Ubuntu

## security team.

deb http://ubuntu.cn99.com/ubuntu/ karmic multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ karmic multiverse

 

## Uncomment the following two lines to add software from the 'backports'

## repository.

## N.B. software from this repository may not have been tested as

## extensively as that contained in the main release, although it includes

## newer versions of some applications which may provide useful features.

## Also, please note that software in backports WILL NOT receive any review

## or updates from the Ubuntu security team.

# deb http://cn.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

# deb-src http://cn.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

 

## Uncomment the following two lines to add software from Canonical's

## 'partner' repository.

## This software is not part of Ubuntu, but is offered by Canonical and the

## respective vendors as a service to Ubuntu users.

# deb http://archive.canonical.com/ubuntu karmic partner

# deb-src http://archive.canonical.com/ubuntu karmic partner

 

## PPA for Ubuntu Mozilla Daily Build Team

deb http://ppa.launchpad.net/ubuntu-mozilla ... ppa/ubuntu jaunty main

deb-src http://ppa.launchpad.net/ubuntu-mozilla ... ppa/ubuntu jaunty main

 

## Tor for Ubuntu Mozilla

deb http://mirror.noreply.org/pub/tor etch main

deb-src http://mirror.noreply.org/pub/tor etch main

 

deb http://deb.torproject.org/torproject.org karmic main

deb-src http://deb.torproject.org/torproject.org karmic main

 

<think>嗯,用户问的是如何在Ubuntu 18.04上卸载VTK。首先,我需要回忆一下VTK的安装方式,因为不同的安装方法对应的卸载步骤可能不同。VTK通常有两种安装方式:通过系统的包管理器(比如apt)安装,或者从代码编译安装。 根据提供的引用内容,用户可能已经参考了相关的方法。引用[2]提到在/usr/local/include和/usr/local/lib目录下删除以libvtk开头的文件,这可能适用于手动安装或从代码安装的情况。而引用[3]提到使用apt卸载libprotobuf-dev,这说明用户可能也安装了其他库,但这里需要确认VTK是否通过apt安装。 首先,应该检查是否通过apt安装了VTK。用户可以使用apt list --installed | grep vtk来查找。如果找到了相关的包,就可以用sudo apt-get remove --purge包名来卸载,如引用[3]所示。但引用[2]中的方法则是手动删除文件,适用于通过码安装的情况。 如果用户是从代码安装的VTK,可能需要手动删除安装的文件,如头文件和库文件。引用[2]中的步骤是删除/usr/local/include下的libvtk*文件和/usr/local/lib下的libvtk*文件。不过需要注意的是,直接删除文件可能会有风险,应该确保这些文件确实属于VTK,并且没有其他软件依赖它们。 另外,引用[4]中提到了安装VTK的一些依赖项,但用户在卸载时可能不需要处理这些依赖项,除非特别需要清理。不过通常卸载软件包时,apt会自动处理依赖关系,但手动安装的依赖可能需要单独处理。 用户可能需要根据自己安装VTK的方式来选择不同的卸载方法。需要分步骤说明两种情况:通过apt安装和通过码安装。同时,提醒用户在删除文件前确认路径,避免误删其他重要文件。还可以建议用户使用which vtk或whereis vtk来查找相关文件的位置,确保正确卸载。 最后,生成相关问题时要考虑用户可能的后续需求,比如重新安装VTK或者处理依赖问题,所以相关问题可以涉及安装方法、依赖项管理以及如何确认卸载是否成功等。</think>### 如何卸载Ubuntu 18.04上的VTK? #### 方法1:通过APT包管理器卸载 如果VTK是通过`apt`安装的(例如`libvtk*`包),执行以下命令: ```bash # 查找已安装的VTK相关包 apt list --installed | grep vtk # 卸载指定包(将包名替换为实际结果) sudo apt-get remove --purge libvtk7-dev libvtk6-dev ``` 注意:若安装时使用了`sudo make install`或自定义路径,需结合方法2手动清理[^2][^3]。 --- #### 方法2:手动删除码安装的VTK 若通过码编译安装(例如VTK 9.1.0),需删除相关文件: ```bash # 删除头文件 sudo rm -rf /usr/local/include/vtk-* sudo rm -rf /usr/local/include/libvtk* # 删除库文件 sudo rm -rf /usr/local/lib/libvtk* sudo rm -rf /usr/local/lib/cmake/vtk-* # 清除CMake缓存(若之前配置过) rm -rf ~/dev/VTK-9.1.0/build # 替换为实际编译目录[^1][^2] ``` --- #### 验证是否卸载成功 ```bash # 检查头文件和库文件是否残留 ls /usr/local/include | grep vtk ls /usr/local/lib | grep vtk ``` ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值