Fetch errors after mintupdate-debian upgrade

deb http://debian.linuxmint.com/latest testing main contrib non-free
deb-src http://debian.linuxmint.com/latest testing main contrib non-free
Forum rules
Before you post please read this

Fetch errors after mintupdate-debian upgrade

Postby mikecz on Fri Sep 14, 2012 6:34 pm

I'm on LMDE XFCE, and I just loaded an update to mintupdate-debian (v 1.0.6 according to Synaptic). During the apply step, I got a dialog that asked me to point to a repository, with 3 choices (in France, USA and Germany). I chose the USA, but after that whenever I ran Update Manager I got a fetch error (too long to include here).

I restored the old /etc/apt/sources.list file and deleted the one that was added, but I did compare them and they didn't look any different.

I have been patiently waiting for UP5 to hit the Latest repository, but I want to make sure that I'm pointing to the correct set of repositories so I get the update properly, and it is amazingly unclear on what the 'Latest' repository file should be from what I've seen.

This is my /etc/apt/sources.list file, just so its clear:

deb http://packages.linuxmint.com/‭ ‬debian main upstream import
deb http://debian.linuxmint.com/latest testing main contrib non-free
deb http://debian.linuxmint.com/latest/security/‭ ‬testing/updates main contrib non-free
deb http://debian.linuxmint.com/latest/multimedia testing main non-free

Any help would be appreciated: I like LMDE, but it updates so infrequently that I forget the finer points when something comes down and breaks.

MikeC
mikecz
Level 2
Level 2
 
Posts: 74
Joined: Sat Jun 11, 2011 5:14 pm

Linux Mint is funded by ads and donations.
 

Re: Fetch errors after mintupdate-debian upgrade

Postby zerozero on Fri Sep 14, 2012 7:36 pm

you don't have by any change the deleted faulty source.list to compare? that, yes would be very useful :D
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6493
Joined: Tue Jul 07, 2009 2:29 pm

Re: Fetch errors after mintupdate-debian upgrade

Postby mikecz on Fri Sep 14, 2012 9:12 pm

zerozero wrote:you don't have by any change the deleted faulty source.list to compare? that, yes would be very useful :D


No, alas, though I did a cursory side-by-side visual comparison and I didn't see any differences (but for some reason I always have trouble parsing the sources.list files in my head).

Unfortunately, I had rm'ed the file before I remembered about diff.... :oops:

Sorry,

MikeC
mikecz
Level 2
Level 2
 
Posts: 74
Joined: Sat Jun 11, 2011 5:14 pm

Re: Fetch errors after mintupdate-debian upgrade

Postby zerozero on Sat Sep 15, 2012 5:36 am

MikeC,
are you willing to perform an experiment for us? :D
now that you have the original sources.list in place can you please run in terminal
Code: Select all
mint-choose-debian-mirror
this will rerun mint-debian-mirrors and will ask you to pick the best server, after that finishes give us the output of
Code: Select all
inxi -r

much appreciated
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6493
Joined: Tue Jul 07, 2009 2:29 pm

Re: Fetch errors after mintupdate-debian upgrade

Postby mikecz on Sat Sep 15, 2012 9:29 am

zerozero wrote:MikeC,
are you willing to perform an experiment for us? :D
now that you have the original sources.list in place can you please run in terminal
Code: Select all
mint-choose-debian-mirror
this will rerun mint-debian-mirrors and will ask you to pick the best server, after that finishes give us the output of
Code: Select all
inxi -r

much appreciated


Output of mint-choose-debian-mirror:

Code: Select all

Current server: http://debian.linuxmint.com/ (latest)

Server http://debian.linuxmint.com - 14Kbps
Server http://mirror.rts-informatique.fr/linuxmint/debian - 52Kbps
Server http://debian.lth.se/lmde - 38Kbps
Best server: http://mirror.rts-informatique.fr/linuxmint/debian
Selected server: http://debian.linuxmint.com
Saving old /etc/apt/sources.list in /etc/apt/sources.list.bk
Updating /etc/apt/sources.list


When I ran this command, each line came up in turn, and it eventually came up with a text screen that gave me a choice of servers that looked an awful lot like what came up (in graphical/X form) when I first applied the mintupdate-debian update.

And now I get the same fetch error again, and here is the capturable text in the box:

Code: Select all
W: Failed to fetch http://debian.linuxmint.comlatest/dists/testing/InRelease 

W: Failed to fetch http://debian.linuxmint.comlatest/security/dists/testing/updates/InRelease 

W: Failed to fetch http://debian.linuxmint.comlatest/multimedia/dists/testing/InRelease 

W: Failed to fetch http://debian.linuxmint.comlatest/dists/testing/Release.gpg  Could not resolve 'debian.linuxmint.comlatest'

W: Failed to fetch http://debian.linuxmint.comlatest/security/dists/testing/updates/Release.gpg  Could not resolve 'debian.linuxmint.comlatest'

W: Failed to fetch http://debian.linuxmint.comlatest/multimedia/dists/testing/Release.gpg  Could not resolve 'debian.linuxmint.comlatest'

W: Some index files failed to download. They have been ignored, or old ones used instead.


Output of inxi -r:

