This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Have been unable to update for months.

Tags: None
(comma "," separated)
donniedice
Registered Member
Posts
8
Karma
0
I keep getting this error on all packages.
Code: Select all
(Unable to connect to 192.168.43.1:8080:)
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Hi!

That is a local address. Have a look at your DNS, /etc/hosts-file and eventually changed apt-config in /etc/apt.
donniedice
Registered Member
Posts
8
Karma
0
koffeinfriedhof wrote:Hi!

That is a local address. Have a look at your DNS, /etc/hosts-file and eventually changed apt-config in /etc/apt.



/etc/hosts - has this in it

Code: Select all
# Host addresses
127.0.0.1  localhost
127.0.1.1  laptop-satellites855
::1        localhost ip6-localhost ip6-loopback
ff02::1    ip6-allnodes
ff02::2    ip6-allrouters



/etc/apt/apt.config - has this in it

Code: Select all
Debug::pkgProblemResolver "true";
Acquire::Languages "none";
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
So its obviously not in /etc/hosts… What about the others like /etc/apt/sources.list{.d/*}?
donniedice
Registered Member
Posts
8
Karma
0
Ok.. so I found in- Network > Settings > Proxy - Use manual proxy was enabled and pointing at the local address. I'm hoping that turning on No Proxy will fix the error. I'll update here if it does.
donniedice
Registered Member
Posts
8
Karma
0
koffeinfriedhof wrote:So its obviously not in /etc/hosts… What about the others like /etc/apt/sources.list{.d/*}?


neon.list
and
neon.list.save

Both seem to have legit addresses.
Code: Select all
deb http://archive.neon.kde.org/user focal main
deb-src http://archive.neon.kde.org/user focal main


I'm going to reboot real fast after updating the proxy settings thing.
donniedice
Registered Member
Posts
8
Karma
0
Changing the proxy settings did not fix it. I'm still getting the same error :(

Extra info- Discovery freezes on fetching updates.

Image

This is contents of /apt/sources.list.d
Code: Select all
balena-etcher.list                       lutris-team-ubuntu-lutris-focal.list.save  nilarimogard-ubuntu-webupd8-focal.list
balena-etcher.list.save                  mono-official-stable.list                  osmoma-ubuntu-audio-recorder-focal.list
eddie.website.list                       mono-official-stable.list.save             osmoma-ubuntu-audio-recorder-focal.list.save
eddie.website.list.save                  nadaeck-ubuntu-spectrum3d-focal.list       preinstalled-pool.list
kisak-ubuntu-kisak-mesa-focal.list       nadaeck-ubuntu-spectrum3d-focal.list.save  preinstalled-pool.list.save
kisak-ubuntu-kisak-mesa-focal.list.save  neon.list                                  ubuntu-audio-dev-ubuntu-ppa-focal.list
lutris-team-ubuntu-lutris-focal.list     neon.list.save                             ubuntu-audio-dev-ubuntu-ppa-focal.list.save
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
First check your DNS and Proxy before proceeding with sources. The URL http://archive.neon.kde.org/user returns a permanent move to https://origin.archive.neon.kde.org/user/. Both should be accessible from your system before you can proceed.

How is your network set up? Any iptables rerouting besides the proxy stuff?
donniedice
Registered Member
Posts
8
Karma
0
koffeinfriedhof wrote:First check your DNS and Proxy before proceeding with sources. The URL http://archive.neon.kde.org/user returns a permanent move to https://origin.archive.neon.kde.org/user/. Both should be accessible from your system before you can proceed.

How is your network set up? Any iptables rerouting besides the proxy stuff?


I'm able to access both of those links in a web browser. I assume my iptables are normal.. vanilla. I have had a vpn installed but it's since been removed. (Eddie-ui the airvpn gui.)
As far as DNS goes, I don't have a specific DNS specified in network connection settings. It should be using the default ISP DNS. I've tried updated on multiple networks. (my old address was google fiber, my new address is comcast. I've been unable to update on either.)
Is there a way to reset iptables (without bricking my connection), just-in-case? I have ipv6 disabled and I can link the iptables for ipv4.

Code: Select all
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT ACCEPT
-N LIBVIRT_FWI
-N LIBVIRT_FWO
-N LIBVIRT_FWX
-N LIBVIRT_INP
-N LIBVIRT_OUT
-N ufw-after-forward
-N ufw-after-input
-N ufw-after-logging-forward
-N ufw-after-logging-input
-N ufw-after-logging-output
-N ufw-after-output
-N ufw-before-forward
-N ufw-before-input
-N ufw-before-logging-forward
-N ufw-before-logging-input
-N ufw-before-logging-output
-N ufw-before-output
-N ufw-logging-allow
-N ufw-logging-deny
-N ufw-not-local
-N ufw-reject-forward
-N ufw-reject-input
-N ufw-reject-output
-N ufw-skip-to-policy-forward
-N ufw-skip-to-policy-input
-N ufw-skip-to-policy-output
-N ufw-track-forward
-N ufw-track-input
-N ufw-track-output
-N ufw-user-forward
-N ufw-user-input
-N ufw-user-limit
-N ufw-user-limit-accept
-N ufw-user-logging-forward
-N ufw-user-logging-input
-N ufw-user-logging-output
-N ufw-user-output
-A INPUT -j LIBVIRT_INP
-A INPUT -j ufw-before-logging-input
-A INPUT -j ufw-before-input
-A INPUT -j ufw-after-input
-A INPUT -j ufw-after-logging-input
-A INPUT -j ufw-reject-input
-A INPUT -j ufw-track-input
-A FORWARD -j LIBVIRT_FWX
-A FORWARD -j LIBVIRT_FWI
-A FORWARD -j LIBVIRT_FWO
-A FORWARD -j ufw-before-logging-forward
-A FORWARD -j ufw-before-forward
-A FORWARD -j ufw-after-forward
-A FORWARD -j ufw-after-logging-forward
-A FORWARD -j ufw-reject-forward
-A FORWARD -j ufw-track-forward
-A OUTPUT -j LIBVIRT_OUT
-A OUTPUT -j ufw-before-logging-output
-A OUTPUT -j ufw-before-output
-A OUTPUT -j ufw-after-output
-A OUTPUT -j ufw-after-logging-output
-A OUTPUT -j ufw-reject-output
-A OUTPUT -j ufw-track-output
-A LIBVIRT_FWI -d 192.168.122.0/24 -o virbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A LIBVIRT_FWI -o virbr0 -j REJECT --reject-with icmp-port-unreachable
-A LIBVIRT_FWO -s 192.168.122.0/24 -i virbr0 -j ACCEPT
-A LIBVIRT_FWO -i virbr0 -j REJECT --reject-with icmp-port-unreachable
-A LIBVIRT_FWX -i virbr0 -o virbr0 -j ACCEPT
-A LIBVIRT_INP -i virbr0 -p udp -m udp --dport 53 -j ACCEPT
-A LIBVIRT_INP -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT
-A LIBVIRT_INP -i virbr0 -p udp -m udp --dport 67 -j ACCEPT
-A LIBVIRT_INP -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT
-A LIBVIRT_OUT -o virbr0 -p udp -m udp --dport 53 -j ACCEPT
-A LIBVIRT_OUT -o virbr0 -p tcp -m tcp --dport 53 -j ACCEPT
-A LIBVIRT_OUT -o virbr0 -p udp -m udp --dport 68 -j ACCEPT
-A LIBVIRT_OUT -o virbr0 -p tcp -m tcp --dport 68 -j ACCEPT
-A ufw-after-input -p udp -m udp --dport 137 -j ufw-skip-to-policy-input
-A ufw-after-input -p udp -m udp --dport 138 -j ufw-skip-to-policy-input
-A ufw-after-input -p tcp -m tcp --dport 139 -j ufw-skip-to-policy-input
-A ufw-after-input -p tcp -m tcp --dport 445 -j ufw-skip-to-policy-input
-A ufw-after-input -p udp -m udp --dport 67 -j ufw-skip-to-policy-input
-A ufw-after-input -p udp -m udp --dport 68 -j ufw-skip-to-policy-input
-A ufw-after-input -m addrtype --dst-type BROADCAST -j ufw-skip-to-policy-input
-A ufw-after-logging-forward -m limit --limit 3/min --limit-burst 10 -j LOG --log-prefix "[UFW BLOCK] "
-A ufw-after-logging-input -m limit --limit 3/min --limit-burst 10 -j LOG --log-prefix "[UFW BLOCK] "
-A ufw-before-forward -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-forward -p icmp -m icmp --icmp-type 3 -j ACCEPT
-A ufw-before-forward -p icmp -m icmp --icmp-type 11 -j ACCEPT
-A ufw-before-forward -p icmp -m icmp --icmp-type 12 -j ACCEPT
-A ufw-before-forward -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A ufw-before-forward -j ufw-user-forward
-A ufw-before-input -i lo -j ACCEPT
-A ufw-before-input -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-input -m conntrack --ctstate INVALID -j ufw-logging-deny
-A ufw-before-input -m conntrack --ctstate INVALID -j DROP
-A ufw-before-input -p icmp -m icmp --icmp-type 3 -j ACCEPT
-A ufw-before-input -p icmp -m icmp --icmp-type 11 -j ACCEPT
-A ufw-before-input -p icmp -m icmp --icmp-type 12 -j ACCEPT
-A ufw-before-input -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A ufw-before-input -p udp -m udp --sport 67 --dport 68 -j ACCEPT
-A ufw-before-input -j ufw-not-local
-A ufw-before-input -d 224.0.0.251/32 -p udp -m udp --dport 5353 -j ACCEPT
-A ufw-before-input -d 239.255.255.250/32 -p udp -m udp --dport 1900 -j ACCEPT
-A ufw-before-input -j ufw-user-input
-A ufw-before-output -o lo -j ACCEPT
-A ufw-before-output -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-output -j ufw-user-output
-A ufw-logging-allow -m limit --limit 3/min --limit-burst 10 -j LOG --log-prefix "[UFW ALLOW] "
-A ufw-logging-deny -m conntrack --ctstate INVALID -m limit --limit 3/min --limit-burst 10 -j RETURN
-A ufw-logging-deny -m limit --limit 3/min --limit-burst 10 -j LOG --log-prefix "[UFW BLOCK] "
-A ufw-not-local -m addrtype --dst-type LOCAL -j RETURN
-A ufw-not-local -m addrtype --dst-type MULTICAST -j RETURN
-A ufw-not-local -m addrtype --dst-type BROADCAST -j RETURN
-A ufw-not-local -m limit --limit 3/min --limit-burst 10 -j ufw-logging-deny
-A ufw-not-local -j DROP
-A ufw-skip-to-policy-forward -j DROP
-A ufw-skip-to-policy-input -j DROP
-A ufw-skip-to-policy-output -j ACCEPT
-A ufw-track-output -p tcp -m conntrack --ctstate NEW -j ACCEPT
-A ufw-track-output -p udp -m conntrack --ctstate NEW -j ACCEPT
-A ufw-user-input -p tcp -m tcp --dport 22 -j DROP
-A ufw-user-input -p tcp -m tcp --dport 5900 -j ACCEPT
-A ufw-user-input -p udp -m udp --dport 5900 -j ACCEPT
-A ufw-user-limit -m limit --limit 3/min -j LOG --log-prefix "[UFW LIMIT BLOCK] "
-A ufw-user-limit -j REJECT --reject-with icmp-port-unreachable
-A ufw-user-limit-accept -j ACCEPT
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Your iptables contain at least stuff for virtual machines. You could stop these services for testing and flush the iptables. If you are on a local and real machine, your router should protect you as it does not route traffic to client ports if not explicitly configured.

But: you should stay with your network settings as the above output seems to still take your proxy. How did you configure? NetworkManager? Check the available connections.
Code: Select all
resolvectl status  # shows current DNS
ip a  # shows configuration of all interfaces
ip r  # shows the routing
nmcli c show --active  # show connections managed by NetworkManager


If you got rid of the local proxy, show the output of
Code: Select all
sudo apt update && sudo apt full-upgrade && sudo apt autoremove
donniedice
Registered Member
Posts
8
Karma
0
You are correct, I am on a home network. I just use wifi to connect to the router.


I will try the above steps ASAP, and get back to the thread. As far as using apt for upgrade/update.. this laptop is running kde neon so it's suggested and almost required to do
Code: Select all
pkcon refresh
pkcon update

is that correct?
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
donniedice wrote:is that correct?

It is. But pkcon is just a wrapper for apt which is a wrapper/helper for dpkg. pkcon lacks some information, thats why I wanted the full output of the apt command. As Neon does not support updates, you must use full-upgrade. Thats why pkcon is recommended to not get in an inconsistent state with your packages.

If updating the lists fail, it won't do anything as && means "proceed only if the previous command succeeded".
So `apt-update && apt full-upgrade` means "get the package lists with current versions of deb-packages from all my sources and if this succeeded, perform a full upgrade"
donniedice
Registered Member
Posts
8
Karma
0
Ok, I fixed the issue.

What I did to fix the issue:

Installed Python.
Installed pip.
Installed apt-mirror-updater.
Went to
Code: Select all
.local/bin
and ran
Code: Select all
apt-mirror-updater --auto-change-mirror
.


Edit: Ran into more problems after update finished.

I was given a large on-screen keyboard, an odd looking login screen and was unable to login with an almost unreadable error on the screen (large txt). It said something about unable to load theme.

I did a ctrl+alt+f2 and login via tty console. did
Code: Select all
sudo pkcon update
and
Code: Select all
sudo apt-get update

it installed a few packages with breeze in their name

Rebooted and it worked.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, mickae, Sogou [Bot]