解决ubuntu22.04链接eduroam总是失败问题

【ubuntu20联网】ubuntu20.04正常使用网络,解决校园以太网无法连接问题 解决虚拟机联网问题 阅读详情
AI摘要

文章讲述了Ubuntu22.04用户遇到Eduroam网络连接困难的问题,由于不安全的重新协商导致连接中断。用户可以通过编辑wpa_supplicant的openssl.cnf配置文件,启用TLS1.0并修改wpa_supplicant服务来临时解决此问题,包括复制配置文件、启用旧版TLS、更新wpa_supplicant服务设置,最后重启服务以实现连接。

前言

在ubuntu22.04中连接eduroam网络十分困难。就我个人而言,他总是要我反复输入密码,但是仍然链接不上,或者有时连接得上,有时连接不上。或者在连接过程中由于连接不上自己跳到了“校园网”(“校园网”真是网速又慢又有时间限制,超时加钱。虽然每个月有免费时长也还是不错了)。

这并不是ubuntu或者是linux特有的问题,论坛上许多人反映这是ubuntu21升级到22后他们才出现的问题。同样的,在其他linux发行版的较新版本中似乎也有类似的问题出现。

在ubuntu帖子https://askubuntu.com/questions/279762/how-to-connect-to-wpa2-peap-mschapv2-enterprise-wifi-networks-that-dont-use-a-c/1405397#1405397 上找到了解答。侵删。

