LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2017, 04:57 AM   #1
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 138

Rep: Reputation: Disabled
Updates and Package Management


Hello!

I've been using Linux for a while now but i still didn't fully understand how linux systems stay up to date and how package management in general works. I avoided messing around with it because all i've learned so far is that it's complicated and you can really mess up your system if you don't konw what you're doing.

Using Debian 8 i have configured unattended upgrades to check for updates daily. I also use apt allthough i mostly prefer working with gui to cli especially when i'm not certain wich, as said, is the case here. It has been working fine until now, the system searched for updates on a daily basis and updated wit the "Apper" software management tool if necessary.

Recently i got an error message saying that some data couldn't be fetched. I tried running
Code:
apt-get update
wich failed because some servers couldn't be reached, unfortunately I can't remember the exact output anymore.

when i ran
Code:
apt-get autoclean
it worked again without issues. This is the output right now:

Code:
root@desktop:/# apt-get update
Ign http://ftp.at.debian.org jessie InRelease
Get:1 http://ftp.at.debian.org jessie-updates InRelease [145 kB]                                    
Hit http://security.debian.org jessie/updates InRelease                                                                         
Hit http://ftp.at.debian.org jessie Release.gpg                                                                                 
Hit http://ftp.at.debian.org jessie Release                                                                                    
Hit http://security.debian.org jessie/updates/main Sources                                                                     
Hit http://dl.winehq.org jessie InRelease                                                                
Hit http://security.debian.org jessie/updates/main i386 Packages                                          
Hit http://http.debian.net jessie-backports InRelease                                                     
Get:2 http://ftp.at.debian.org jessie-updates/main Sources [15.4 kB]                     
Hit http://security.debian.org jessie/updates/main Translation-en                                 
Get:3 http://ftp.at.debian.org jessie-updates/main i386 Packages/DiffIndex [6,916 B]              
Get:4 http://ftp.at.debian.org jessie-updates/main Translation-en/DiffIndex [2,704 B]       
Hit http://dl.winehq.org jessie/main i386 Packages                                                            
Hit http://ftp.at.debian.org jessie/main Sources                                            
Hit http://ftp.at.debian.org jessie/main i386 Packages                
Hit http://ftp.at.debian.org jessie/main Translation-en                                      
Get:5 http://http.debian.net jessie-backports/main i386 Packages/DiffIndex [27.8 kB]         
Get:6 http://http.debian.net jessie-backports/main Translation-en/DiffIndex [27.8 kB]         
Ign http://dl.winehq.org jessie/main Translation-en_US                                                        
Ign http://dl.winehq.org jessie/main Translation-en
Fetched 226 kB in 8s (25.3 kB/s)                                                                                                                                                           
Reading package lists... Done
it seems fine but i'm worried because i'm not exactly sure what that error-message was about and the system hasn't updated in a few days. What should i do?

Thanks.

Last edited by platypo; 01-18-2017 at 05:03 AM.
 
Old 01-18-2017, 07:01 AM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,461

Rep: Reputation: 287Reputation: 287Reputation: 287
Hi.

It usually means one of your mirrors is down(/or being updated), causing your update process to stop for further investigation(unless specified differently).

My bet would be http://dl.winehq.org (being the only non-Debian repo you're fetching from).
If so, you can safely remove it from your auto-updates if it keeps causing issues.

PS: "apt-get autoclean" has no influence here (it only removes unnecessary packages).

Last edited by jens; 01-18-2017 at 08:20 AM.
 
Old 01-18-2017, 09:29 AM   #3
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 138

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jens View Post
Hi.

It usually means one of your mirrors is down(/or being updated), causing your update process to stop for further investigation(unless specified differently).

My bet would be http://dl.winehq.org (being the only non-Debian repo you're fetching from).
If so, you can safely remove it from your auto-updates if it keeps causing issues.

PS: "apt-get autoclean" has no influence here (it only removes unnecessary packages).
Thx. I think it was a domain with "debian" something, jessie-backports if i remember it correctly. Still no update today. I'm worried.
Yes i once had issues with updates because there was no space left and i needed ages to find this out.

If someone could tell me a way to make sure apt and the kde software update gui works properly i'd be very glad.

Last edited by platypo; 01-18-2017 at 09:31 AM.
 
Old 01-18-2017, 10:42 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by platypo View Post
Code:
root@desktop:/#
You GUI as root?

Quote:
Originally Posted by platypo View Post
If someone could tell me a way to make sure apt and the kde software update gui works properly i'd be very glad.
Type Update into your KDE menu as a non-root user.

https://help.ubuntu.com/community/AptGet/Howto
or
https://wiki.debian.org/Apt

Last edited by Habitual; 01-18-2017 at 10:45 AM.
 
Old 01-18-2017, 02:00 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,602

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
it looks like you are missing doing the most important command

"update" ONLY updates the DATABASE!!! not the system !!!

as a NORMAL user ( i use "su - " on debian )
Code:
su -

-- type in the root password --

apt-get update
apt-get upgrade 

--- then if needed ---

apt-get autoclean
 
Old 01-19-2017, 12:06 PM   #6
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 138

Original Poster
Rep: Reputation: Disabled
Thank you for the answers. Updates work fine again, it must have been a server issue.
 
Old 01-19-2017, 12:40 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Glad it worked out!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which package management system / distribution is the simplest to package for? Siljrath Linux - General 2 10-25-2014 08:08 PM
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 01:51 AM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
LXer: DistroWatch Weekly: Debian and Java, SUSE package management updates LXer Syndicated Linux News 0 06-12-2006 06:54 AM
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration