Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Sudo apt update/install not working [SOLVED]

Help for Current Versions of MX
Post Reply
User avatar
Droptable;
Forum Novice
Forum  Novice
Posts: 3
Joined: Sun Jun 23, 2019 10:50 am

Sudo apt update/install not working [SOLVED]

#1

Post by Droptable; » Sun Jun 23, 2019 11:01 am

2019-06-23-193821_1366x768_scrot.png
Sudo apt update doesn't work. Sudo apt search only shows packages that I have installed( this is just my assumption as whenever I tried to search for apps I haven't installed there's no search result). Can I get an explanation on this problem and how to fix it?

I'm running mx 18.3 with kernel 4.19.0 not sure if this info will help but I'll just include them.
You do not have the required permissions to view the files attached to this post.
Last edited by Droptable; on Mon Jun 24, 2019 8:56 am, edited 1 time in total.

User avatar
fehlix
Developer
Posts: 4942
Joined: Wed Apr 11, 2018 5:09 pm

Re: Sudo apt update/install not working

#2

Post by fehlix » Sun Jun 23, 2019 11:54 am

Droptable; wrote:
Sun Jun 23, 2019 11:01 am
Can I get an explanation on this problem and how to fix it?
Suggest to post text output instead of screenshots.
Anyway, the image indicates an error with an dibian mirror. So you can either wait until the mirror is working again,
or change the debian mirror using MX repo manager. If that doesn not change the debian mirror successfully.
You might try another in your region, e.g. Hong Kong, or Taiwan like this from the command line:

Code: Select all

sudo localize-repo -v hk

Code: Select all

sudo localize-repo -v tw
and run again:

Code: Select all

sudo apt update
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Droptable;
Forum Novice
Forum  Novice
Posts: 3
Joined: Sun Jun 23, 2019 10:50 am

Re: Sudo apt update/install not working

#3

Post by Droptable; » Sun Jun 23, 2019 12:37 pm

I have tried changing the Debian mirror with mx repo manager. It can't detect the fastest mirror. Sudo localize doesn't help.

Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication'
Connection failed
The repository does not have a release file.

If I decided to wait how long would it be?
Thanks

User avatar
fehlix
Developer
Posts: 4942
Joined: Wed Apr 11, 2018 5:09 pm

Re: Sudo apt update/install not working

#4

Post by fehlix » Sun Jun 23, 2019 12:46 pm

Droptable; wrote:
Sun Jun 23, 2019 12:37 pm
Sudo localize doesn't help.
Please explore, you can't change mirrors, it errors?
Droptable; wrote:
Sun Jun 23, 2019 12:37 pm
If I decided to wait how long would it be?
Not sure, how long debian mirrors need to recover?
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
asqwerth
Developer
Posts: 5181
Joined: Sun May 27, 2007 5:37 am

Re: Sudo apt update/install not working

#5

Post by asqwerth » Sun Jun 23, 2019 12:58 pm

You could open synaptic, go to settings >> repositories, and for all the enabled Debian repos, replace "sg" with"hk".

Then reload .
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
fehlix
Developer
Posts: 4942
Joined: Wed Apr 11, 2018 5:09 pm

Re: Sudo apt update/install not working

#6

Post by fehlix » Sun Jun 23, 2019 1:04 pm

asqwerth wrote:
Sun Jun 23, 2019 12:58 pm
You could open synaptic, go to settings >> repositories, and for all the enabled Debian repos, replace "sg" with"hk".
That's what this would do with one go:

Code: Select all

sudo localize-repo -v hk
But OP said, didn't help. Whatever that meant :alien:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
JBoman
Forum Regular
Forum Regular
Posts: 1348
Joined: Wed Jul 12, 2006 4:30 pm

Re: Sudo apt update/install not working

#7

Post by JBoman » Sun Jun 23, 2019 1:50 pm

Follow the instructions at the end of the terminal output you posted and you find the answers to your questions. Open a terminal and type man apt-secure :popcorn:
http://patentabsurdity.com/
AMD 64x2 2.6GHz 4GB ram MX-18.1 KDE regular updates
"beware a frequent flirt with potential disaster"

User avatar
Head_on_a_Stick
Forum Regular
Forum Regular
Posts: 492
Joined: Sun Mar 17, 2019 3:37 pm

Re: Sudo apt update/install not working

#8

Post by Head_on_a_Stick » Sun Jun 23, 2019 2:28 pm

Try the Debian redirector instead:

Code: Select all

sudo sed 's/ftp.sg/deb/' -i /etc/apt/sources.list.d/debian{,-stable-updates}.list
sudo apt update
To reverse the effects of the sed command run it again with 's/deb/ftp.sg/' instead.
"Direct action is the logical, consistent method of anarchism." — Emma Goldman

User avatar
Droptable;
Forum Novice
Forum  Novice
Posts: 3
Joined: Sun Jun 23, 2019 10:50 am

Re: Sudo apt update/install not working

#9

Post by Droptable; » Mon Jun 24, 2019 2:23 am

Sorry @fehlix it turns out I mistyped something earlier. When I tried sudo localized again it works. Thank you for your help

User avatar
Paul..
Global Moderator
Posts: 2691
Joined: Sun Mar 18, 2007 6:34 pm

Re: Sudo apt update/install not working

#10

Post by Paul.. » Mon Jun 24, 2019 6:54 am

Please edit the subject of your first post and add [SOLVED]. Thanks!

Asus Prime X470-Pro | AMD Ryzen 5 1400 (8 threads)
16 Gig DDR4 3000 | nVidia - GeForce GTX 750 Ti
Samsung 970 NVMe SSD | 860 500GB SSD

Post Reply

Return to “MX Help”