找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 217|回复: 2

ubuntu 更新源 sources.list

[复制链接]

113

主题

46

回帖

680

积分

高级会员

积分
680
发表于 2025-12-17 14:25:40 | 显示全部楼层 |阅读模式
本帖最后由 rafavi 于 2025-12-17 14:36 编辑

清除本地仓库缓存
sudo apt clean

使用正确的命令添加 PPA
sudo add-apt-repository ppa:ondrej/php
to upgrade Ubuntu from old to the currently newest version. however when I run the commands.


$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ sudo do-release-upgrade


Checking which package isnt upgraded i get a lutris package popping up.
$ sudo apt list --upgradable -aListing... Donelutris/focal,focal 0.5.12~ubuntu20.04.1 all [upgradable from: 0.5.11~ubuntu20.04.1
remove lutris and reinstall after the upgrade.
sudo apt remove lutris

回复

使用道具 举报

113

主题

46

回帖

680

积分

高级会员

积分
680
 楼主| 发表于 2025-12-17 14:43:29 | 显示全部楼层
root@localhost:~# sudo do-release-upgrade
Checking for a new Ubuntu release

= Welcome to Ubuntu 24.04 LTS 'Noble Numbat' =

The Ubuntu team is proud to announce Ubuntu 24.04 LTS 'Noble Numbat'.

To see what's new in this release, visit:
  https://wiki.ubuntu.com/NobleNumbat/ReleaseNotes

Ubuntu is a Linux distribution for your desktop or server, with a fast
and easy install, regular releases, a tight selection of excellent
applications installed by default, and almost any other software you
can imagine available through the network.

We hope you enjoy Ubuntu.

== Feedback and Helping ==

If you would like to help shape Ubuntu, take a look at the list of
ways you can participate at

  http://www.ubuntu.com/community/participate/

Your comments, bug reports, patches and suggestions will help ensure
that our next release is the best release of Ubuntu ever.  If you feel
that you have found a bug please read:

  http://help.ubuntu.com/community/ReportingBugs

Then report bugs using apport in Ubuntu.  For example:

  ubuntu-bug linux

will open a bug report in Launchpad regarding the linux package.

If you have a question, or if you think you may have found a bug but
aren't sure, first try asking on the #ubuntu or #ubuntu-bugs IRC
channels on Libera.Chat, on the Ubuntu Users mailing list, or on the
Ubuntu forums:

  http://help.ubuntu.com/community/InternetRelayChat
  http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
  http://www.ubuntuforums.org/


== More Information ==

You can find out more about Ubuntu on our website, IRC channel and wiki.
If you're new to Ubuntu, please visit:

  http://www.ubuntu.com/


To sign up for future Ubuntu announcements, please subscribe to Ubuntu's
very low volume announcement list at:

  http://lists.ubuntu.com/mailman/listinfo/ubuntu-announce


Continue [yN] y^H^Hy
Get:1 Upgrade tool signature [833 B]                                                                                                                                                                                          
Get:2 Upgrade tool [1,281 kB]                                                                                                                                                                                                  
Fetched 1,282 kB in 0s (0 B/s)                                                                                                                                                                                                
authenticate 'noble.tar.gz' against 'noble.tar.gz.gpg'
extracting 'noble.tar.gz'

Reading cache

Checking package manager

Continue running under SSH?

This session appears to be running under ssh. It is not recommended
to perform a upgrade over ssh currently because in case of failure it
is harder to recover.

If you continue, an additional ssh daemon will be started at port
'1022'.
Do you want to continue?

Continue [yN]
回复

使用道具 举报

113

主题

46

回帖

680

积分

高级会员

积分
680
 楼主| 发表于 2025-12-17 15:39:33 | 显示全部楼层
Starting additional sshd

To make recovery in case of failure easier, an additional sshd will
be started on port '1022'. If anything goes wrong with the running
ssh you can still connect to the additional one.
If you run a firewall, you may need to temporarily open this port. As
this is potentially dangerous it's not done automatically. You can
open the port with e.g.:
'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT'
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


QQ|Archiver|手机版|小黑屋|Bluetooth-UWB 联盟论坛 ( 京ICP备19003900号-5 )

GMT+8, 2026-1-24 05:54 , Processed in 0.016219 second(s), 28 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表