您现在的位置是:首页 > 电脑技术查询 > 电脑知识

新立得软件包管理器

编辑:chaxungu时间:2022-09-28 09:39:50分类:电脑知识

目录·简介
·使用指南
·troubleshooting(疑难解答)
·seealso(请参阅)


  
简介  新立得软件包管理器起源于debian。它是dpkg命令的图形化前端,或者说是前端软件套件管理工具。它能够在图形界面内完成linux系统软件的搜寻、安装和删除,相当于终端里的apt命令。
  在ubuntu最近的长期支持版里已经预装了新立得软件包管理器。在没有安装它的系统中,可以通过apt-getinstallsynaptic进行安装。使用新立得软件包管理器的同时不能使用终端,因为它们实质上是一样的。
  

  
使用指南(更多请见ubuntu中文)

  gettingstarted(启动)
tolaunchsynaptic,choosesystem>administration>synapticpackagemanager.
要运行新立得,点击系统>系统管理>新立得软件包管理器(system>administration>synapticpackagemanager)。

themainwindowisdividedintothreesections:apackagebrowserontheleft,thepackagelistontheupperright,andpackagedetailsonthelowerright.thestatusbarshowsyouthesystemstateataglance.
新立得的主窗口分为三个部分:左边是一个包浏览器,右上方是包列表以及右下方的包详细信息。状态栏显示您的系统的总体状态。

  browsingthepackagedatabase(浏览软件包数据库)
tobrowsethe(verylarge)listofavailablepackagesbycategory,section,packagestatus,customfilters,orrecentsearches.clickonthecorrespondingbuttonatthebottomoftheleftwindowpane.youcanalsocreateyourownfilters.seethefiltersfilterssectionfordetails.
如果要按分类、类别、状态、自定义过滤器或者最近搜索来浏览软件包列表(巨大)。点击窗口左下角相应的按钮。您也可以自定义过滤器。关于过滤器的详细信息,请参考filtersfilters一节。
tosearchforpackagesbynameordescription,clickonthesearchbuttoninthetoolbar:
点击工具栏上的搜索(search)以名称或者描述来搜索软件包:

youcanexamineanumberofpackagedetailsinthelowerrightwindowpanesuchasitssize,itsdependencies,recommendedorsuggestedadditionalpackages,andashortdescription.
您可以查看右下角面板上的一系列关于选定软件包的详细信息,例如大小、依赖关系、推荐或建议的额外软件包以及一段简短的描述。

addingorremovingsoftware(添加或删除软件)
toinstallapackage
安装一个软件包:
clickreloadorpressctrl+rtomakesynapticawareofthelatestupdates.
点击刷新(reload)或者按下ctrl+r来使新立得获得最新的软件包信息。
right-clickonthepackageandchoosemarkforinstallationfromthecontextmenu,orpressctrl+i.ifthepackagerequirestheinstallationofanotherpackage,adialogboxappears:
右键点击需要的软件包,然後在弹出的菜单中选择标记以便安装(markforinstallation)或者按下ctrl+i.
synapticwillwarnyouifyourchoicesconflictwithpackagesthatarealreadyinstalledonyoursystem.ifthisisthecase,thedialogboxwillshowyouanypackagesthatneedtoberemoved.ifyouarenotsureyoudon'tneedthepackage(s)thatwillberemoved,makesureyoulookupitsfunctionandusebeforeyouapplythechangesyou'vemade.
如果您所选择的软件包与系统中已经安装了的软件包有冲突,新立得会给予您警告。如果确有冲突发生,一个对话框将提示您需要删除的软件包。如果您不确定您已经不需要将要被删除的软件包,那么在您确认之前,请务必先查看这些软件包的功能和作用。
clickmarktoallowtheinstallationoftheadditionalpackage(s).
点击标记(mark)来安装所需的额外软件包。
onceyou'resatisfiedwithyourchoices,clickonapplyinthetoolbarorpressctrl+p.
当您满意您的选择後,点击工具栏上的应用(apply)按钮或者按下ctrl+p。
adialogboxappearswithasummaryofchangesthatwillbemade.
这时会出现一个摘要您所作更改的对话框。
confirmthechangesbyclickingonapply.
点击应用(apply)按钮来确认您的更改。
toremoveor'completelyremove'apackage
删除或者彻底删除一个软件包
right-clickonthepackageandchoosemarkforremovalfromthecontextmenu
右键点击需要删除的软件包,然後在弹出的菜单中选择标记以便删除(markforremoval)。
onceyou'resatisfiedwithyourchoices,clickonapplyinthetoolbarorpressctrl+p.
当您满意您的选择後,点击工具栏上的应用(apply)按钮或者按下ctrl+p。
adialogboxappearswithasummaryofchangesthatwillbemade.confirmthechangesbyclickingonapply.
这时会出现一个摘要您所作更改的对话框。点击应用(apply)按钮来确认您的更改。
themarkforcompleteremovaloptioninstructssynaptictoremoveanyconfigurationfilesassociatedwiththepackageaswell.标记以便彻底删除(markforcompleteremoval)选项会使新立得同时删除所有与软件包相关的配置文件。

