Fórum Root.cz
		Hlavní témata => Distribuce => Téma založeno: scientific  30. 04. 2019, 07:34:39
		
			
			- 
				Ahoj prosím o radu, nejde mi úspěšně vykonat příkaz "apt-get update" server se tváří, jako kdyby neměl přístup k internetu, ale normálně ho pingnu odkudkoliv, dokonce se k němu připojuji pře SSH. Byly tam expirované apt GPG klíče, aktualizovat šly až na jeden. Kdybyste někdo věděl co s tím, budu rád za jakékoliv rady.
 
 apt-get update píše v závěru:
 W: Failed to fetch http://security.debian.org/dists/wheezy/updates/non-free/binary-amd64/Packages  404  Not Found [IP: 151.101.120.204 80]
 
 E: Some index files failed to download. They have been ignored, or old ones used instead.
 Můj sources.list:
 # /etc/apt/sources.list :
 #deb http://ftp.cz.debian.org/debian/ wheezy main contrib non-free
 #deb-src http://ftp.cz.debian.org/debian/ wheezy main contrib non-free
 
 # deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 NETINST Binary-1 20150110-14:41]/ wheezy main
 
 #deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 NETINST Binary-1 20150110-14:41]/ wheezy main
 
 deb http://ftp.cz.debian.org/debian/ wheezy main
 deb-src http://ftp.cz.debian.org/debian/ wheezy main
 
 deb http://security.debian.org/ wheezy/updates main
 deb-src http://security.debian.org/ wheezy/updates main
 
 # wheezy-updates, previously known as 'volatile'
 deb http://ftp.cz.debian.org/debian/ wheezy-updates main
 deb-src http://ftp.cz.debian.org/debian/ wheezy-updates main
 
 
 deb http://http.debian.net/debian wheezy-backports main
 deb http://download.opensuse.org/repositories/home:/evilissimo:/deb/Debian_7.0/ ./
 
 Zkoušel jsem získat klíč ze serverů:
 gpg --keyserver keyserver.ubuntu.com --recv B98321F9
 gpg --export --armor B98321F9 | sudo apt-key add - && sudo apt-get update
 gpg --keyserver pgpkeys.mit.edu --recv-key B98321F9
 gpg --keyserver keyring.debian.org --recv-keys B98321F9
 gpg -a --export B98321F9 | sudo apt-key add -
 gpg --armor --export B98321F9 | sudo apt-key add -
 
 Téměř vždy se mi vrátilo něco jako (klíč nebyl aktualizován, pořád je expirovaný):
 g: key B98321F9: "Squeeze Stable Release Key <debian-release@lists.debian.org>" not changed
 gpg: Total number processed: 1
 gpg:              unchanged: 1
 případně ještě:
 gpgkeys: key B98321F9 not found on keyserver
 gpg: no valid OpenPGP data found.
 gpg: Total number processed: 0
 Zdroje klíčů jdou pingnout.
 
 Pak jsem zkoušel bez úspěchu něco jako:
 rm -vf /var/lib/apt/lists/*
 rm /var/lib/apt/lists/partial/
 sudo mkdir -pv /var/lib/apt/lists/partial
 sudo apt-get update ##rebuilds the index files
 sudo apt-get clean
 sudo apt-get update
 Také jsem zdroje zkoušel nahrazovat těmito:
 deb http://ftp.cz.debian.org/debian/ wheezy main contrib non-free
 deb-src http://ftp.cz.debian.org/debian/ wheezy main contrib non-free
 
 deb http://ftp.cz.debian.org/debian/ wheezy-updates main contrib non-free
 deb-src http://ftp.cz.debian.org/debian/ wheezy-updates main contrib non-free
 
 deb http://security.debian.org/ wheezy/updates main contrib non-free
 deb-src http://security.debian.org/ wheezy/updates main contrib non-free
- 
				Debian 7 Long Term Support reaching end-of-life
 
 June 1st, 2018
 
 The Debian Long Term Support (LTS) Team hereby announces that Debian 7 "Wheezy" support has reached its end-of-life on May 31, 2018, five years after its initial release on May 4, 2013. ...
 
 celé znění zde: https://www.debian.org/News/2018/20180601 (https://www.debian.org/News/2018/20180601)
- 
				Tak to mám asi smůlu? Něco jako dist-upgrade bude fungovat? Jakože prostřednictvím terminálu udělat z Debian 7 -> Debian 8 ? Děkuji.
			
- 
				Tak to mám asi smůlu? Něco jako dist-upgrade bude fungovat? Jakože prostřednictvím terminálu udělat z Debian 7 -> Debian 8 ? Děkuji.
 
 
 Zalezi co tam mas za sluzby a jak jsou zkonfigurovane
 Obecne dist upgrade funguje, ale dokaze pekne nastaveny server rozj....
 
 Cista instalace je jistota
- 
				Tak to mám asi smůlu? Něco jako dist-upgrade bude fungovat? Jakože prostřednictvím terminálu udělat z Debian 7 -> Debian 8 ?
 
 Ano, bude, ale předtím doporučuji změnit server na archive.debian.org (kde jsou stará vydání archivována) (zanechat wheezyho) a ještě jednou udělat apt-get update, apt-get upgrade -- tím se dostaneš do konzistentního stavu.
 
 Pak můžeš vrátit zpátky ftp.cz.debian.org, přepsat wheezy na jessie, a udělat dist-upgrade.
 
 dist-upgrade dělám naprosto běžně a bez problémů.
- 
				Udelej si novou VPSku a v klidu premigruj na novou verzi OS - to je jistota a zaruka, ze vse pobezi jak ma
			
- 
				@Vilith: Na VPS nejsou žádné služby. Server je čerstvě zřízen na Debian 7. Novější verzi nemám k dispozici. Musím postupovat upgradem z terminálu.
 
 @_Jenda: Děkuji za dobrý tip. Rád bych napřed updatnul Wheezy, ale mám problém s tím archive. Podle všeho na tom serveru Wheezy není? Viz. https://www.debian.org/distrib/archive Hlavně, že je tam bo a rexík :-D
 
 UPDATE
 Problém stále přetrvává. Máte někdo ještě prosím nějaké tipy? Mám pocit, že můj problém je způsobený úplně něčím jiným.
 
 Můj sources.list
 #deb http://deb.debian.org/debian wheezy-backports main
 
 deb http://archive.debian.org/debian/ wheezy main contrib non-free
 deb-src http://archive.debian.org/debian/ wheezy main contrib non-free
 
 deb http://archive.debian.org/debian/ wheezy-updates main contrib non-free
 deb-src http://archive.debian.org/debian/ wheezy-updates main contrib non-free
 
 deb http://archive.debian.org/ wheezy/updates main contrib non-free
 deb-src http://archive.debian.org/ wheezy/updates main contrib non-free
 
 Problém s apt-get update stále přetrvává:
 root@testedebian:~# sudo apt-get update
 Hit http://archive.debian.org wheezy Release.gpg
 Ign http://archive.debian.org wheezy-updates Release.gpg
 Ign http://archive.debian.org wheezy/updates Release.gpg
 Hit http://archive.debian.org wheezy Release
 Ign http://archive.debian.org wheezy-updates Release
 Ign http://archive.debian.org wheezy/updates Release
 Hit http://archive.debian.org wheezy/contrib Translation-en
 Hit http://archive.debian.org wheezy/main Translation-en
 Hit http://archive.debian.org wheezy/non-free Translation-en
 Hit http://archive.debian.org wheezy/main Sources
 Hit http://archive.debian.org wheezy/contrib Sources
 Hit http://archive.debian.org wheezy/non-free Sources
 Hit http://archive.debian.org wheezy/main amd64 Packages
 Hit http://archive.debian.org wheezy/contrib amd64 Packages
 Hit http://archive.debian.org wheezy/non-free amd64 Packages
 Err http://archive.debian.org wheezy-updates/main Sources
 404  Not Found [IP: 193.62.202.28 80]
 Err http://archive.debian.org wheezy-updates/contrib Sources
 404  Not Found [IP: 193.62.202.28 80]
 Err http://archive.debian.org wheezy-updates/non-free Sources
 404  Not Found [IP: 193.62.202.28 80]
 Err http://archive.debian.org wheezy-updates/main amd64 Packages
 404  Not Found [IP: 193.62.202.28 80]
 Err http://archive.debian.org wheezy-updates/contrib amd64 Packages
 404  Not Found [IP: 193.62.202.28 80]
 Err http://archive.debian.org wheezy-updates/non-free amd64 Packages
 404  Not Found [IP: 193.62.202.28 80]
 Ign http://archive.debian.org wheezy-updates/contrib Translation-en_US
 Ign http://archive.debian.org wheezy-updates/contrib Translation-en
 Ign http://archive.debian.org wheezy-updates/main Translation-en_US
 Ign http://archive.debian.org wheezy-updates/main Translation-en
 Ign http://archive.debian.org wheezy-updates/non-free Translation-en_US
 Ign http://archive.debian.org wheezy-updates/non-free Translation-en
 Err http://archive.debian.org wheezy/updates/main Sources
 404  Not Found [IP: 193.62.202.28 80]
 Err http://archive.debian.org wheezy/updates/contrib Sources
 404  Not Found [IP: 193.62.202.28 80]
 Err http://archive.debian.org wheezy/updates/non-free Sources
 404  Not Found [IP: 193.62.202.28 80]
 Err http://archive.debian.org wheezy/updates/main amd64 Packages
 404  Not Found [IP: 193.62.202.28 80]
 Err http://archive.debian.org wheezy/updates/contrib amd64 Packages
 404  Not Found [IP: 193.62.202.28 80]
 Err http://archive.debian.org wheezy/updates/non-free amd64 Packages
 404  Not Found [IP: 193.62.202.28 80]
 Ign http://archive.debian.org wheezy/updates/contrib Translation-en_US
 Ign http://archive.debian.org wheezy/updates/contrib Translation-en
 Ign http://archive.debian.org wheezy/updates/main Translation-en_US
 Ign http://archive.debian.org wheezy/updates/main Translation-en
 Ign http://archive.debian.org wheezy/updates/non-free Translation-en_US
 Ign http://archive.debian.org wheezy/updates/non-free Translation-en
 W: Failed to fetch http://archive.debian.org/debian/dists/wheezy-updates/main/source/Sources  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/debian/dists/wheezy-updates/contrib/source/Sources  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/debian/dists/wheezy-updates/non-free/source/Sources  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/debian/dists/wheezy-updates/main/binary-amd64/Packages  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/debian/dists/wheezy-updates/contrib/binary-amd64/Packages  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/debian/dists/wheezy-updates/non-free/binary-amd64/Packages  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/dists/wheezy/updates/main/source/Sources  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/dists/wheezy/updates/contrib/source/Sources  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/dists/wheezy/updates/non-free/source/Sources  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/dists/wheezy/updates/main/binary-amd64/Packages  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/dists/wheezy/updates/contrib/binary-amd64/Packages  404  Not Found [IP: 193.62.202.28 80]
 
 W: Failed to fetch http://archive.debian.org/dists/wheezy/updates/non-free/binary-amd64/Packages  404  Not Found [IP: 193.62.202.28 80]
 
 E: Some index files failed to download. They have been ignored, or old ones used instead.
 
 
 
- 
				https://www.howtoforge.com/tutorial/how-to-upgrade-debian-wheezy-to-jessie-stable-release/
 a pak pokracovat obdobne dal
- 
				Vyhodit
 deb http://archive.debian.org/debian/ wheezy-updates main contrib non-free
 deb-src http://archive.debian.org/debian/ wheezy-updates main contrib non-free
- 
				Sice už to mám, ale udělal jsem to takovým hodně prasáckým způsobem asi. Děkuji všem za pomoc. Takovou dobu sem se snažil "opravit APT" a přitom LTS už je dávno v prachu. :-D jsem máslo no. :-)
 
 root@testedebian:/var/lib/dpkg/info# lsb_release -a
 No LSB modules are available.
 Distributor ID: Debian
 Description:    Debian GNU/Linux 8.11 (jessie)
 Release:        8.11
 Codename:       jessie
 
- 
				Sice aktualizováno už mám a klíče nejsou expirované, ale pořád to nejde. Máte prosím ještě někdo nějaké nápady? Aktualizace proběhla hladce až na vynechání natažení updatů, což se kvůli té chybovce nepovedlo.
 
 
 deb http://deb.debian.org/debian/ jessie main contrib non-free
 deb-src http://deb.debian.org/debian/ jessie main contrib non-free
 
 deb http://security.debian.org/ jessie/updates main contrib non-free
 deb-src http://security.debian.org/ jessie/updates main contrib non-free
 
 deb http://deb.debian.org/debian/ jessie-updates main contrib non-free
 deb-src http://deb.debian.org/debian/ jessie-updates main contrib non-free
 
 
 root@testedebian:/etc/apt# sudo apt-get update ##rebuilds the index files
 Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
 Ign http://deb.debian.org jessie InRelease
 Get:2 http://deb.debian.org jessie-updates InRelease [7,340 B]
 Get:3 http://deb.debian.org jessie Release.gpg [2,420 B]
 Get:4 http://deb.debian.org jessie Release [148 kB]
 Get:5 http://security.debian.org jessie/updates/main Sources [308 kB]
 Get:6 http://security.debian.org jessie/updates/contrib Sources [1,439 B]                          ^[[A
 Get:7 http://security.debian.org jessie/updates/non-free Sources [1,631 B]
 Get:8 http://security.debian.org jessie/updates/main amd64 Packages [667 kB]
 Get:9 http://security.debian.org jessie/updates/contrib amd64 Packages [2,506 B]
 Get:10 http://security.debian.org jessie/updates/non-free amd64 Packages [4,556 B]
 Get:11 http://security.debian.org jessie/updates/contrib Translation-en [1,211 B]
 Get:12 http://security.debian.org jessie/updates/main Translation-en [337 kB]
 Get:13 http://security.debian.org jessie/updates/non-free Translation-en [11.8 kB]
 Get:14 http://deb.debian.org jessie/main Sources [7,063 kB]
 Get:15 http://deb.debian.org jessie/contrib Sources [50.4 kB]
 Get:16 http://deb.debian.org jessie/non-free Sources [99.2 kB]
 Get:17 http://deb.debian.org jessie/main amd64 Packages [6,818 kB]
 Get:18 http://deb.debian.org jessie/contrib amd64 Packages [49.8 kB]
 Get:19 http://deb.debian.org jessie/non-free amd64 Packages [83.2 kB]
 Get:20 http://deb.debian.org jessie/contrib Translation-en [38.3 kB]
 Get:21 http://deb.debian.org jessie/main Translation-en [4,581 kB]
 Get:22 http://deb.debian.org jessie/non-free Translation-en [72.0 kB]
 Fetched 203 kB in 5s (36.8 kB/s)
 W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)
 
 E: Some index files failed to download. They have been ignored, or old ones used instead.
 root@testedebian:/etc/apt# sudo apt-get clean
 root@testedebian:/etc/apt# sudo apt-get clean all
 root@testedebian:/etc/apt# sudo apt-get cleanall
 E: Invalid operation cleanall
 root@testedebian:/etc/apt# sudo apt-get update ##rebuilds the index files
 Hit http://security.debian.org jessie/updates InRelease
 Get:1 http://security.debian.org jessie/updates/main Sources [308 kB]
 Get:2 http://security.debian.org jessie/updates/contrib Sources [1,439 B]
 Get:3 http://security.debian.org jessie/updates/non-free Sources [1,631 B]
 Get:4 http://security.debian.org jessie/updates/main amd64 Packages [667 kB]
 Get:5 http://security.debian.org jessie/updates/contrib amd64 Packages [2,506 B]
 Get:6 http://security.debian.org jessie/updates/non-free amd64 Packages [4,556 B]
 Get:7 http://security.debian.org jessie/updates/contrib Translation-en [1,211 B]
 Get:8 http://security.debian.org jessie/updates/main Translation-en [337 kB]
 Get:9 http://security.debian.org jessie/updates/non-free Translation-en [11.8 kB]
 Ign http://deb.debian.org jessie InRelease
 Hit http://deb.debian.org jessie-updates InRelease
 Hit http://deb.debian.org jessie Release.gpg
 Hit http://deb.debian.org jessie Release
 Get:10 http://deb.debian.org jessie/main Sources [7,063 kB]
 Get:11 http://deb.debian.org jessie/contrib Sources [50.4 kB]
 Get:12 http://deb.debian.org jessie/non-free Sources [99.2 kB]
 Get:13 http://deb.debian.org jessie/main amd64 Packages [6,818 kB]
 Get:14 http://deb.debian.org jessie/contrib amd64 Packages [49.8 kB]
 Get:15 http://deb.debian.org jessie/non-free amd64 Packages [83.2 kB]
 Get:16 http://deb.debian.org jessie/contrib Translation-en [38.3 kB]
 Get:17 http://deb.debian.org jessie/main Translation-en [4,581 kB]
 Get:18 http://deb.debian.org jessie/non-free Translation-en [72.0 kB]
 W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)
 
 E: Some index files failed to download. They have been ignored, or old ones used instead.
 root@testedebian:/etc/apt#
 
 
 AKTUALIZACE:
 
 Tak už to definitivně funguje, odstanil jsem asi nějaké konfliktní zdroje a nechal v sources.list jen toto:
 deb http://deb.debian.org/debian/ jessie main contrib non-free
 deb-src http://deb.debian.org/debian/ jessie main contrib non-free
 
 
- 
				A ted jeste jednou o stupinek vyse na Stretch
			
- 
				[...] a přitom LTS už je dávno v prachu. :-D [...]
 
 root@testedebian:/var/lib/dpkg/info# lsb_release -a
 [...] No LSB modules are available. [...]
 
 LSB modules, NEma nic spolecneho s LTS, tohle ti zobrazi i kdyz to pustis na Debian 9, nebo *buntu 18.04 LTS ;-)
- 
				[...] Tak už to definitivně funguje, odstanil jsem asi nějaké konfliktní zdroje a nechal v sources.list jen toto: 
 deb http://deb.debian.org/debian/ jessie main contrib non-free
 deb-src http://deb.debian.org/debian/ jessie main contrib non-free
 jen se nediv, ze ti to nebude tahat "updaty" a "security updaty", to bylo v tech repo co si odebral ;-)
- 
				Stretch jsem taky zkoušel, je tam stretch.
 Zdroje pro update jsem samozřejmě také vrátil a také bez výsledku.
 
 Lidi, děkuji všem, já na to kašlu. Nainstaluji stable CentOS a zkusím tu Ubuntu aplikaci nějak rozjet na CentOS na který jsem zvyklý. Případně zkusím ještě otravovat s kernelem a modprobe, když mi to na CentOS nepofrčí na první dobrou, hádám, že to bude dost porod.
- 
				vrat jen security, nejspis jessie-updates je jiz v teto fazi spojene s jessie, takze v sources.list:
 deb http://deb.debian.org/debian/ jessie main contrib non-free
 deb-src http://deb.debian.org/debian/ jessie main contrib non-free
 
 deb http://security.debian.org/ jessie/updates main contrib non-free
 deb-src http://security.debian.org/ jessie/updates main contrib non-free
 sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get --purge autoremove && sudo apt-get cleanpak vrat i updates:
 deb http://deb.debian.org/debian/ jessie-updates main contrib non-free
 deb-src http://deb.debian.org/debian/ jessie-updates main contrib non-free
 
a zmen na stretch:
 sudo sed 's/jessie/stretch/' -i /etc/apt/sources.lista opet aktualizace:
 sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get --purge autoremove && sudo apt-get clean
- 
				Děkuji všem. Usoudil jsem z vážných důvodů, že bude lepší, aby to běželo na centosu s čím mi uživatel k3dAR moc pomohl, bez něho bych na serveru požadovanou službu do kupy nikdy nedal.  :)