Feel free to correct me if I was mistaken, but I guess we are talking about two network services which is networkd
and NetworkManager
.
As I understood, Ubuntu Server uses networkd
to manage and NetworkManager
stay disable, but Cockpit utilizes NetworkManager to do his magic.
I just did a Ubuntu Server 21.10 fresh install, installed Cockpit, and the issue continues.
So, the solution is simple:
- Configure NetworkManager properly.
- Configure networkd to use NetworkManager.
NetworkManager
uses /etc/network/interfaces for the interfaces, /etc/NetworkManager/NetworkManager.conf for the main config and have the suit of commands like nmcli and nmtui.
networkd
uses /etc/netplan/*.yaml for the interfaces config and I don’t know much about it
The step-by-step
First, I create the interface’s file for my two ethernet cards enp2s0 and enp3s0 with static IP address. This can be different for you.
$ sudo nano /etc/network/interfaces
auto lo
iface lo inet loopbackallow-hotplug enp3s0 enp2s0
iface enp3s0 inet static
address 192.168.25.3/24
gateway 192.168.25.1iface enp2s0 inet static
address 192.168.25.30/24
gateway 192.168.25.1
Would be like this if those NICs was getting a dynamic address
auto lo enp3s0 enp2s0
iface lo inet loopback
iface enp2s0 inet dhcp
iface enp3s0 inet dhcp
Than, I edited NetworkManager to manage those NICs
$ sudo nano /etc/NetworkManager/NetworkManager.conf
[ifupdown]
managed=true
Second, I created a file called 50-cloud-init.yaml and removed the file 00-installer-config.yaml that already exists, but I guess it could be the same. As I understood, when we tell to networkd to renderer with NetworkManager, any other entry is ignored.
$ sudo nano /etc/netplan/50-cloud-init.yaml
network:
version: 2
renderer: NetworkManager
After that, try, generate and apply this config
$ sudo netplan try
$ sudo netplan generate
$ sudo netplan apply
At the end, I restarted the NetworkManager service.
$ sudo systemctl restart NetworkManager
This did the job for me =D
Содержание
- «Cannot refresh cache whilst offline» error on raspberry pi 4 ( running raspberry pi os) #16333
- Comments
- Cannot refresh cache whilst offline #15694
- Comments
- Discover: Cannot refresh cache whilst offline
- plasma-discover «cannot refresh cache whilst offline»
- Bug Description
- MX Linux Forum
- Can not update/refresh cache while offline
- Can not update/refresh cache while offline
- Re: Can not update/refresh cache while offline
- Re: Can not update/refresh cache while offline
- Re: Can not update/refresh cache while offline
- Re: Can not update/refresh cache while offline
«Cannot refresh cache whilst offline» error on raspberry pi 4 ( running raspberry pi os) #16333
Cockpit version: 188.
OS: raspberry pi os ( raspbian gnu/linux 10 (buster))
Application tab not working error ‘cannot download package whilst offline’
Software updates tab also shows error
‘Loading available update failed cannot refresh cache whilst offline’
Steps to reproduce
1.fresh install raspberry pi os
2.use wpa supplicant file to add wifi
3. Install cockpit
4. Navigate to application tab
5. Click refresh (error pops up)
6. Navigate to software updates tab
7. Error 2 pops up
The text was updated successfully, but these errors were encountered:
Cockpit 188 is quite old.
This is a known problem and happens if NetworkManger is not used. For some reason it is required that at least one inferface is managed by NetworkManager.
I see you’re using Raspberry Pi OS.
It’s Debian based, so most backports work (after you add the backports line and signing key), but I also have a Pi 1 running Raspberry Pi OS and tried the backport version of Cockpit on it. and it doesn’t work for whatever reason. (I think the Debian backport of Cockpit needs newer versions of systemd and perhaps other libraries which aren’t pulled in by default when upgrading using backports. I didn’t venture further.)
As Raspberry Pi OS is not 64-bit, but the Pi 4 itself is, it may make sense to switch to Debian, Ubuntu, or Fedora on the Pi 4. (I’m running Fedora 34 on my Pi 4. Previously, it was running Ubuntu. Both are great.) A side effect would be a much newer version of Cockpit. While this would be better in the long run, it would require setting everything up again.
Or, an easier approach: You could wait for Raspberry Pi OS to upgrade to using Debian 11 as its base, which should be happening soon (but there’s no word as to when. many people thought it would’ve happened already). This should make a newer version of Cockpit available to you. (It will still be pretty old, however. Just not that ancient. Backports might work or might not, as it would still be a mix of what RPi OS and Debian provide. Even though waiting for Pi OS 11 might be easier, it still would be better to switch to a different distribution.)
Источник
Cannot refresh cache whilst offline #15694
Cockpit version: 239
OS: Debian Bullseye
Page: Network, General
I have a problem using Cockpit and/or Debian Bullseye with OpenvSwitch. One of the problems (‘Cannot refresh cache whilst offline’ during package refresh) seems to be related to not having NetworkManager controlling the main interface?
I started setting up a small NAS with Debian Buster and Cockpit which I wanted to use to host a small number of virtual servers at home (it has just become a few too much Raspberry Pis’).
I started trying with a standard Linux bridge but ran into problems when needing to support VLANs for the virtual servers. I then found OpenvSwitch which made setting up KVM with the virtual servers an easy and quick thing.
The only drawback found is, that when using OpenvSwitch, the network connections are not handled by NetworkManager.
I tried but didn’t find a solution to have NetworkManager handle my internal interface on the OVS bridge (the one my host uses). Setting it up in /etc/network/interfaces gave my IPv4 and IPv6 connection, eventhough resolv.conf and some of the router advertisements are not working properly.
I found that I can live with that until I have a solution but then the problem with the not working any more package updates popped up. And that is annoying.
Ain’t there a way to
- fix the package update problem somehow (I wonder what configuration made package updates depending on NetworkManager)
- or even better get NetworkManager to take controll over the OVS bridge interface?
Any help welcome.
The text was updated successfully, but these errors were encountered:
Источник
Discover: Cannot refresh cache whilst offline
У меня возникла такая странная проблема с Дискавером: почему-то он не может подключиться к интернету.
У меня провод, и ни с чем другим, кроме фронтендов для апта проблем не возникает.
Я попробовал ещё воспользоваться Gnome Software Center, та же самая проблема.
Эти приложения как-то по-особому подключаются к интернету? Что им может не нравиться?
Вот бы детальный лог ошибки сюда.
Я что-то не могу найти, как получить его. Если подскажите, будет супер
Понятия не имею. Я сталкивался только с проблемой, когда APT «блокировал» скачивание программ через Discover, сообщение об ошибке выводилось прямо на экран, и не было связано с интернетом. Вряд ли твоя проблема связана с сетью, т.к. Discover всего-лишь графический интерфейс над APT.
Кстати, это может быть связано с отключением ipv6? Просто там был какой-то баг в Стиме, что с ним не работало, поэтому отключил. Надо попробовать, наверно. Всё равно это всё довольно странно. Сам apt работает вообще без нареканий, даже виджет «Обновление ПО» спокойно делает apt update. muon (поставил, чтобы проверить) тоже работает без проблем.
Не знаю, я IPv6 сам никогда и нигде не использовал.
У discover (plasma-discover в моём случае) есть древний баг — он привязан к network-manager и к сетевым интерфейсам. У меня ноутбук и соответственно интерфейса два. После того как я WiFi потушил — получил точно такую же ошибку, хотя проводное соединение при этом работает. Если включить WiFi обратно и подцепить к сети то всё начинает обратно работать. Я уже плюнул — через apt как раньше стал обновляться.
А не могли бы вы написать в багтрекер KDE? Это бы очень помогло.
Источник
plasma-discover «cannot refresh cache whilst offline»
Affects | Status | Importance | Assigned to | Milestone |
---|---|---|---|---|
Plasma Discover |
Bug Description
I am unable to install regular packages from Ubuntu repositories through Plasma Discover front end, throwing the error «no network connection available» It’s also unable to search and install updates throwing the error «cannot refresh cache whilst offline» at startup.
However, snaps install just fine, and I can also install packages through apt or Synaptic package manager.
Ubuntu release:
Description: Ubuntu Impish Indri (development branch)
Release: 21.10
Package name:
plasma-discover:
Instalado: 5.22.5-0ubuntu1
Candidato: 5.22.5-0ubuntu1
Tabela de Versão:
*** 5.22.5-0ubuntu1 500
500 http:// pt.archive. ubuntu. com/ubuntu impish/universe amd64 Packages
100 /var/lib/ dpkg/status
What I expected to happen:
Discover is able to search and apply for updates and install regular Ubuntu packages
What happened instead:
Discover cannot search for updates and install regular Ubuntu packages for apparently not detecting network connection.
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: plasma-discover 5.22.5-0ubuntu1
ProcVersionSign ature: Ubuntu 5.13.0- 16.16-generic 5.13.13
Uname: Linux 5.13.0-16-generic x86_64
NonfreeKernelMo dules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu69
Architecture: amd64
CasperMD5CheckR esult: pass
CurrentDesktop: KDE
Date: Sat Sep 25 03:14:45 2021
InstallationDate: Installed on 2021-09-24 (0 days ago)
InstallationMedia: Kubuntu 21.10 «Impish Indri» — Beta amd64 (20210924)
SourcePackage: plasma-discover
UpgradeStatus: No upgrade log present (probably fresh install)
SUMMARY
«Cannot refresh cache whilst offline» — except I’m not offline, obviously since I’m filing this report.
STEPS TO REPRODUCE
1. Click the icon indicating updates are available in the task bar
2. Click ‘check for updates’.
3. Notice it gives an error message and does nothing of any use.
System is the latest Ubuntu ‘eoan’, though this bug has been around for a long time.
My system’s network is configured via systemd/networkd as is indicated in /etc/netplan.
I don’t use the network manager for anything. This bug appears whether the disused network-manager is enabled or disabled in systemd, or is running or not running.
SOFTWARE/OS VERSIONS
Windows:
macOS:
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version:
KDE Frameworks Version:
Qt Version:
Источник
MX Linux Forum
Support for MX and antiX Linux distros
Forum users
- Please read this before asking for help, and don’t forget to add Quick System Info to help requests!
- Please follow the Forum Rules
Current releases
— MX-21 release info here
— Migration information to MX-21 here
— antiX-21 (Grup Yorum) release info here
News
— MX Linux on social media: here
— New Forum Features, Marking Solved and Referencing a User: here
Can not update/refresh cache while offline
Can not update/refresh cache while offline
#1 Post by rdroid » Thu Aug 25, 2022 9:03 pm
In discover and any other GUI package installer program like synaptics, they all have an error when refreshing the catalog and while trying to install any package.
Thank you for your time and help!
Re: Can not update/refresh cache while offline
#2 Post by Eadwine Rose » Thu Aug 25, 2022 9:23 pm
Re: Can not update/refresh cache while offline
#3 Post by Huckleberry Finn » Thu Aug 25, 2022 10:13 pm
Re: Can not update/refresh cache while offline
#4 Post by rdroid » Fri Aug 26, 2022 12:20 am
The issue is that (I’M ONLINE). I can ping, view web pages (not just things that are cached) It loads the catalog lists but when it is finished it holds back the update list and gives the error that ‘you cannot update whilst offline’. -Updates are the only thing affected.
Error from Discover — ‘Cannot refresh cache whilst offline’ (Ive never been able to browse the ‘addons and apps within discover, have always been able to update through it though, until now.
Error from Synaptic — ‘ The repository ‘http://deb.debian.org/debian bullseye-security Release’ does not have a Release file’
sudo apt update output in Terminal:
$ sudo apt update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org bullseye-security InRelease
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease
Get:4 http://mxrepo.com/mx/repo bullseye InRelease [19.8 kB]
Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
Ign:6 http://deb.debian.org/debian bullseye-security InRelease
Get:7 http://mxrepo.com/mx/repo bullseye/main amd64 Packages [323 kB]
Err:8 http://deb.debian.org/debian bullseye-security Release
404 Not Found [IP: 2a04:4e42:66::644 80]
Get:9 http://mxrepo.com/mx/repo bullseye/main i386 Packages [316 kB]
Get:10 http://mxrepo.com/mx/repo bullseye/main amd64 Contents (deb) [2,100 kB]
Get:11 http://mxrepo.com/mx/repo bullseye/main i386 Contents (deb) [2,012 kB]
Reading package lists. 3%
Reading package lists. Done
E: The repository ‘http://deb.debian.org/debian bullseye-security Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Thanks in advance, again!
Re: Can not update/refresh cache while offline
#5 Post by Stevo » Fri Aug 26, 2022 4:22 am
Источник
I am unable to install regular packages from Ubuntu repositories through Plasma Discover front end, throwing the error «no network connection available» It’s also unable to search and install updates throwing the error «cannot refresh cache whilst offline» at startup.
However, snaps install just fine, and I can also install packages through apt or Synaptic package manager.
From what I gather after a google search, it’s a conflict between packagekit and networkmanager on Ubuntu. Some relevant bug reports I found
https://bugs.kde.org/show_bug.cgi?id=412834
https://github.com/blue-systems/plasma-issues/issues/225
https://github.com/PackageKit/PackageKit/issues/336
Ubuntu release:
Description: Ubuntu Impish Indri (development branch)
Release: 21.10
Package name:
plasma-discover:
Instalado: 5.22.5-0ubuntu1
Candidato: 5.22.5-0ubuntu1
Tabela de Versão:
*** 5.22.5-0ubuntu1 500
500 http://pt.archive.ubuntu.com/ubuntu impish/universe amd64 Packages
100 /var/lib/dpkg/status
What I expected to happen:
Discover is able to search and apply for updates and install regular Ubuntu packages
What happened instead:
Discover cannot search for updates and install regular Ubuntu packages for apparently not detecting network connection.
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: plasma-discover 5.22.5-0ubuntu1
ProcVersionSignature: Ubuntu 5.13.0-16.16-generic 5.13.13
Uname: Linux 5.13.0-16-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu69
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Sat Sep 25 03:14:45 2021
InstallationDate: Installed on 2021-09-24 (0 days ago)
InstallationMedia: Kubuntu 21.10 «Impish Indri» — Beta amd64 (20210924)
SourcePackage: plasma-discover
UpgradeStatus: No upgrade log present (probably fresh install)
-
arcee49
- Posts: 2
- Joined: Wed Jun 19, 2019 10:51 pm
Error updating package data — Cannot refresh cache whilst offline
Just installed a new version of Full Raspbian on my RP 3 B+. I ran a sudo apt-get update and sudo apt-get dist-upgrade. (I’m not sure how to check what version of the distribution I’m running.)
When I run Recommended Software (in the Preferences menu) I see it working and it says «Updating package data — please wait». Then it quickly shows the error in the subject of the post: «Error updating package data — Cannot refresh cache whilst offline». All I can do is click «OK».
I am definitely online via the ethernet port NOT Wi-Fi. I can access the web via the browser and had no trouble getting the upgrades from the apt-get commands. I’m at a loss as to why this won’t work and can’t find anything online about it.
-
robwri99
- Posts: 6
- Joined: Sun Sep 01, 2019 7:26 pm
Re: Error updating package data — Cannot refresh cache whilst offline
Thu Mar 12, 2020 9:53 am
I am getting this problem in March 2019, on a new install of raspbian. It is most irritating, i hope somebody can give some pointers, some magic code, as I do not have a clue!
-
rpdom
- Posts: 21217
- Joined: Sun May 06, 2012 5:17 am
- Location: Chelmsford, Essex, UK
Re: Error updating package data — Cannot refresh cache whilst offline
Thu Mar 12, 2020 10:22 am
robwri99 wrote: ↑
Thu Mar 12, 2020 9:53 am
I am getting this problem in March 2019, on a new install of raspbian. It is most irritating, i hope somebody can give some pointers, some magic code, as I do not have a clue!
I’ll assume you meant 2020 there
Can you try the following command. Then post back the exact responses from that command.
Hopefully you will see some useful error messages which can help us track down the problem.
Unreadable squiggle
-
robwri99
- Posts: 6
- Joined: Sun Sep 01, 2019 7:26 pm
Re: Error updating package data — Cannot refresh cache whilst offline
Thu Mar 12, 2020 4:23 pm
Ok so I had tried that already, and it simply gives the following output; Whenever I try to go to the ‘Recommended Software’ under the preferences menu, it give the «cannot update cache while offline» error. Output from terminal now follows. Given that I am online, on the Pi right now, it cannot be that I am offline!
pi@raspberrypi:~ $ sudo apt update
Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Fetched 15.0 kB in 1s (20.0 kB/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
-
robwri99
- Posts: 6
- Joined: Sun Sep 01, 2019 7:26 pm
Re: Error updating package data — Cannot refresh cache whilst offline
Thu Mar 12, 2020 4:39 pm
Thank you for correcting date! and thank you for attempts to help. I did not have this problem on a previous SD card, I have heard some people say it could be problem with card, but it was a new, sandisk, 12o gb card, and I copied the official image. There is much contradictory, and frankly indecipherable information online!
-
fruitoftheloom
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: Error updating package data — Cannot refresh cache whilst offline
Thu Mar 12, 2020 5:04 pm
robwri99 wrote: ↑
Thu Mar 12, 2020 4:39 pm
Thank you for correcting date! and thank you for attempts to help. I did not have this problem on a previous SD card, I have heard some people say it could be problem with card, but it was a new, sandisk, 12o gb card, and I copied the official image. There is much contradictory, and frankly indecipherable information online!
Did you test your 120GB SD Card is not a Fake ??
Take what I advise as advice not the utopian holy grail, and it is gratis !!
-
rpdom
- Posts: 21217
- Joined: Sun May 06, 2012 5:17 am
- Location: Chelmsford, Essex, UK
Re: Error updating package data — Cannot refresh cache whilst offline
Thu Mar 12, 2020 5:33 pm
robwri99 wrote: ↑
Thu Mar 12, 2020 4:23 pm
Ok so I had tried that already, and it simply gives the following output; Whenever I try to go to the ‘Recommended Software’ under the preferences menu, it give the «cannot update cache while offline» error. Output from terminal now follows. Given that I am online, on the Pi right now, it cannot be that I am offline!pi@raspberrypi:~ $ sudo apt update
Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Fetched 15.0 kB in 1s (20.0 kB/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
That appears to be perfectly normal. No problems there. Very odd. I don’t know what to suggest at this stage.
Unreadable squiggle
-
robwri99
- Posts: 6
- Joined: Sun Sep 01, 2019 7:26 pm
Re: Error updating package data — Cannot refresh cache whilst offline
Thu Mar 12, 2020 5:38 pm
Do you think it could be to do with the image i made the OS from? — i used balena etcher, but i see from the Raspbian site that they have their own dowloadable app for making cards now. The only modifications I have made are themes! Thanks again for your relpy!
-
rpdom
- Posts: 21217
- Joined: Sun May 06, 2012 5:17 am
- Location: Chelmsford, Essex, UK
Re: Error updating package data — Cannot refresh cache whilst offline
Thu Mar 12, 2020 6:07 pm
No. Etcher is fine to use for writing the image to the card. Up until the new Image Writer being release it was the recommended tool for the job.
However it does sound like something has gone wrong with the «Recommended Software» option.
I don’t currently have a Pi running a desktop, so I can’t check where that file would be or which package it might be in.
Unreadable squiggle
-
litserv
- Posts: 1
- Joined: Fri Mar 20, 2020 9:34 pm
Re: Error updating package data — Cannot refresh cache whilst offline
Fri Mar 20, 2020 9:54 pm
I face the same problem.
New SD-Card, wellknown brand.
Internet-connection tested.
Update fails, either using the GUI or terminal: «Error updating …»
Was geholfen hat: Das — von Joy-IT für den JoyPi Experimentierkoffer bereitgestellte — neueste Image für den Raspi 4 vom Januar 2020 lässt zu wenig Speicherplatz für ein solches Update übrig. Im Terminal muss über raspi-config der nutzbare Speicher vergrößert werden. In meinem Fall auf die SD-Card mit 32 GB. Danach lief das Update durch.
-
pcmanbob
- Posts: 13356
- Joined: Fri May 31, 2013 9:28 pm
- Location: Mansfield UK
Re: Error updating package data — Cannot refresh cache whilst offline
Sat Mar 21, 2020 9:52 am
litserv wrote: ↑
Fri Mar 20, 2020 9:54 pm
I face the same problem.
New SD-Card, wellknown brand.
Internet-connection tested.
Update fails, either using the GUI or terminal: «Error updating …»Was geholfen hat: Das — von Joy-IT für den JoyPi Experimentierkoffer bereitgestellte — neueste Image für den Raspi 4 vom Januar 2020 lässt zu wenig Speicherplatz für ein solches Update übrig. Im Terminal muss über raspi-config der nutzbare Speicher vergrößert werden. In meinem Fall auf die SD-Card mit 32 GB. Danach lief das Update durch.
Hi.
Then I suggest you do the same as suggested above and post the results of
So we can see what errors it returns
We want information… information… information……………………no information no help
The use of crystal balls & mind reading are not supported
-
DougieLawson
- Posts: 42328
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: Error updating package data — Cannot refresh cache whilst offline
Sat Mar 21, 2020 10:35 am
robwri99 wrote: ↑
Thu Mar 12, 2020 5:19 pm
how does one do that? i bought it from Tescos?
You can usually assume that cards from high street supermarkets are always genuine. To test the veracity of that get H2TESTW installed on your Windows laptop. https://www.softpedia.com/get/System/Sy … estw.shtml
You need to be sure that your laptop has an SDXC compatible slot (laptops older than about 5 years old may not have that).
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors — are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Return to “Troubleshooting”
Welcome!
Forum users
- Please read this before asking for help, and don’t forget to add Quick System Info to help requests!
- Please follow the Forum Rules
Current releases
—MX-21 release info here
—Migration information to MX-21 here
—antiX-21 (Grup Yorum) release info here
Important information
—If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the
login screen there is a session chooser at the top of the screen.
News
— MX Linux on social media: here
— New Forum Features, Marking Solved and Referencing a User: here
-
rdroid
- Posts: 2
- Joined: Tue Aug 23, 2022 2:52 pm
Can not update/refresh cache while offline
#1
Post
by rdroid » Thu Aug 25, 2022 9:03 pm
In discover and any other GUI package installer program like synaptics, they all have an error when refreshing the catalog and while trying to install any package.
Thank you for your time and help!
-
Eadwine Rose
- Administrator
- Posts: 15417
- Joined: Wed Jul 12, 2006 6:10 am
Re: Can not update/refresh cache while offline
#2
Post
by Eadwine Rose » Thu Aug 25, 2022 9:23 pm
Please post your Quick System Info and the message you see. Thanks.
MX-21.3_x64 Oct20 ’21 * 5.10.0-20-amd64 ext4 Xfce 4.18.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 470.161.03 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
-
rdroid
- Posts: 2
- Joined: Tue Aug 23, 2022 2:52 pm
Re: Can not update/refresh cache while offline
#4
Post
by rdroid » Fri Aug 26, 2022 12:20 am
The issue is that (I’M ONLINE). I can ping, view web pages (not just things that are cached) It loads the catalog lists but when it is finished it holds back the update list and gives the error that ‘you cannot update whilst offline’. -Updates are the only thing affected.
Error from Discover — ‘Cannot refresh cache whilst offline’ (Ive never been able to browse the ‘addons and apps within discover, have always been able to update through it though, until now.
Error from Synaptic — ‘ The repository ‘http://deb.debian.org/debian bullseye-security Release’ does not have a Release file’
Code: Select all
System: Kernel: 5.17.0-3mx-amd64 [5.17.11-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: BOOT_IMAGE=/boot/vmlinuz-5.17.0-3mx-amd64
root=UUID=<filter> ro quiet splash
Desktop: KDE Plasma 5.20.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 7 dm: LightDM 1.26.0
Distro: MX-21.1_x64 Wildflower April 9 2022 base: Debian GNU/Linux 11 (bullseye)
Machine: Type: Laptop System: Dell product: Precision 7720 v: N/A serial: <filter> Chassis:
type: 10 serial: <filter>
Mobo: Dell model: 0P41F4 v: A00 serial: <filter> UEFI: Dell v: 1.23.1 date: 12/15/2021
Battery: ID-1: BAT0 charge: 88.3 Wh (100.0%) condition: 88.3/91.0 Wh (97.0%) volts: 12.7
min: 11.4 model: Samsung SDI DELL TWCPGF1 type: Li-poly serial: <filter> status: Full
CPU: Info: Quad Core model: Intel Core i7-6820HQ bits: 64 type: MT MCP arch: Skylake-S
family: 6 model-id: 5E (94) stepping: 3 microcode: F0 cache: L2: 8 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 43198
Speed: 2687 MHz min/max: 800/2700 MHz Core speeds (MHz): 1: 2687 2: 2686 3: 2688
4: 2657 5: 2679 6: 2688 7: 2680 8: 2687
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort mitigation: TSX disabled
Graphics: Device-1: Intel HD Graphics 530 vendor: Dell driver: i915 v: kernel bus-ID: 00:02.0
chip-ID: 8086:191b class-ID: 0300
Device-2: NVIDIA GM107GLM [Quadro M1200 Mobile] vendor: Dell driver: N/A
alternate: nvidia bus-ID: 01:00.0 chip-ID: 10de:13b6 class-ID: 0300
Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-11:7
chip-ID: 0c45:6717 class-ID: 0e02
Display: x11 server: X.Org 1.20.14 compositor: kwin_x11 driver: loaded: modesetting
unloaded: fbdev,vesa display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: eDP-1 res: 1920x1080 dpi: 128 size: 381x214mm (15.0x8.4")
diag: 437mm (17.2")
OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 22.0.5
direct render: Yes
Audio: Device-1: Intel CM238 HD Audio vendor: Dell driver: snd_hda_intel v: kernel
bus-ID: 00:1f.3 chip-ID: 8086:a171 class-ID: 0403
Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX] driver: snd_hda_intel
v: kernel bus-ID: 01:00.1 chip-ID: 10de:0fbc class-ID: 0403
Sound Server-1: ALSA v: k5.17.0-3mx-amd64 running: yes
Sound Server-2: PulseAudio v: 14.2 running: yes
Sound Server-3: PipeWire v: 0.3.19 running: no
Network: Device-1: Intel Ethernet I219-LM vendor: Dell driver: e1000e v: kernel port: f040
bus-ID: 00:1f.6 chip-ID: 8086:15e3 class-ID: 0200
IF: eth0 state: down mac: <filter>
Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter vendor: Dell
driver: ath10k_pci v: kernel modules: wl port: e000 bus-ID: 03:00.0 chip-ID: 168c:003e
class-ID: 0280
IF: wlan0 state: up mac: <filter>
Bluetooth: Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-6:4
chip-ID: 0cf3:e007 class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 2 state: down bt-service: N/A rfk-block:
hardware: no software: yes address: <filter>
Info: acl-mtu: 1024:8 sco-mtu: 50:8 link-policy: rswitch hold sniff
link-mode: slave accept
Drives: Local Storage: total: 238.47 GiB used: 47.6 GiB (20.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: TeamGroup model: TM8FP6256G size: 238.47 GiB
block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD
serial: <filter> rev: EDFM90.0 temp: 37.9 C scheme: GPT
Partition: ID-1: / raw-size: 230.22 GiB size: 225.54 GiB (97.97%) used: 47.6 GiB (21.1%) fs: ext4
dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
dev: /dev/nvme0n1p1 maj-min: 259:1
Swap: Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors: System Temperatures: cpu: 45.0 C mobo: N/A
Fan Speeds (RPM): cpu: 1997 fan-2: 2011
Repos: Packages: 3419 note: see --pkg apt: 3386 lib: 1715 flatpak: 33
Active apt repos in: /etc/apt/sources.list
1: deb http://security.debian.org/ bullseye-security non-free main contrib
2: deb http://deb.debian.org/debian/ bullseye non-free main
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://deb.debian.org/debian/ bullseye contrib
2: deb http://deb.debian.org/debian/ bullseye-security main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://mxrepo.com/mx/repo/ bullseye main non-free
2: deb http://mxrepo.com/mx/repo/ bullseye ahs
No active apt repos in: /etc/apt/sources.list.d/teamviewer.list
Info: Processes: 283 Uptime: 7h 17m wakeups: 7 Memory: 15.46 GiB used: 4.03 GiB (26.1%)
Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1
alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06
Boot Mode: UEFI
sudo apt update output in Terminal:
@Precision7720:~
$ sudo apt update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org bullseye-security InRelease
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease
Get:4 http://mxrepo.com/mx/repo bullseye InRelease [19.8 kB]
Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
Ign:6 http://deb.debian.org/debian bullseye-security InRelease
Get:7 http://mxrepo.com/mx/repo bullseye/main amd64 Packages [323 kB]
Err:8 http://deb.debian.org/debian bullseye-security Release
404 Not Found [IP: 2a04:4e42:66::644 80]
Get:9 http://mxrepo.com/mx/repo bullseye/main i386 Packages [316 kB]
Get:10 http://mxrepo.com/mx/repo bullseye/main amd64 Contents (deb) [2,100 kB]
Get:11 http://mxrepo.com/mx/repo bullseye/main i386 Contents (deb) [2,012 kB]
Reading package lists… 3%
Reading package lists… Done
E: The repository ‘http://deb.debian.org/debian bullseye-security Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Thanks in advance, again!
-
Stevo
- Developer
- Posts: 23865
- Joined: Sat Dec 16, 2006 12:07 am
Re: Can not update/refresh cache while offline
#5
Post
by Stevo » Fri Aug 26, 2022 4:22 am
MX doesn’t have any repos in sources.list by default—it’s an empty file and all the repos are in neatly labeled files in /etc/apt/sources.list/d, as shown in the repo part of Quick System Info.
Somehow, sources.list has had a duplicate main Debian repo entry added, plus an incorrect security repo that would still be a duplicate if it were correct.
Code: Select all
Active apt repos in: /etc/apt/sources.list
1: deb http://security.debian.org/ bullseye-security non-free main contrib
2: deb http://deb.debian.org/debian/ bullseye non-free main
You can remove the incorrect repos in MX Repo Manager, or delete the offending file and recreate it as empty—the MX shipped version has some text that says what our policy is, but it works without it.
Code: Select all
#this file is empty by default. Sources are under /etc/apt/souces.list.d
And the fixit command
Code: Select all
sudo rm /etc/apt/sources.list & touch /etc/apt/sources.list