toupgradeapackage
升级一个软件包
clickreloadorpressctrl+rtomakesynapticawareofthelatestupdates.
点击刷新(reload)或者按下ctrl+r来使新立得获得最新的软件包信息。
right-clickonthepackageandchoosemarkforupgradefromthecontextmenu,orpressctrl+u.
右键点击需要的软件包,然後在弹出的菜单中选择标记以便升级(markforupgrade'''')或者按下ctrl+u.
onceyou'resatisfiedwithyourchoices,clickonapplyinthetoolbarorpressctrl+p.
当您满意您的选择後,点击工具栏上的应用(apply)按钮或者按下ctrl+p。
adialogboxappearswithasummaryofchangesthatwillbemade.confirmthechangesbyclickingonapply.
这时会出现一个摘要您所作更改的对话框。点击应用(apply)按钮来确认您的更改。

managingrepositories(管理软件仓库)
youcanmanagethelistofrepositoriesorsoftwarechannelsfromthesoftwarepreferencespanel.tolearnmoreaboutmanagingsoftwarechannelsinubuntu,seetheubunturepositorieswikipage.youcancallupthesoftwarepreferencespanelfromwithinsynapticbyselectingrepositoriesfromthesettingsmenu.
您可以软件首选项面板来管理软件仓库或软件频道。您可以通过设置菜单中的软件库命令来打开软件软件首选项。
asafront-endtoapt,synapticusesthesystem-widelistofsoftwarerepositoriesfilelocatedat
/etc/apt/sources.listformoreonmanagingsoftwarechannels,seetherepositorieswikipage.作为apt的前端,新立得使用系统系统己的软件仓库配置文件:
/etc/apt/sources.list

updatingthepackagelist(更新软件包列表)
synapticmaintainsadatabaseofpackagesonyoursysteminordertokeeptrackofinstalledsoftware.thislistischeckedagainstthesoftwarerepositoriestoinformyouofnewpackagesorupdates.synapticchecksfornewsoftwarepackageswhenyoulaunchsynaptic.it'sagoodideatoupdatethedatabasefromtimetotimewhilerunningsynaptic.inparticular,youmaywanttodosoifyouhavemadechangestothelistofsoftwarechannelsorifyouhavemadechangestosynaptic'sconfiguration.justclickonthereloadbuttonorpressctrl+r.
新立得维护了一个关于您系统上所有软件包的数据库来追踪您系统上安装了的软件包。新立得通过检查软件仓库来更新数据库,这样它就可以提示您新的软件包或者已有软件包的升级。新立得在启动时检查新的软件包。在运行新立得时时常更新数据库是个不错的选择。特别是当您改变了软件仓库列表或者更改了新立得的设置时,您可能需要立即更新数据库。需要更新只需点击工具栏上的刷新(reload)按钮或者按下ctrl+r。

howtokeepyoursystemup-to-date(如何使您的系统保持最新)
synapticprovidestwomethodsforupgradingyoursystem:
新立得提供两种方式来更新您的系统:
smartupgrade(dist-upgrade)--recommended
thesmartupgrademethodtriestoresolvepackageconflicts.thisincludesinstallingadditionaldependencies(requiredpackages)ifneededandpreferringpackageswithhigherpriority.smartupgradehasthesameeffectastheapt-getdist-upgradetoolonthecommandline.
智能升级(dist-upgrade)--推荐
智能升级会试图解决软件包之间冲突的问题。这包括在需要时安装额外的依赖关系(需要的软件包)或者选择具有较高优先级的软件包。智能升级与命令行上的apt-getdist-upgrade具有同样的效果。
defaultupgrade
thedefaultupgrademethodmarksupgradesofinstalledpackagesonly.ifthenewversionofapackagedependsonnotinstalledpackagesorcoflictswithanalreadyinstalledpackage,itwillnotbeupgraded.
默认升级
默认升级仅仅标记所有已安装软件包的升级。如果新版本的软件包依赖于尚未安装的软件包或者于已安装的软件包冲突,升级将不会继续。
dist-upgradeisthedefaultupgrademethodusedbysynaptic.tochangetheupgrademethod,choosepreferencesfromthesettingsmenu,thenclickonthegeneraltabandadjustthesystemupgradeentry.智能升级是新立得默认的升级方式。如果希望改变升级方式,选择设置(settings)菜单下的首选项(preferences),点击常规信息(general)选项卡,然後调整系统升级(systemupgrade)项。

toupgradeyoursystemwithsynaptic:
要使用新立得升级您的系统:

clickreloadorpressctrl+rtomakesynapticawareofthelatestupdates.
点击刷新(reload)或者按下ctrl+r来使新立得获得最新的软件包信息。
clickmarkallupgradesorpressctrl+g.
点击工具栏上的标记所有软件包以便升级(markallupgrades)按钮或者按下ctrl+g。
clickapplyonthetoolbarorpressctrl+p.adialogappearswithasummaryofthechangesthatwillbemadetoyoursystem.
点击工具栏上的应用(apply)按钮或者按下ctrl+p。*这时会出现一个摘要您所作更改的对话框。
clickapplytoconfirmthechangesandgoaheadwiththeupgrade.
点击应用(apply)来确认您的更改并继续升级。

integrationwithupdate-manager
与更新管理器(update-manager)的集成
synapticworkshand-in-handwithupdate-managertoinformyouaboutupdatestothesoftwareinstalledonyoursystem.ifsoftwareorsecurityupdatesareavailable,update-managerwilldisplayapop-upmessageandaniconinthenotificationareaonyourgnomedesktop.toupdateyoursystem,clickonthenotificationicon,enteryourpasswordandclickok.
新立得与更新管理器(update-manager)紧密合作来提示您您系统上安装的软件包的升级。如果有软件或者安全更新,更新管理器会在您的gnome桌面的通知区域显示一个图标。要升级您的系统,点击通知区域的图表,输入您的密码,然後点击ok。
youcanchangethefrequencyofupdatechecksinthesoftwarepreferencespanel.chooserepositoriesfromthesettingsmenu,thenclickontheinternetupdatestabandadjustthecheckforupdatesentry.
您可以通过软件首选项面板(softwarepreferences)改变检查更新的频率。选择设置(settings)菜单下的首选项(preferences),点击internetupdates(internetupdates)选项卡,然後调整自动检查更新(checkforupdates)项。

locatingsoftwareonyoursystem(定位你系统上的软件)
synapticcantellyouabouteveryfilethatbelongstoasoftwarepackageitknowsaboutandshowyouwhereitislocatedonyoursystem.searchthedatabaseforthesoftwarepackageyouareinterestedinandselectitinsynaptic'smainwindow.next,clickontheinstalledfilestabtoseealistofallfilesandwheretheyare.
新立得可以告诉您它所知道的一个包内所有的文件的位置。在数据库中搜索您感兴趣的软件包,然後在新立得的主窗口中选中它。接着,点击已安装的文件(installedfiles)选项卡来查看每个文件的位置。

viewthechangelogofapackage(查看软件包的变更日志)
appliestonativedebian(.deb)packagesonly
仅适用于原生debian(.deb)包
youcanviewthechangelogofapackagewithsynaptic.selectapackage,thenchoosedownloadchangelogfromthepackagemenu.
您可以用新立得来查看一个软件包的变更日志。选定一个软件包,然後选择软件包(package)菜单下的下载变更日志(downloadchangelog)。

viewhistory(查看历史)
youcaneasilykeeptrackofallchangesmadetoyoursystem'ssoftwareconfiguration.toviewthehistorylogfile,choosehistoryfromthefilemenu.
您可以非常简单得追踪所有新立得对您的系统作的改动。要查看历史日志文件,选择文件(file)菜单下的历史(history)。
thehistorylogonlyshowschangesmadewithsynaptic.
历史日志仅仅显示新立得所作的更改。

howtoforcetheinstallationofapackageversion(如何强制安装某个版本的软件包)
tobeadded:whyyouwould(andwouldnot)wanttoforceaspecificversion
将要添加:为什么您会希望(或者不再希望)强制安装某个版本的软件
toforcetheinstallationofapackagedifferentfromtheonechosenbysynaptic,dothefollowing:
要强制安装一个软件包不同于新立得选择的版本,如下操作:
clickreloadorpressctrl+rtomakesynapticawareofthelatestupdates.
点击刷新(reload)或者按下ctrl+r来使新立得获得最新的软件包信息。
selectthepackage.chooseforceversionfromthepackagemenu.
选定需要改变的软件包。选择软件包(package)菜单下的强制版本(forceversion)。
selecttheversionyouwouldliketouse.toconfirmyourdecision,clickforce.
选择您想使用的版本。点击强制(force)来确人您的决定。
clickapplyonthetoolbarorpressctrl+p.adialogappearswithasummaryofthechangesthatwillbemadetoyoursystem.toconfirm,pressapply.
点击工具栏上的应用(apply)按钮或者按下ctrl+p。这时会出现一个摘要您所作更改的对话框。点击应用(apply)来确认。

howtofixbrokenpackages(如何修复软件包)
'brokenpackages'arepackagesthathaveunsatisfieddependencies.ifbrokenpackagesaredetected,synapticwillnotallowanyfurtherchangestothesystemuntilallbrokenpackageshavebeenfixed.
'毁损的软件包'是指那些没有满足依赖关系的软件包。如果新立得检测到毁损的软件包,它将不允许在这些毁损的软件包被修复前对系统作任何改变。
tofixbrokenpackages
修复毁损的软件包
chooseedit>fixbrokenpackagesfromthemenu.
选择编辑(edit)菜单下的修正损毁的软件包(fixbrokenpackages)。
chooseapplymarkedchangesfromtheeditmenuorpressctrl+p.
点击编辑(edit)菜单下的实施标记的更新(applymarkedchange)或者按下ctrl+p。
confirmthesummaryofchangesandclickapply.
点击应用(apply)按钮来确认您的更改。
anchor(statusicons)

statusicons(状态图标)
thefollowingiconsareusedtoindicatethestatusofapackageinthepackagelist:
以下这些图标用于表示软件包列表中软件包的状态:

keyboardshortcutsforsynaptic(新立得的快捷键)
.
<tablebgcolor="#f1f1ed"tablewidth="80%"tablestyle="margin:0px0px1em1em;padding:0.5em;font-size:0.9em;"rowbgcolor="#dde3e7">command<style="text-align:center;">keycombination
.
updatethelistofavailablepackages<style="text-align:center;">ctrl+r
openthepackagesearchdialog<style="text-align:center;">ctrl+f
showthepropertieswindowfortheselectedpackage<style="text-align:center;">ctrl+o
marktheselectedpackage(s)forinstallation<style="text-align:center;">ctrl+i
marktheselectedpackage(s)forupgrade<style="text-align:center;">ctrl+u
marktheselectedpackage(s)forremoval<style="text-align:center;">delete
marktheselectedpackage(s)forcompleteremoval<style="text-align:center;">shift+delete
unmarkanychangestopackages<style="text-align:center;">ctrl+n
markallpossibleupgrades<style="text-align:center;">ctrl+g
forcetheinstallationofaspecificversionofthepackage<style="text-align:center;">ctrl+e
undothelastchange<style="text-align:center;">ctrl+z
redothelastchange<style="text-align:center;">ctrl+shift+z
applyallmarkedchanges<style="text-align:center;">ctrl+p
quitsynaptic<style="text-align:center;">ctrl+q
<tablebgcolor="#f1f1ed"tablewidth="80%"tablestyle="margin:0px0px1em1em;padding:0.5em;font-size:0.9em;"rowbgcolor="#dde3e7">命令<style="text-align:center;">组合键
.
更新软件包列表<style="text-align:center;">ctrl+r
打开软件包搜索对话框<style="text-align:center;">ctrl+f
显示所选软件包的属性窗口<style="text-align:center;">ctrl+o
标记所选的软件包以便安装<style="text-align:center;">ctrl+i
标记所选的软件包以便升级<style="text-align:center;">ctrl+u
标记所选的软件包以便删除<style="text-align:center;">delete
标记所选的软件包以便彻底删除<style="text-align:center;">shift+delete
取消全部标记<style="text-align:center;">ctrl+n
标记所有更新<style="text-align:center;">ctrl+g
强制安装某个版本的软件包<style="text-align:center;">ctrl+e
撤销最近一次更改<style="text-align:center;">ctrl+z
重做最近一次更改<style="text-align:center;">ctrl+shift+z
应用所有标记的更改<style="text-align:center;">ctrl+p
退出新立得<style="text-align:center;">ctrl+q

troubleshooting(疑难解答)
whattodoifaninstallationprocessfailsandyoufinditisnolongerpossibletoinstallorremovepackages:
一次安装过程失败而且不能在进行安装或者删除了怎么办:

openaterminalandtypethefollowingatthecommandline:
apt-getinstall-fthenpressreturn.
打开一个终端,在命令行输入如下命令:
apt-getinstall-f然後按下回车。

browserworks,synapticwillnot(note:probablyinaccurateoroutdated)
浏览器正常工作,但是新立得却有问题(注:描述可能不准确或者已经过时)

iftherouterissettoautodiscoverdnsthensynapticwillfail.resolvethisbysettingupastaticipaddressandmanuallysetdnsipinrouter.nowubuntu(system-administration-networking)configstaticipandenteryourispdnsipanddeleterouterdnsipwhichwilllooksomethinglike192.168.1.1
路由器设置为自动检测dns,新立得就无法工作:可以通过静态ip地址以及手动设置路由器的dns来解决此问题。现在使用ubuntu(系统-系统管理-联网)配置静态ip,然後输入您的isp的dns的ip地址然後删除路由器的dns的ip地址,可能是类似192.168.1.1这样。


------------------------------------------------------
seealso(请参阅)
basicsofthedebianpackagemanagementsystem
debianaptusermanual
synaptichomepage
asynaptictutorialbasedonubuntu5.10(breezybadger)
point-n-clicksoftwaremanagementwithsynaptic(debianuniverse)
theapt-getwikipage
managingrepositoriesinubuntu
anintroductiontosecureaptonthedebianwiki
softwaremanagementwikipage

上一篇:工作组数据库

下一篇:cinema4d