aptgetupdateinrelease如何用Linux连接Windows的远程桌面

频道:基金定投 日期: 浏览:0

大家好,关于apt-get update inrelease很多朋友都还不太明白,不过没关系,因为今天小编就来为大家分享关于如何用Linux连接Windows的远程桌面的知识点,相信应该可以解决大家的一些困惑和问题,如果碰巧可以解决您的问题,还望关注下本站哦,希望对各位有所帮助!

本文目录

如何Upgrade 至 Ubuntu 16.04 LTSubuntu更新源时到最后有一个源提示无法下载求助apt-get update 无法更新如何用Linux连接Windows的远程桌面如何在Ubuntu,Linux Mint,Debian上禁用IPv6如何Upgrade 至 Ubuntu 16.04 LTSUbuntu下一个长期支持版本的系统16.04LTS(XenialXerus)已经发布。本博客一直运行在Ubuntu15.04的系统上,有了新版本作为双子座的我肯定想尝尝鲜。

Step1–BackUpYourSystem

备份对于运维很重要,其实在我们的生活中也非常的重要

Step2–UpgradeCurrentlyInstalledPackages

sudoapt-getupdate

接下来执行

sudoapt-getupgrade

你会看到需要更新文件的列表,然后按下Enter键继续。完成上面的任务之后运行

sudoapt-getdist-upgrade

同样你也会得到系统提示,问是否继续升级。

Step3–UseUbuntu’sdo-release-upgradeTooltoPerformUpgrade

首先确认你的update-manager-corepackage是否已经安装

sudoapt-getinstallupdate-manager-core

过运行启动do-release-upgrade

sudodo-release-upgrade

如果没有发现16.04你会看到下面的输出:

SampleOutput

CheckingforanewUbunturelease

Nonewreleasefound

当然现在16.04已经放出了,应该不会出现上面的提示。如果我们以后想尝鲜的话我们可以尝试开发版本在后面加入-d就好了

sudodo-release-upgrade-d

执行上面的命令后会得到系统的提示我们只要按下Y和Enter键就ok了

Readingcache

Checkingpackagemanager

ContinuerunningunderSSH?

Thissessionappearstoberunningunderssh.Itisnotrecommended

toperformaupgradeoversshcurrentlybecauseincaseoffailureit

ishardertorecover.

Ifyoucontinue,anadditionalsshdaemonwillbestartedatport

'1022'.

Doyouwanttocontinue?

Continue[yN]<spanclass="highlight">y</span>

Startingadditionalsshd

Tomakerecoveryincaseoffailureeasier,anadditionalsshdwill

bestartedonport'1022'.Ifanythinggoeswrongwiththerunning

sshyoucanstillconnecttotheadditionalone.

Ifyourunafirewall,youmayneedtotemporarilyopenthisport.As

thisispotentiallydangerousit'snotdoneautomatically.Youcan

opentheportwithe.g.:

'iptables-IINPUT-ptcp--dport1022-jACCEPT'

Tocontinuepleasepress[ENTER]

Updatingrepositoryinformation

Novalidmirrorfound

Whilescanningyourrepositoryinformationnomirrorentryforthe

upgradewasfound.Thiscanhappenifyourunaninternalmirroror

ifthemirrorinformationisoutofdate.

Doyouwanttorewriteyour'sources.list'fileanyway?Ifyouchoose

'Yes'hereitwillupdateall'trusty'to'xenial'entries.

Ifyouselect'No'theupgradewillcancel.

Continue[yN]<spanclass="highlight">y</span>

Doyouwanttostarttheupgrade?

6installedpackagesarenolongersupportedbyCanonical.Youcan

stillgetsupportfromthecommunity.

9packagesaregoingtoberemoved.104newpackagesaregoingtobe

installed.399packagesaregoingtobeupgraded.

Youhavetodownloadatotalof232M.Thisdownloadwilltakeabout

46secondswithyourconnection.

Installingtheupgradecantakeseveralhours.Oncethedownloadhas

finished,theprocesscannotbecanceled.

Continue[yN]Details[d]<spanclass="highlight">y</span>

移除旧版本

Removeobsoletepackages?

53packagesaregoingtoberemoved.

Continue[yN]Details[d]<spanclass="highlight">y</span>

Systemupgradeiscomplete.

Restartrequired

Tofinishtheupgrade,arestartisrequired.

Ifyouselect'y'thesystemwillberestarted.

Continue[yN]<spanclass="highlight">y</span>

然后等待一会儿安装就会完成,你就可以看到系统输出的提示信息了。

ubuntu更新源时到最后有一个源提示无法下载把/etc/apt/sources.list文件中的地址换成下面后再执行sudoapt-getupdate

debhttp://mirrors.163.com/ubuntulucidmainrestricteduniversemultiverse