Code: Select all
 Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://packages.linuxmint.com/ debian main upstream import
           deb http://debian.linuxmint.comlatest testing main contrib non-free
           deb http://debian.linuxmint.comlatest/security/ testing/updates main contrib non-free
           deb http://debian.linuxmint.comlatest/multimedia testing main non-free


Though it took doing a diff between the old & new files for me to see it, it looks like the script-generated sources.list file has a bug in it that omits a / in the URLs in the last 3 lines. when I corrected them, Mintupdate-debian worked fine.

I told you I had a blind spot where sources.list was.... ;-)

And please spell my last name correctly on the bug fix list..... ;-)

MikeC
mikecz
Level 2
Level 2
 
Posts: 74
Joined: Sat Jun 11, 2011 5:14 pm

Re: Fetch errors after mintupdate-debian upgrade

Postby zerozero on Sat Sep 15, 2012 6:33 pm

mikecz,
as i kinda suspected :shock: same bug as here http://forums.linuxmint.com/viewtopic.php?f=185&t=112047&p=628421#p628381
i'm going to link this topic in that one to give it more visibility.
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6493
Joined: Tue Jul 07, 2009 2:29 pm

Re: Fetch errors after mintupdate-debian upgrade

Postby mikecz on Sat Sep 15, 2012 11:48 pm

zerozero wrote:mikecz,
as i kinda suspected :shock: same bug as here http://forums.linuxmint.com/viewtopic.php?f=185&t=112047&p=628421#p628381
i'm going to link this topic in that one to give it more visibility.


Glad to to my tiny little part.

Now, if only UP5 would go live on Latest, this will be a good week.. :D

MikeC
mikecz
Level 2
Level 2
 
Posts: 74
Joined: Sat Jun 11, 2011 5:14 pm

Re: Fetch errors after mintupdate-debian upgrade

Postby m4daredsun on Sun Sep 16, 2012 8:58 am

zerozero wrote:mikecz,
as i kinda suspected :shock: same bug as here http://forums.linuxmint.com/viewtopic.php?f=185&t=112047&p=628421#p628381
i'm going to link this topic in that one to give it more visibility.


So I guess we should wait before updating mintupdate.
Is this correct?
The only limiting factor of the Linux operating system is its user - Linus Torvalds
User avatar
m4daredsun
Level 2
Level 2
 
Posts: 83
Joined: Thu Mar 04, 2010 5:31 pm

Re: Fetch errors after mintupdate-debian upgrade

Postby squeezy on Sun Sep 16, 2012 9:24 am

m4daredsun wrote:So I guess we should wait before updating mintupdate.
Is this correct?


Just make a backup copy of your sources.list file then do the update. If you have a problem afterwards you simply replace sources.list with your good backup copy. That way you can report on success or failure.

I updated mintupdate-debian yesterday and it worked just fine. Probability is that yours will too, but if you get a failure it's easy to fix and you supply another data point towards resolution of the bug.

It's this easy to do...

Backup your current working sources file.
Code: Select all
sudo cp /etc/apt/sources.list /etc/apt/sources.list.good


Do the update and test (update method left to your choice). If it works fine, you're done.
If you get failures as noted above, do this (to preserve the evidence ;) ).
Code: Select all
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bad


Restore the good file.
Code: Select all
sudo cp /etc/apt/sources.list.good /etc/apt/sources.list


Bonus is now you have a copy of your working sources.list file in case of future problems :D
squeezy
Level 5
Level 5
 
Posts: 567
Joined: Thu Feb 23, 2012 2:05 pm
Location: The Land of Enchantment

Re: Fetch errors after mintupdate-debian upgrade

Postby clem on Tue Sep 18, 2012 5:32 am

Wow... that one was tricky :)

First of all, thanks for your feedback. Basically we're looking at two bugs here... special characters within the source file prevented the script from parsing it well... and in some cases the current server would contain a / and the selected one wouldn't.. leading to a missing / in the resulting sources.list.

Both bugs were fixed in mint-debian-mirrors 2012.09.18.
Image
User avatar
clem
Level 15
Level 15
 
Posts: 5580
Joined: Wed Nov 15, 2006 8:34 am

Re: Fetch errors after mintupdate-debian upgrade

Postby mikecz on Tue Sep 18, 2012 11:45 pm

Wow, a reply from clem himself! I feel honoured.

So, UP5 finally went live, and something strange happened during the applying (aside from it taking 4+ hours to download everything): the mint-choose-debian-mirror script only showed 2 mirrors, and since I prefer the main one (debian.linuxmint.com), I hit 'cancel', and that bombed out the setup script for Mint-Update. I don't think it stopped anything being installed, however.

I had to re-install the mint-choose-debian-mirror package to get it to work properly after the update finished, but it still doesn't list the main mirror as a choice, only the other two.

That, and there is no description of UP5 in "Update Pack Info", so I'd like to know how to refresh that.

MikeC
mikecz
Level 2
Level 2
 
Posts: 74
Joined: Sat Jun 11, 2011 5:14 pm

Linux Mint is funded by ads and donations.
 

Return to Linux Mint Debian Latest

Who is online

Users browsing this forum: No registered users and 1 guest