最近,许多eduroam部署在Ubuntu 22.04 LTS上中断,因为它们仍然使用不安全的重新协商,这在2010年被RFC 5746否决,OpenSSL在2010年3月左右放弃了对它的支持(以及TLS 1.0和1.1)。在你的大学修复其网络之前,你可以通过编辑一些配置文件重新启用不安全的再协商。
用户“nfalse”(#22)和Simon Chopin(#36)为Launchpad Bug#1958267贡献了以下步骤

以上内容为机翻,以下内容为人工翻译

第一步:为wpa_supplicant创建具体的openssl.cnf

sudo cp /etc/ssl/openssl.cnf /etc/wpa_supplicant/

这将会确保仅仅对WPA协议启用TLS1.0,这将在一定程度上减轻这种变化的安全影响。

第二步: 在上面复制的配置文件中启用旧版的(1.0)TLS

以管理员权限编辑新的配置文件。

sudo gedit /etc/wpa_supplicant/openssl.cnf

然后,在文件中发现有下面内容的行:

[openssl_init]
providers = provider_sect

( 我在第53~55行,如图)

立即在这一行后面插入下面内容:

ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
Options = UnsafeLegacyRenegotiation
CipherString = DEFAULT@SECLEVEL=1

第三步:使得wpa_supplicant使用新的配置

以管理员权限编辑wpa_supplicant服务。

sudo gedit /usr/lib/systemd/system/wpa_supplicant.service

找到下面的行:

[Service]
Type=dbus
BusName=fi.w1.wpa_supplicant1
ExecStart=/sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
ExecReload=/bin/kill -HUP $MAINPID

在BusName之后,插入Environment="OPENSSL_CONF=/etc/wpa_supplicant/openssl.cnf"

即:

[Service]
Type=dbus
BusName=fi.w1.wpa_supplicant1
Environment="OPENSSL_CONF=/etc/wpa_supplicant/openssl.cnf"
ExecStart=/sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
ExecReload=/bin/kill -HUP $MAINPID

第四步:重启wpa_supplient服务

除了运行下面的命令,你也可以通过重启计算机来达到启动该服务的效果。

sudo systemctl daemon-reload
sudo systemctl restart wpa_supplicant.service

等待服务启动 

结果:一反常态地快速连接成功

Ubuntu20.04使用摸索(一)——重装、换源和校园网连接 Ubuntu20.04使用摸索,主要包括了重装、换源和连接校园网中遇到的问题还有对应的解决步骤。 阅读详情

相关推荐

python电子学会三级的零碎笔记

‌示例‌:如果s = ['a', 'b', 'c'],则' '.join(s)+'\n'的结果是'a b c\n',写入文件时所有元素会在一行内显示,每个元素之间用空格分隔,末尾有一个换行符。(2) '\n'.join(s)‌:如果s = ['a', 'b', 'c'],则'\n'.join(s)的结果是'a\nb\nc',写入文件时每个元素会占据文件的一行。(1) ' '.join(s)+'\n'‌:这种方式首先将列表s中的每个元素通过空格连接成一个字符串,然后在字符串末尾添加一个换行符\n。

xzal12的博客 690

解决Ubuntu双系统无法连接校园网

我是Ubuntu18.04 参考了https://www.cnblogs.com/FHC1994/p/9158666.html。然后输上校园卡号和密码。

2301_76738577的博客 1799

【3D目标检测】激光雷达和相机联合标定(一)——ROS同步解包

激光雷达和相机联合标定(一)——ROS同步解包

qq_44703886的博客 4233

ubuntu链接校园网遇到的坑

扫描完成之后,无脑下一步。

tianyi520jx的博客 1772

车机破解避坑指南:为什么你的CarPlay盒子不识别?从USB设备ID解析兼容性问题

本文深入解析车机USB设备兼容性问题,特别是CarPlay盒子不识别的原因,从硬件ID到识别机制全面剖析。通过ADB工具和root权限操作,提供详细的破解方案和兼容性测试结果,帮助用户解决车机与第三方设备的连接问题。

weixin_29175469的博客 602

MPU6050模块DIY翻车实录:ID能读但数据全为零?原来是这个10uF电容惹的祸

本文详细记录了MPU6050模块调试过程中遇到的ID能读但数据全为零的问题排查过程。通过对比不同参考设计,发现CPOUT引脚10uF电容选择不当是导致数据异常的根源,更换为官方推荐的2.2nF电容后问题解决。文章为硬件开发者提供了宝贵的电路设计经验。

weixin_29158047的博客 319

Ubuntu有线校园网认证窗口提示:could not connect : no route to host

Ubuntu有线校园网认证的问题。

Noak7的博客 2855

避开这些坑!STM32H750 IAP升级实战:从Bootloader设计到APP接收的完整避坑指南

本文深入探讨STM32H750 IAP升级的完整避坑指南,从Bootloader设计到APP接收的全流程实践。特别针对QSPI Flash运行限制、SRAM跳转机制和固件校验等核心问题,提供工业级解决方案,帮助开发者提升升级成功率和系统稳定性。

weixin_30471561的博客 275

Ubuntu连接不了网络的解决方法亲测可行经验

突然发现Ubuntu连不上网络,网络打问号或者右上角也没有网络图标;楼主一般通过前两步就解决了,大家自行查阅网络服务名称,OK直接进入正题。

Vincent_Han的博客 4万+

ODrive0.5.5源码分析(1) ADC的处理

odrive 0.5.5 ADC

danger的博客 4307

「模型部署系列」ubuntu 使用vllm部署Qwen3-8B模型

解决这个问题的方法正如错误信息中所提示的,需要在命令行中显式地设置。下载单个文件到指定本地文件夹(以下载README.md到当前路径下“dir”目录为例)解决:这表明你正在使用的 Tesla T4 GPU 的计算能力为 7.5,而。,用于获取更详细的 NCCL 调试信息,当所有其他问题排除,可尝试增加。1、下载vllm v0.8.5(此处已经下好了,去仓库拉资源)在下载前,请先通过如下命令安装ModelScope。,这一错误最终致使引擎进程启动失败。更多更丰富的命令行下载选项,可参见。

汪依帆的博客 5044

关于Ubuntu连接eduroam的解决方案

电脑新配置双系统,无法在ubuntu连接到eduroam WIFI。具体表现是在windows上连接顺利,但在ubuntu中无法连接。进入ubuntu WIFI设置页面,点击eduroam的设置按钮,在“再输入自己的账号密码,点击应用即可连接。,在CA证书设置中,勾选“”中,将认证方式更改为。

weixin_58990843的博客 428

微信小程序开发:实现地图导航功能

其中,id用于调用地图组件,latitude和longitude表示地图的中心点坐标,markers表示地图中的标记点,covers表示地图中的覆盖物,polyline表示地图中的折线图,show-location表示是否显示当前定位点,bindregionchange表示移动地图时触发的事件。其中,id表示标记点的唯一标识,latitude和longitude表示标记点的坐标,title表示标记点的名称,iconPath表示标记点的图标路径,width和height表示标记点的宽度和高度。

吃不胖. 8917

解决Ubuntu不能联网的问题

使用vmplayer中安装的ubuntu时,出现了无法联网的情况:在网上搜索了一下相关情况,可能的原因有:使用了校园网、电脑防火墙将vmplayer列为危险软件,不给予联网权限。

2401_85748452的博客 801

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

由于使用校园网,ubuntu虚拟机时而不能连接网络的解决方案

打开 NetworkManager 的配置文件,可以对网络管理器进行更详细的配置,比如修改 DNS 设置、网络连接优先级等。:删除 NetworkManager 的状态文件,有时候这个文件可能会损坏导致网络连接问题,删除后系统会重新生成。:重启 NetworkManager 服务,相当于先停止再启动服务,这样可以使之前的配置更改生效。:停止 NetworkManager 服务,这会暂时关闭网络管理功能,可能会导致网络连接中断。:启动 NetworkManager 服务,重新启用网络管理功能。

☆迷茫Dog的秘密基地☆ 1684

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

Mac上无法登陆连接eduroam(直接不出现账号和密码界面)

问题如下:

Robin_Pi的博客 7251

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

openssl config文档翻译

openssl config文档翻译

大草的博客 1867

Docker容器内httprunner 巡检任务报错 ssl.SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1129)

