<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>beer planet &#187; broken</title> <atom:link href="http://beerpla.net/tag/broken/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Thu, 17 May 2012 22:50:53 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/> <item><title>How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</title><link>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/</link> <comments>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/#comments</comments> <pubDate>Sun, 21 Mar 2010 10:42:10 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[broken]]></category> <category><![CDATA[comment]]></category> <category><![CDATA[count]]></category> <category><![CDATA[database]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[incorrect]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[query]]></category> <category><![CDATA[sql]]></category> <category><![CDATA[wp_comments]]></category> <category><![CDATA[wp_posts]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/</guid> <description><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/517e9e45d3fa_2C92/image.png" width="222" height="189" /></p><h2>Introduction</h2><p>If your WordPress comment counts got messed up, whether because of a plugin (I&#039;m talking about you, DISQUS) or you messed with your database manually and did something wrong (yup, that&#039;s what I just did), fear not &#8211; I have a solution for you.</p><p>But first, a little background.</p><h2>Comment Counts In WordPress</h2><p>Here&#039;s how comment counts work in WP:</p><ul><li>Posts live in a table called <strong><em>wp_posts</em></strong> and each has an ID.</li><li>Comments reside in a table called <strong><em>wp_comments</em></strong>, each referring to an ID in wp_posts.</li><li>However, to make queries faster, the comment count is also cached in the wp_posts table, rather than getting calculated on every page load. <br
/>If this count ever gets out of sync with</li>...<div
class=clear></div> <a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></ul>]]></description> <content:encoded><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/517e9e45d3fa_2C92/image.png" width="222" height="189" /></p><h2>Introduction</h2><p>If your WordPress comment counts got messed up, whether because of a plugin (I&#039;m talking about you, DISQUS) or you messed with your database manually and did something wrong (yup, that&#039;s what I just did), fear not &#8211; I have a solution for you.</p><p>But first, a little background.</p><h2>Comment Counts In WordPress</h2><p>Here&#039;s how comment counts work in WP:</p><ul><li>Posts live in a table called <strong><em>wp_posts</em></strong> and each has an ID.</li><li>Comments reside in a table called <strong><em>wp_comments</em></strong>, each referring to an ID in wp_posts.</li><li>However, to make queries faster, the comment count is also cached in the wp_posts table, rather than getting calculated on every page load. <br
/>If this count ever gets out of sync with the actual number of comments for some reason, WordPress, while still displaying all comments properly, will simply show the wrong count.</li></ul><h2>How To Find Out Which Posts Are Out Of Sync</h2><p>Fire up a MySQL shell or your favorite MySQL software (mine is <a
href="http://www.navicat.com" rel="nofollow">Navicat</a>) and run this query.</p><p>It assumes your database is called <strong><em>wordpress</em></strong> and the prefix is <strong><em>wp_</em></strong>, so adjust those accordingly.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre>SELECT wpp.id, wpp.post_title, wpp.comment_count, wpc.cnt
FROM wordpress.wp_posts wpp
LEFT JOIN
(SELECT comment_post_id AS c_post_id, count(*) AS cnt FROM wordpress.wp_comments
 WHERE comment_approved = 1 GROUP BY comment_post_id) wpc
ON wpp.id=wpc.c_post_id
WHERE wpp.post_type IN ('post', 'page')
      AND (wpp.comment_count!=wpc.cnt OR (wpp.comment_count != 0 AND wpc.cnt IS NULL));</pre></td></tr></table></div></p><p>The result of this query is a list of posts whose comment_counts differ from the actual number of comments associated with each of them.</p><p>The left count is the cached number, while the right one is the right one.</p><h2>How To Fix The Counts Automatically</h2><p><div
class="note"><div
class="notewarning">Please make a backup of your database before performing any altering queries such as the one below (I recommend mysqldump or the <a
href="http://lesterchan.net/wordpress/readme/wp-dbmanager.html" rel="nofollow">WP-DBManager plugin</a>).</div></div></p><p>The following query will recalculate and fix the comment counts for all posts that are out of sync (ones we just queried for above):</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td
class="code"><pre>UPDATE wordpress.wp_posts wpp
LEFT JOIN
(SELECT comment_post_id AS c_post_id, count(*) AS cnt FROM wordpress.wp_comments
 WHERE comment_approved = 1 GROUP BY comment_post_id) wpc