debhttp://mirrors.163.com/ubuntu/lucid-securitymainrestricteduniversemultiverse

debhttp://mirrors.163.com/ubuntu/lucid-updatesmainrestricteduniversemultiverse

debhttp://mirrors.163.com/ubuntu/lucid-proposedmainrestricteduniversemultiverse

debhttp://mirrors.163.com/ubuntu/lucid-backportsmainrestricteduniversemultiverse

deb-srchttp://mirrors.163.com/ubuntu/lucidmainrestricteduniversemultiverse

deb-srchttp://mirrors.163.com/ubuntu/lucid-securitymainrestricteduniversemultiverse

deb-srchttp://mirrors.163.com/ubuntu/lucid-updatesmainrestricteduniversemultiverse

deb-srchttp://mirrors.163.com/ubuntu/lucid-proposedmainrestricteduniversemultiverse

deb-srchttp://mirrors.163.com/ubuntu/lucid-backportsmainrestricteduniversemultiverse

这种错误都是源的问题

推荐使用deepin,不用这么折腾

求助apt-get update 无法更新ubuntuapt-getupdate失败

1.出现错误:E:Couldnotgetlock/var/lib/apt/lists/lock-open(11:Resourcetemporarilyunavailable)

出现这个问题的原因可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因,可能是上次安装时没正常完成,而导致出现此状况。

解决方法:把/var/lib/apt/lists中的文件全部删掉

输入以下命令

sudorm/var/cache/apt/archives/lock

sudorm/var/lib/dpkg/lock

之后再安装想装的包,即可解决

2.出现错误:E:Someindexfilesfailedtodownload.Theyhavebeenignored,oroldonesusedinstead.

解决方法:

ToupgradeareallyoldUbunturelease,wefirstneedtoeditoursources.

listandchangeall(xx.)archive.ubuntu.comtoold-releases.ubuntu.com.

$sudoemacs/etc/apt/sources.list

Soyourlinesshouldinsteadof

debjauntymainrestricteduniverse

looklike

debjauntymainrestricteduniverse

InthisexampleIusejauntyrelease.Butitworksthesameonotherreleases.

Nowupdatetherepos

$sudoapt-getupdate

如何用Linux连接Windows的远程桌面最简单的方式就是安装rdesktop,一个基于RDP协议的远程客户端软件,可以轻松实现Linux远程连接Windows桌面,下面我简单介绍一下操作过程,感兴趣的朋友可以尝试一下:

1.首先,开启Windows远程连接,这个是远程桌面连接的前提,直接在“我的电脑->属性->远程设置”中勾选就行,如下:

2.接着就是在Linux中安装rdesktop,以Centos7为例,需要运行如下3条命令,先下载安装rpm包,获取yum源,然后才能直接安装(如果是Ubuntu系统,则直接apt安装即可):

wgethttp://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

rpm-Uvhnux-dextop-release*rpm

yuminstallrdesktop-y

3.安装完成后,我们就可以直接使用rdesktop命令远程连接Windows桌面了,基本使用方式“rdesktopWindows主机IP”就可直接连接Windows桌面,如下,输入用户名和密码,验证成功后,就可登录Windows主机了:

更多参数和功能介绍的话,可以参考帮助命令“rdesktop-h”,官方都有详细介绍:

至此,我们就完成了Linux远程连接Windows桌面。总的来说,整个过程非常简单,最主要的还是安装rdesktop,只要你熟悉一下上面的操作过程,很快就能掌握的,网上也有相关教程和资料,介绍的非常详细,感兴趣的话,可以搜一下,希望以上分享的内容能对你有所帮助吧,也欢迎大家评论、留言进行补充。

如何在Ubuntu,Linux Mint,Debian上禁用IPv6IPv6

IPv6是寻址方案IPv4的下一个版本,被用来给域名分配数字地址。

IPv6比IPv4支持更多的地址。然而,它还没有被广泛支持,还在被接受的过程中。

你的系统支持IPv6么?

为了支持IPv6,需要很多事情。首先你需要系统/操作系统支持IPv6。Ubuntu,LinuxMint,和大多是现代发行版都支持它。如果你看一下ifconfig指令的输出,你就会看见你的网络接口被分配了IPv6地址。

$ifconfig

eth0Linkencap:EthernetHWaddr00:1c:c0:f8:79:ee

inetaddr:192.168.1.2Bcast:192.168.1.255Mask:255.255.255.0

inet6addr:fe80::21c:c0ff:fef8:79ee/64Scope:Link

UPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1

RXpackets:110880errors:0dropped:0overruns:0frame:0

TXpackets:111960errors:0dropped:0overruns:0carrier:0

collisions:0txqueuelen:1000

RXbytes:62289395(62.2MB)TXbytes:25169458(25.1MB)