报错截图如下: 需要编辑容器文件 /etc/ssl/openssl.cnf [system_default_sect] MinProtocol = TLSv1.2 #CipherString = DEFAULT@SECLEVEL=2 CipherString = DEFAULT@SECLEVEL=1 docker容器启动时,我的处理一般是共享编辑好的openssl.cnf文件到容器的 /etc/ssl/openssl.cnf目录 ...

qq_24487005的博客 3203

ubuntu连不上校园网

本人 之前在家学习ubuntu,然后回到学校之后,ubuntu连不上网了,之后用了网上的好多方法,折腾了一晚上还是没弄好,第二天,用手机热点连上了,之后,改用校园网又连不上了,于是猜测问题出在连不上校园网上 方法: 将桥接模式改为net模式,然后就可以连上了! ...

这里是菠萝味菠萝啤的博客 2726

虚拟机VM里Ubuntu连不上校园网怎么办

虚拟机VM里Ubuntu连不上校园网怎么办

weixin_45516359的博客 945

如何让novnc/websockify支持tls1.2 (by quqi99)

作者:张华 发表于:2020-09-10 版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明 如果希望novnc使用tls1.2该怎么办? 各软件(openssl, websockify, nova)支持tls1.2的历史情况如下: openssl在1.0.0h到1.0.1的时候才开始支持tls1.2, 见"Add TLS v1.2 server support for client authentication" - https://www.openssl.org/n

技术并艺术着 3675

ubuntu 20.04启用TLSv1

解决爬虫过程中的SSLError问题

12218的博客 2686

Ubuntu 14.04连接上海大学ShuWlan-1X与eduroam

无线配置 GUI窗口界面配置无线: 安全-WPA及WAP2企业 认证-受保护的EAP(PEAP) CAZ证书-不需要 内部认证-MSCHAPv2 eduroam的用户名为学号@sdvip.shu.edu.cn,密码为一卡通密码。 ShuWlan-1X的用户名学号,密码为一卡通密码。 ...

世事茫茫,光阴何其有限!(准备迁移至github.io) 5455

简单处理Ubuntu无法联网的问题

该方法不一定人人有效,但是可以试试,说不定可以省去不少时间

kokool的博客 8804

Python requests【unsafe legacy renegotiation disabled】问题

如何解决SSLError问题

weixin_55109596的博客 1086

Ubuntu下用网线连接校园网的方法

本人天津大学学生,校园网有限客户端没有linux版本,(本人电脑无线网卡十分非主流,主流的驱动均不支持),故在此记录自己成功连接有线校园网的做法,步骤如下:打开终端(快捷键ctrl+alt+T)输入 sudo pppoeconf,输入管理员密码然后会弹出一个界面,敲回车。在下面的框框里输入自己的账号(注意要删除框框里原来的文本再输入账号)然后敲回车,输入密码,再敲回车之后会提示是否现在连接网络之类...

S_E_iTachi的博客 4575
上一篇: 该错误可能由于代理设置导致 || SSL routines::unexpected eof while reading
下一篇: (humble版本)使用ros2doctor || 118:UserWarning: Fail to call PlatformCheck class functions.和154行的一个警告
早上真好
早上真好 新星创作者: 人工智能技术领域 新星创作者: 人工智能技术领域
博客等级 码龄4年 5522粉丝 110原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值