ON wpp.id=wpc.c_post_id
SET wpp.comment_count=wpc.cnt
WHERE wpp.post_type IN ('post', 'page')
      AND (wpp.comment_count!=wpc.cnt OR (wpp.comment_count != 0 AND wpc.cnt IS NULL));</pre></td></tr></table></div><p>I tested this approach on a few test cases but if you experience any problems, please do alert me in the comments and desribe your problem.</p><p>Happy WP hacking!</p><div
class='post_blob_1'>Online <a
href="http://www.test-king.com/exams/642-892.htm">642-892</a> training is the quickest way to pass <a
href="http://www.test-king.com/exams/642-642.htm">642-642</a> as well as <a
href="http://www.test-king.com/exams/640-863.htm">640-863</a> exams.</div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Diagnose%20And%20Fix%20Incorrect%20Post%20Comment%20Counts%20In%20Wordpress&amp;link=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;notes=%0D%0AIntroduction%0D%0AIf%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%0D%0ABut%20first%2C%20a%20little%20background.%0D%0AComment&amp;short_link=http://bit.ly/cYF2ks&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/" rel="bookmark" title="January 5, 2010">How To Fix Intermittent MySQL Errcode 13 Errors On Windows</a></li><li><a
href="http://beerpla.net/2008/04/16/mysql-conference-liveblogging-mysql-performance-under-a-microscope-the-tobias-and-jay-show-wednesday-200pm/" rel="bookmark" title="April 16, 2008">MySQL Conference Liveblogging: MySQL Performance Under A Microscope: The Tobias And Jay Show (Wednesday 2:00PM)</a></li><li><a
href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-explain-demystified-tuesday-200p/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: EXPLAIN Demystified (Tuesday 2:00PM)</a></li><li><a
href="http://beerpla.net/2009/05/11/mysql-deletingupdating-rows-common-to-2-tables-speed-and-slave-lag-considerations/" rel="bookmark" title="May 11, 2009">[MySQL] Deleting/Updating Rows Common To 2 Tables &#8211; Speed And Slave Lag Considerations</a></li><li><a
href="http://beerpla.net/2008/03/25/navicat-for-mysql-bugs-filed/" rel="bookmark" title="March 25, 2008">Navicat For MySQL Bugs Filed</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F03%2F21%2Fhow-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress%2F&amp;title=How%20To%20Diagnose%20And%20Fix%20Incorrect%20Post%20Comment%20Counts%20In%20WordPress" id="wpa2a_2"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/feed/</wfw:commentRss> <slash:comments>22</slash:comments> </item> <item><title>The Repositories For apt-get In SUSE 10.2</title><link>http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/</link> <comments>http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/#comments</comments> <pubDate>Tue, 10 Jul 2007 06:18:32 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[apt]]></category> <category><![CDATA[apt-get]]></category> <category><![CDATA[broken]]></category> <category><![CDATA[mirror]]></category> <category><![CDATA[obsolete]]></category> <category><![CDATA[sources.list]]></category> <guid
isPermaLink="false">http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/</guid> <description><![CDATA[<p>So today I was looking for a proper sources.list file that would work for apt-get in SUSE 10.2 since the one in yast and smart repositories comes with a broken list. And by broken I mean completely f***ed.</p><div
class="wp_syntax"><div
class="code"><pre>apt-get update
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386 release
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Get:1 ftp://ftp4.gwdg.de SuSE/10.2-i386 release
Ign ftp://ftp4.gwdg.de SuSE/10.2-i386 release
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/base pkglist
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/base release
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/update pkglist
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Get:1 ftp://ftp4.gwdg.de SuSE/10.2-i386/base pkglist
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/update release
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Err ftp://ftp4.gwdg.de SuSE/10.2-i386/base pkglist
Unable to fetch file, server said 'Failed to open file.  '
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/security pkglist
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Get:2 ftp://ftp4.gwdg.de SuSE/10.2-i386/base release
Err </pre></div>...<div
class=clear></div> <a
href="http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></div>]]></description> <content:encoded><![CDATA[<p>So today I was looking for a proper sources.list file that would work for apt-get in SUSE 10.2 since the one in yast and smart repositories comes with a broken list. And by broken I mean completely f***ed.</p><div
class="wp_syntax"><div
class="code"><pre>apt-get update
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386 release
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Get:1 ftp://ftp4.gwdg.de SuSE/10.2-i386 release
Ign ftp://ftp4.gwdg.de SuSE/10.2-i386 release
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/base pkglist
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/base release
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/update pkglist
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Get:1 ftp://ftp4.gwdg.de SuSE/10.2-i386/base pkglist
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/update release
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Err ftp://ftp4.gwdg.de SuSE/10.2-i386/base pkglist
Unable to fetch file, server said 'Failed to open file.  '
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/security pkglist
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Get:2 ftp://ftp4.gwdg.de SuSE/10.2-i386/base release
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/security release
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Ign ftp://ftp4.gwdg.de SuSE/10.2-i386/base release
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/rpmkeys pkglist
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Get:3 ftp://ftp4.gwdg.de SuSE/10.2-i386/update pkglist
Err ftp://mirrors.mathematik.uni-bielefeld.de SuSE/10.2-i386/rpmkeys release
Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Err ftp://ftp4.gwdg.de SuSE/10.2-i386/update pkglist
Unable to fetch file, server said 'Failed to open file.  '
Get:4 ftp://ftp4.gwdg.de SuSE/10.2-i386/update release
Ign ftp://ftp4.gwdg.de SuSE/10.2-i386/update release
Get:5 ftp://ftp4.gwdg.de SuSE/10.2-i386/security pkglist
Err ftp://ftp4.gwdg.de SuSE/10.2-i386/security pkglist
Unable to fetch file, server said 'Failed to open file.  '
Get:6 ftp://ftp4.gwdg.de SuSE/10.2-i386/security release
Ign ftp://ftp4.gwdg.de SuSE/10.2-i386/security release
Get:7 ftp://ftp4.gwdg.de SuSE/10.2-i386/rpmkeys pkglist
Err ftp://ftp4.gwdg.de SuSE/10.2-i386/rpmkeys pkglist
Unable to fetch file, server said 'Failed to open file.  '
Get:8 ftp://ftp4.gwdg.de SuSE/10.2-i386/rpmkeys release
Ign ftp://ftp4.gwdg.de SuSE/10.2-i386/rpmkeys release
Failed to fetch ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/10.2-i386/base/release  Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Failed to fetch ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/10.2-i386/base/pkglist.base  Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Failed to fetch ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/10.2-i386/base/release.base  Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Failed to fetch ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/10.2-i386/base/pkglist.update  Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Failed to fetch ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/10.2-i386/base/release.update  Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Failed to fetch ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/10.2-i386/base/pkglist.security  Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Failed to fetch ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/10.2-i386/base/release.security  Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Failed to fetch ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/10.2-i386/base/pkglist.rpmkeys  Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Failed to fetch ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/10.2-i386/base/release.rpmkeys  Could not resolve 'mirrors.mathematik.uni-bielefeld.de'
Failed to fetch ftp://ftp4.gwdg.de/pub/linux/suse/apt/SuSE/10.2-i386/base/pkglist.base  Unable to fetch file, server said 'Failed to open file.  '
Failed to fetch ftp://ftp4.gwdg.de/pub/linux/suse/apt/SuSE/10.2-i386/base/pkglist.update  Unable to fetch file, server said 'Failed to open file.  '
Failed to fetch ftp://ftp4.gwdg.de/pub/linux/suse/apt/SuSE/10.2-i386/base/pkglist.security  Unable to fetch file, server said 'Failed to open file.  '
Failed to fetch ftp://ftp4.gwdg.de/pub/linux/suse/apt/SuSE/10.2-i386/base/pkglist.rpmkeys  Unable to fetch file, server said 'Failed to open file.  '</pre></div></div><p>The easiest solution is to download and install the rpms from <a
href="ftp://ftp5.gwdg.de/pub/opensuse/repositories/home%3A/rbos/openSUSE_10.2/i586/">ftp://ftp5.gwdg.de/pub/opensuse/repositories/home%3A/rbos/openSUSE_10.2/i586/</a> instead, which come with the correct sources.list as pointed to by this post. Here it is (with the additional sources uncommented):</p><div
class="wp_syntax"><div
class="code"><pre># A very basic sources.list file.
#
# Fastest repository comes first, with netselect it is possible to determine
# the fastest repository easily.
&nbsp;
repomd http://ftp-1.gwdg.de/pub/suse/i386 update/10.2
repomd http://ftp-1.gwdg.de/pub/opensuse/distribution 10.2/repo/oss/suse
&nbsp;
# Visit http://software.opensuse.org/download/ to determine which additional
# components are available.  Some examples are given below, just uncomment
# the line to enable it.
&nbsp;
repomd ftp://ftp-1.gwdg.de/pub/opensuse/repositories home:/rbos/openSUSE_10.2
repomd ftp://ftp-1.gwdg.de/pub/opensuse/repositories KDE:/KDE3/openSUSE_10.2
repomd ftp://ftp-1.gwdg.de/pub/opensuse/repositories KDE:/Backports/openSUSE_10.2
repomd ftp://ftp-1.gwdg.de/pub/opensuse/repositories KDE:/Playground/openSUSE_10.2
repomd ftp://ftp-1.gwdg.de/pub/opensuse/repositories mozilla/openSUSE_10.2
repomd ftp://ftp-1.gwdg.de/pub/opensuse/repositories openSUSE:/Tools/openSUSE_10.2
repomd ftp://ftp.gwdg.de/pub/linux/misc              packman/suse/10.2
&nbsp;
# The apt format
# rpm ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/ @ftp_dir@ base update security rpmkeys
# rpm ftp://ftp4.gwdg.de/pub/linux/suse/apt/ @ftp_dir@ base update security rpmkeys</pre></div></div><p>Updating this list produces a much nicer result:</p><div
class="wp_syntax"><div
class="code"><pre>apt update
Get:1 http://ftp-1.gwdg.de update/10.2 repomd.xml [1231B]
Get:2 http://ftp-1.gwdg.de 10.2/repo/oss/suse repomd.xml [951B]
Get:3 ftp://ftp-1.gwdg.de home:/rbos/openSUSE_10.2 repomd.xml [951B]
Get:4 ftp://ftp.gwdg.de packman/suse/10.2 repomd.xml [951B]
Get:5 ftp://ftp-1.gwdg.de KDE:/KDE3/openSUSE_10.2 repomd.xml [951B]
Get:6 ftp://ftp-1.gwdg.de KDE:/Backports/openSUSE_10.2 repomd.xml [951B]
Get:7 ftp://ftp-1.gwdg.de KDE:/Playground/openSUSE_10.2 repomd.xml [951B]
Get:8 ftp://ftp-1.gwdg.de mozilla/openSUSE_10.2 repomd.xml [951B]
Get:9 ftp://ftp-1.gwdg.de openSUSE:/Tools/openSUSE_10.2 repomd.xml [951B]
Fetched 8839B in 8s (1059B/s)
Get:1 http://ftp-1.gwdg.de update/10.2/ primary.xml [724kB]
Get:2 ftp://ftp-1.gwdg.de home:/rbos/openSUSE_10.2/ primary.xml [28.8kB]
Get:3 ftp://ftp.gwdg.de packman/suse/10.2/ primary.xml [2286kB]
Get:4 ftp://ftp-1.gwdg.de home:/rbos/openSUSE_10.2/ filelists.xml [46.5kB]
Get:5 http://ftp-1.gwdg.de update/10.2/ filelists.xml [4061kB]
Get:6 ftp://ftp-1.gwdg.de KDE:/KDE3/openSUSE_10.2/ primary.xml [112kB]
Get:7 ftp://ftp-1.gwdg.de KDE:/KDE3/openSUSE_10.2/ filelists.xml [1212kB]
Get:8 ftp://ftp.gwdg.de packman/suse/10.2/ filelists.xml [3021kB]
Get:9 ftp://ftp-1.gwdg.de KDE:/Backports/openSUSE_10.2/ primary.xml [174kB]
Get:10 ftp://ftp-1.gwdg.de KDE:/Backports/openSUSE_10.2/ filelists.xml [445kB]
Get:11 http://ftp-1.gwdg.de 10.2/repo/oss/suse/ primary.xml [6272kB]
Get:12 ftp://ftp-1.gwdg.de KDE:/Playground/openSUSE_10.2/ primary.xml [16.7kB]
Get:13 ftp://ftp-1.gwdg.de KDE:/Playground/openSUSE_10.2/ filelists.xml [39.0kB]
Get:14 ftp://ftp-1.gwdg.de mozilla/openSUSE_10.2/ primary.xml [22.8kB]
Get:15 ftp://ftp-1.gwdg.de mozilla/openSUSE_10.2/ filelists.xml [339kB]
Get:16 ftp://ftp-1.gwdg.de openSUSE:/Tools/openSUSE_10.2/ primary.xml [6095B]
Get:17 ftp://ftp-1.gwdg.de openSUSE:/Tools/openSUSE_10.2/ filelists.xml [14.5kB]
Get:18 http://ftp-1.gwdg.de 10.2/repo/oss/suse/ filelists.xml [12.4MB]
Fetched 31.2MB in 1m18s (400kB/s)
Reading Package Lists... Done
Building Dependency Tree... Done</pre></div></div><p>Now we got a working apt for SUSE 10.2.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=The+Repositories+For+apt-get+In+SUSE+10.2&amp;link=http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/&amp;notes=So%20today%20I%20was%20looking%20for%20a%20proper%20sources.list%20file%20that%20would%20work%20for%20apt-get%20in%20SUSE%2010.2%20since%20the%20one%20in%20yast%20and%20smart%20repositories%20comes%20with%20a%20broken%20list.%20And%20by%20broken%20I%20mean%20completely%20f%2A%2A%2Aed.%0D%0A%0D%0Aapt-get%20update%0D%0AErr%20ftp%3A%2F%2Fmirrors.mathematik.uni-bielefeld.de%20SuSE%2F10.2-i386%20release%0D%0ACould&amp;short_link=http://bit.ly/bIVooB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=The+Repositories+For+apt-get+In+SUSE+10.2&amp;link=http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/&amp;notes=So%20today%20I%20was%20looking%20for%20a%20proper%20sources.list%20file%20that%20would%20work%20for%20apt-get%20in%20SUSE%2010.2%20since%20the%20one%20in%20yast%20and%20smart%20repositories%20comes%20with%20a%20broken%20list.%20And%20by%20broken%20I%20mean%20completely%20f%2A%2A%2Aed.%0D%0A%0D%0Aapt-get%20update%0D%0AErr%20ftp%3A%2F%2Fmirrors.mathematik.uni-bielefeld.de%20SuSE%2F10.2-i386%20release%0D%0ACould&amp;short_link=http://bit.ly/bIVooB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=The+Repositories+For+apt-get+In+SUSE+10.2&amp;link=http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/&amp;notes=So%20today%20I%20was%20looking%20for%20a%20proper%20sources.list%20file%20that%20would%20work%20for%20apt-get%20in%20SUSE%2010.2%20since%20the%20one%20in%20yast%20and%20smart%20repositories%20comes%20with%20a%20broken%20list.%20And%20by%20broken%20I%20mean%20completely%20f%2A%2A%2Aed.%0D%0A%0D%0Aapt-get%20update%0D%0AErr%20ftp%3A%2F%2Fmirrors.mathematik.uni-bielefeld.de%20SuSE%2F10.2-i386%20release%0D%0ACould&amp;short_link=http://bit.ly/bIVooB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=The+Repositories+For+apt-get+In+SUSE+10.2&amp;link=http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/&amp;notes=So%20today%20I%20was%20looking%20for%20a%20proper%20sources.list%20file%20that%20would%20work%20for%20apt-get%20in%20SUSE%2010.2%20since%20the%20one%20in%20yast%20and%20smart%20repositories%20comes%20with%20a%20broken%20list.%20And%20by%20broken%20I%20mean%20completely%20f%2A%2A%2Aed.%0D%0A%0D%0Aapt-get%20update%0D%0AErr%20ftp%3A%2F%2Fmirrors.mathematik.uni-bielefeld.de%20SuSE%2F10.2-i386%20release%0D%0ACould&amp;short_link=http://bit.ly/bIVooB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=The+Repositories+For+apt-get+In+SUSE+10.2&amp;link=http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/&amp;notes=So%20today%20I%20was%20looking%20for%20a%20proper%20sources.list%20file%20that%20would%20work%20for%20apt-get%20in%20SUSE%2010.2%20since%20the%20one%20in%20yast%20and%20smart%20repositories%20comes%20with%20a%20broken%20list.%20And%20by%20broken%20I%20mean%20completely%20f%2A%2A%2Aed.%0D%0A%0D%0Aapt-get%20update%0D%0AErr%20ftp%3A%2F%2Fmirrors.mathematik.uni-bielefeld.de%20SuSE%2F10.2-i386%20release%0D%0ACould&amp;short_link=http://bit.ly/bIVooB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=The+Repositories+For+apt-get+In+SUSE+10.2&amp;link=http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/&amp;notes=So%20today%20I%20was%20looking%20for%20a%20proper%20sources.list%20file%20that%20would%20work%20for%20apt-get%20in%20SUSE%2010.2%20since%20the%20one%20in%20yast%20and%20smart%20repositories%20comes%20with%20a%20broken%20list.%20And%20by%20broken%20I%20mean%20completely%20f%2A%2A%2Aed.%0D%0A%0D%0Aapt-get%20update%0D%0AErr%20ftp%3A%2F%2Fmirrors.mathematik.uni-bielefeld.de%20SuSE%2F10.2-i386%20release%0D%0ACould&amp;short_link=http://bit.ly/bIVooB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=The+Repositories+For+apt-get+In+SUSE+10.2&amp;link=http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/&amp;notes=So%20today%20I%20was%20looking%20for%20a%20proper%20sources.list%20file%20that%20would%20work%20for%20apt-get%20in%20SUSE%2010.2%20since%20the%20one%20in%20yast%20and%20smart%20repositories%20comes%20with%20a%20broken%20list.%20And%20by%20broken%20I%20mean%20completely%20f%2A%2A%2Aed.%0D%0A%0D%0Aapt-get%20update%0D%0AErr%20ftp%3A%2F%2Fmirrors.mathematik.uni-bielefeld.de%20SuSE%2F10.2-i386%20release%0D%0ACould&amp;short_link=http://bit.ly/bIVooB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=The%20Repositories%20For%20apt-get%20In%20SUSE%2010.2&amp;link=http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/&amp;notes=So%20today%20I%20was%20looking%20for%20a%20proper%20sources.list%20file%20that%20would%20work%20for%20apt-get%20in%20SUSE%2010.2%20since%20the%20one%20in%20yast%20and%20smart%20repositories%20comes%20with%20a%20broken%20list.%20And%20by%20broken%20I%20mean%20completely%20f%2A%2A%2Aed.%0D%0A%0D%0Aapt-get%20update%0D%0AErr%20ftp%3A%2F%2Fmirrors.mathematik.uni-bielefeld.de%20SuSE%2F10.2-i386%20release%0D%0ACould&amp;short_link=http://bit.ly/bIVooB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/" rel="bookmark" title="May 18, 2009">How To Fix Redrawing Problems In Your VNC</a></li><li><a
href="http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/" rel="bookmark" title="December 26, 2006">Linux openSUSE 10.2 Learning Experience #1: Introduction</a></li><li><a
href="http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/" rel="bookmark" title="April 22, 2008">Do NOT Use This Perl Module: Passwd::Unix</a></li><li><a
href="http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/" rel="bookmark" title="March 26, 2008">Setting Up A MySQL Cluster</a></li><li><a
href="http://beerpla.net/2011/05/06/how-to-fix-error_not_found-0x80070490-during-windows-7-sp1-installation/" rel="bookmark" title="May 6, 2011">How To Fix ERROR_NOT_FOUND 0&#215;80070490 During Windows 7 SP1 Installation</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2007%2F07%2F09%2Fthe-repositories-for-apt-get-in-suse-102%2F&amp;title=The%20Repositories%20For%20apt-get%20In%20SUSE%2010.2" id="wpa2a_4"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