Interrupt:20Memory:e3200000-e3220000

loLinkencap:LocalLoopback

inetaddr:127.0.0.1Mask:255.0.0.0

inet6addr:::1/128Scope:Host

UPLOOPBACKRUNNINGMTU:65536Metric:1

RXpackets:45258errors:0dropped:0overruns:0frame:0

TXpackets:45258errors:0dropped:0overruns:0carrier:0

collisions:0txqueuelen:0

RXbytes:4900560(4.9MB)TXbytes:4900560(4.9MB)

看一下行“inet6addr”。

接下来你需要一个支持ipv6的路由器/调制解调器。此外,你的ISP也必须支持IPv6。

除了检查网络设备的每一部分,最好查出你是否可以通过IPv6访问网站。

有很多网站可以检测你的网络连接是否支持IPv6.这里就是个例子:http://testmyipv6.com/

下面是在内核中启用IPv6的参数:

$sysctlnet.ipv6.conf.all.disable_ipv6

net.ipv6.conf.all.disable_ipv6=0

$sysctlnet.ipv6.conf.default.disable_ipv6

net.ipv6.conf.default.disable_ipv6=0

$sysctlnet.ipv6.conf.lo.disable_ipv6

net.ipv6.conf.lo.disable_ipv6=0

同样可以在proc文件中检查

$cat/proc/sys/net/ipv6/conf/all/disable_ipv6

0

注意这里的变量是控制IPv6的“禁用”。所以设置1就会禁用IPv6。

如果它不支持就禁用IPv6

如果你的网络设备中不支持IPv6,那最好就全部禁用它们。为什么?因为这会引起域名查询延迟,在网络连接中不必要地尝试连接到IPv6地址导致延迟等等问题。

我也遇到过像这样的问题,apt-get命令偶尔会尝试连接到IPv6地址失败接着检索IPv4地址。看一下下面的输出。

$sudoapt-getupdate

Ignhttp://archive.canonical.comtrustyInRelease

Ignhttp://archive.canonical.comraringInRelease

Errhttp://archive.canonical.comtrustyRelease.gpg

Cannotinitiatetheconnectiontoarchive.canonical.com:80(2001:67c:1360:8c01::1b).-connect(101:Networkisunreachable)[IP:2001:67c:1360:8c01::1b80]

Errhttp://archive.canonical.comraringRelease.gpg

Cannotinitiatetheconnectiontoarchive.canonical.com:80(2001:67c:1360:8c01::1b).-connect(101:Networkisunreachable)[IP:2001:67c:1360:8c01::1b80]

.....

像这样的错误在最近的Ubuntu中更频繁了,或许它比以前更频繁地尝试使用IPv6地址。

我在其他的应用上也注意到了相似的问题,如Hexchat,同样GoogleChrome也会有时会在查询域名的时候花费更长的时间。

所以最好的方案是完全禁用IPv6来摆脱这些事情。这只需要一点点配置但可以帮助你解决很多你系统上的很多问题。用户甚至反应这可以加速网络。

禁用IPv6-方案1

编辑文件-/etc/sysctl.conf

$sudogedit/etc/sysctl.conf

在文件的最后加入下面的行。

#IPv6disabled

net.ipv6.conf.all.disable_ipv6=1

net.ipv6.conf.default.disable_ipv6=1

net.ipv6.conf.lo.disable_ipv6=1

保存并关闭

重启sysctl

$sudosysctl-p

再次检查ifconfig的输出,这里应该没有IPv6地址了。

$ifconfig

eth0Linkencap:EthernetHWaddr08:00:27:5f:28:8b

inetaddr:192.168.1.3Bcast:192.168.1.255Mask:255.255.255.0

UPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1

RXpackets:1346errors:0dropped:0overruns:0frame:0

TXpackets:965errors:0dropped:0overruns:0carrier:0

collisions:0txqueuelen:1000

RXbytes:1501691(1.5MB)TXbytes:104883(104.8KB)

如果不行,尝试重启系统并再次检查ifconfig

禁用IPv6-GRUB方案

IPv6同样可以通过编辑grub配置文件禁用。

$sudogedit/etc/default/grub

查找包含"GRUBCMDLINELINUX"的行,并如下编辑:

GRUB_CMDLINE_LINUX="ipv6.disable=1"

同样可以加入名为"GRUBCMDLINELINUX_DEFAULT"的变量,这同样有用。保存并关闭文件,重新生成grub配置。

$sudoupdate-grub2

重启,现在IPv6应该就已经禁用了。

END,本文到此结束,如果可以帮助到大家,还望关注本站哦!

智能科学与技术 人工智能

股市什么概念

美元债券的收益率

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 931614094@qq.com 举报,一经查实,本站将立刻删除。