• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Vps, Sources.list ; Pomoc

Status
Not open for further replies.

Murach

Banned User
Joined
Aug 22, 2010
Messages
136
Reaction score
3
Kiedyś to tutaj coś się działo a teraz? Lipa ; /

Jeżeli ktoś jest w stanie pomóc to bardzo proszę, a jeżeli jakiś komentarz nie na temat to zachowaj to dla siebie.

Kupiłem sobie VPS na test, zawsze to lepiej się przerzucić z tego Windowsa -.-


Otóż VPS Linux Debian i występuje mi parę błędów.

Tak jak pisał Elf zedytowałem sources na

Code:
deb http://mir1.ovh.net/debian/ etch main
deb-src http://mir1.ovh.net/debian/ etch main
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
deb http://ftp.de.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.de.debian.org/debian testing main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free
deb-src http://security.debian.org stable/updates main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free
deb-src http://security.debian.org testing/updates main contrib non-free


potem idzie
Code:
apt-get update

i
Code:
apt-get upgrade

ale niestety, gdy wpiszę
Code:
apt-get update

występują błędy ;/

Code:
debian:~# apt-get update
Ign http://mir1.ovh.net etch Release.gpg
Ign http://mir1.ovh.net etch Release
Ign http://mir1.ovh.net etch/main Packages
Ign http://mir1.ovh.net etch/main Sources
Ign http://mir1.ovh.net etch/main Packages
Ign http://mir1.ovh.net etch/main Sources
Err http://mir1.ovh.net etch/main Packages
  404 Not Found [IP: 91.121.124.139 80]
Err http://mir1.ovh.net etch/main Sources
  404 Not Found [IP: 91.121.124.139 80]
Get:1 http://ftp.de.debian.org testing Release.gpg [835B]
Get:2 http://ftp.de.debian.org testing Release [89.9kB]
Get:3 http://security.debian.org etch/updates Release.gpg [835B]
Get:4 http://security.debian.org stable/updates Release.gpg [835B]
Get:5 http://security.debian.org testing/updates Release.gpg [835B]
Get:6 http://security.debian.org etch/updates Release [37.6kB]
Get:7 http://security.debian.org stable/updates Release [40.8kB]
Hit http://ftp.de.debian.org testing/main Packages/DiffIndex
Get:8 http://security.debian.org testing/updates Release [44.6kB]
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Hit http://ftp.de.debian.org testing/contrib Packages/DiffIndex
Hit http://ftp.de.debian.org testing/non-free Packages/DiffIndex
Hit http://ftp.de.debian.org testing/main Sources/DiffIndex
Hit http://ftp.de.debian.org testing/contrib Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex
Ign http://security.debian.org stable/updates/main Packages/DiffIndex
Ign http://security.debian.org stable/updates/contrib Packages/DiffIndex
Ign http://security.debian.org stable/updates/non-free Packages/DiffIndex
Ign http://security.debian.org stable/updates/main Sources/DiffIndex
Ign http://security.debian.org stable/updates/contrib Sources/DiffIndex
Ign http://security.debian.org stable/updates/non-free Sources/DiffIndex
Ign http://security.debian.org testing/updates/main Packages/DiffIndex
Ign http://security.debian.org testing/updates/contrib Packages/DiffIndex
Ign http://security.debian.org testing/updates/non-free Packages/DiffIndex
Ign http://security.debian.org testing/updates/main Sources/DiffIndex
Ign http://security.debian.org testing/updates/contrib Sources/DiffIndex
Ign http://security.debian.org testing/updates/non-free Sources/DiffIndex
Hit http://security.debian.org etch/updates/main Packages
Hit http://security.debian.org etch/updates/contrib Packages
Hit http://ftp.de.debian.org testing/non-free Sources/DiffIndex
Hit http://security.debian.org etch/updates/main Sources
Hit http://security.debian.org etch/updates/contrib Sources
Hit http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/contrib Packages
Hit http://security.debian.org stable/updates/non-free Packages
Hit http://security.debian.org stable/updates/main Sources
Hit http://security.debian.org stable/updates/contrib Sources
Hit http://security.debian.org stable/updates/non-free Sources
Hit http://security.debian.org testing/updates/main Packages
Hit http://security.debian.org testing/updates/contrib Packages
Hit http://security.debian.org testing/updates/non-free Packages
Hit http://security.debian.org testing/updates/main Sources
Hit http://security.debian.org testing/updates/contrib Sources
Hit http://security.debian.org testing/updates/non-free Sources
Fetched 216kB in 4s (50.3kB/s)
W: Failed to fetch http://mir1.ovh.net/debian/dists/etch/main/binary-i386/Packages  404 Not Found [IP: 91.121.124.139 80]

W: Failed to fetch http://mir1.ovh.net/debian/dists/etch/main/source/Sources  404 Not Found [IP: 91.121.124.139 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
debian:~#

Z tego co mi wiadomo część osób ma także takie problemy, ponieważ lista sources jest tak jakby stara.

Co mam zrobić? Dalej nic już nie wpisywałem aby nie narobić problemów ...
 
Last edited:
Zamień etch na squeeze i zrób to samo.
 
Last edited:
Zmieniłem tylko w
Code:
deb http://mir1.ovh.net/debian/ etch main
deb-src http://mir1.ovh.net/debian/ etch main

i niby znikły errory z początku ale dalej są...

Code:
debian:~# apt-get update
Hit http://security.debian.org etch/updates Release.gpg
Hit http://security.debian.org stable/updates Release.gpg
Hit http://security.debian.org testing/updates Release.gpg
Ign http://mir1.ovh.net squid Release.gpg
Hit http://security.debian.org etch/updates Release
Hit http://security.debian.org stable/updates Release
Ign http://mir1.ovh.net squid Release
Hit http://security.debian.org testing/updates Release
Ign http://mir1.ovh.net squid/main Packages
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex
Ign http://security.debian.org stable/updates/main Packages/DiffIndex
Ign http://security.debian.org stable/updates/contrib Packages/DiffIndex
Ign http://mir1.ovh.net squid/main Sources
Ign http://security.debian.org stable/updates/non-free Packages/DiffIndex
Ign http://security.debian.org stable/updates/main Sources/DiffIndex
Ign http://security.debian.org stable/updates/contrib Sources/DiffIndex
Ign http://security.debian.org stable/updates/non-free Sources/DiffIndex
Ign http://security.debian.org testing/updates/main Packages/DiffIndex
Ign http://security.debian.org testing/updates/contrib Packages/DiffIndex
Ign http://security.debian.org testing/updates/non-free Packages/DiffIndex
Ign http://security.debian.org testing/updates/main Sources/DiffIndex
Ign http://security.debian.org testing/updates/contrib Sources/DiffIndex
Ign http://security.debian.org testing/updates/non-free Sources/DiffIndex
Hit http://security.debian.org etch/updates/main Packages
Hit http://security.debian.org etch/updates/contrib Packages
Hit http://security.debian.org etch/updates/main Sources
Hit http://security.debian.org etch/updates/contrib Sources
Hit http://security.debian.org stable/updates/main Packages
Ign http://mir1.ovh.net squid/main Packages
Hit http://security.debian.org stable/updates/contrib Packages
Hit http://security.debian.org stable/updates/non-free Packages
Hit http://security.debian.org stable/updates/main Sources
Hit http://security.debian.org stable/updates/contrib Sources
Hit http://security.debian.org stable/updates/non-free Sources
Ign http://mir1.ovh.net squid/main Sources
Hit http://security.debian.org testing/updates/main Packages
Hit http://security.debian.org testing/updates/contrib Packages
Hit http://security.debian.org testing/updates/non-free Packages
Hit http://security.debian.org testing/updates/main Sources
Hit http://security.debian.org testing/updates/contrib Sources
Hit http://security.debian.org testing/updates/non-free Sources
Err http://mir1.ovh.net squid/main Packages
  404 Not Found [IP: 91.121.124.139 80]
Err http://mir1.ovh.net squid/main Sources
  404 Not Found [IP: 91.121.124.139 80]
Hit http://ftp.de.debian.org testing Release.gpg
Hit http://ftp.de.debian.org testing Release
Hit http://ftp.de.debian.org testing/main Packages/DiffIndex
Hit http://ftp.de.debian.org testing/contrib Packages/DiffIndex
Hit http://ftp.de.debian.org testing/non-free Packages/DiffIndex
Hit http://ftp.de.debian.org testing/main Sources/DiffIndex
Hit http://ftp.de.debian.org testing/contrib Sources/DiffIndex
Hit http://ftp.de.debian.org testing/non-free Sources/DiffIndex
W: Failed to fetch http://mir1.ovh.net/debian/dists/squid/main/binary-i386/Packages  404 Not Found [IP: 91.121.124.139 80]

W: Failed to fetch http://mir1.ovh.net/debian/dists/squid/main/source/Sources  404 Not Found [IP: 91.121.124.139 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
debian:~#
debian:~#

A może zmienić to we wszystkich ?
 
była literówka :P squeeze nie squid ;d
 
Rep + leci ;)

O.o, i weź się nie wk**wij -.-

Code:
apt-get upgrade

Code:
debian:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  libc6-xen: PreDepends: libc6 (= 2.7-18) but 2.11.2-6 is installed
E: Unmet dependencies. Try using -f.
debian:~#

wiedziałbyś jak to naprawić? ; /
 
Zrobiłem to, w połowie niebieskie okienko i pisało coś takiego :

Code:
Configuring libc6 

 │ Running services and programs that are using NSS need to be restarted,         │
 │ otherwise they might not be able to do lookup or authentication any more (for  │
 │ services such as ssh, this can affect your ability to login). Please review    │
 │ the following space-separated list of init.d scripts for services to be        │
 │ restarted now, and correct it if needed. 

 │ Note: restarting sshd/telnetd should not affect any existing connections.      │
 │                                                                                │
 │ Services to restart for GNU libc library upgrade:  

 │ ssh exim4 cron________________________________________________________________ │ <----Tu jest takie okienko aby coś wpisać, a w nim piszę właśnie ssh exim4 cron
 │                                                                                │
 │                                     <Ok>


Naciskam ok i jest to co niżej...


Code:
debian:~#
debian:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc6-xen
The following packages will be upgraded:
  libc6-xen
1 upgraded, 0 newly installed, 0 to remove and 168 not upgraded.
2 not fully installed or removed.
Need to get 0B/1206kB of archives.
After this operation, 53.2kB disk space will be freed.
Do you want to continue [Y/n]? y
Setting up libc6 (2.11.2-6) ...
Checking for services that may need to be restarted...
Checking init scripts...

Restarting services possibly affected by the upgrade:
  ssh: restarting...done.
  exim4: restarting...done.
  cron: restarting...done.

Services restarted successfully.
ldconfig: /etc/ld.so.conf.d/libc6-xen.conf:6: hwcap index 0 already defined as nosegneg
dpkg: error processing libc6 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 libc6
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Proponuję od czystego systemu:
Code:
echo '+++ Setting repositories...'
# new repos
[noparse]
echo 'deb ftp://mir1.ovh.net/debian/ lenny main contrib non-free
deb-src ftp://mir1.ovh.net/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

#~~~~~~Squeeze~~~~~~#
#deb http://mir1.ovh.net/debian/ squeeze main non-free contrib
#deb-src http://mir1.ovh.net/debian/ squeeze main non-free contrib

#deb http://security.debian.org/ squeeze/updates main contrib non-free
#deb-src http://security.debian.org/ squeeze/updates main contrib non-free

# Backports
deb http://www.backports.org/debian lenny-backports main contrib non-free' > /etc/apt/sources.list
[/noparse]
aptitude update

echo '+++ Installing backports keyring...'
aptitude --allow-untrusted install debian-backports-keyring

echo '+++ Updating repositories...'
aptitude update

echo '+++ Installing software...'
aptitude -y install mysql-server-5.1 build-essential pkg-config libboost-dev libgmp3-dev liblua5.1-0-dev libboost1.40-dev libboost-system1.40-dev libboost-filesystem1.40-dev libboost-date-time1.40-dev libboost-regex1.40-dev libboost-thread1.40-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev ccache

I masz wszystko do kompilacji TFSów.
 
To up wkleić do sources.list i potem załadować i lecieć tak jak pisał Stian w Link Tutaj ??
Czy tak jak elf w poradniku ?

No cóż, ciekawe czy się jeszcze zgodzą raz zrestartować system bo raz już robiłem ; )

Danielo Rep +
Samme rep

Oczywiście jeżeli jest możliwość jeszcze jakoś wybrnąć z tego co pisałem wyżem to każda pomoc się przyda,
myślę że sam nie jestem z tym problemem ;) Jbc dam znać...
 
Co to za firma, że sam nie możesz przeinstalować/zrestartować VPSa ?!
Wklej to co wyżej, a potem jedź od kompilacji wg poradnika Elfa.
 
Timnet testuję ich :)

VPS mam 2-3 GB ram...

Dzięki za pomoc ;)

edit:

dostałem taką odpowiedź

Constant frustration is a common occurrence for beginner Linux users, get used to it.

Elfs guide is out of date..so use stians.

http://otland.net/f479/ubuntu-nothi...gotten-server-modernaac-mysql-lighttpd-89001/

You can also open the DOC folder in your distro and read the read me and shit for useful info.

teraz to już nie wiem co robić, czy z poradnika elfa czy tego Stiana -.-
 
Last edited:
Szczerze mówiąc, jeśli już zainstalujesz te pakiety tak jak napisałem, to wszystko jedno czy użyjesz tego czy tego poradnika. W obu jest dalej to samo.
 
Prosta rzecz, a nie wiem jak z nią postąpić :D

Już mam system początkowy.

podmieniłem sources.list

na

Code:
echo '+++ Setting repositories...'
# new repos

echo 'deb ftp://mir1.ovh.net/debian/ lenny main contrib non-free
deb-src ftp://mir1.ovh.net/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

#~~~~~~Squeeze~~~~~~#
#deb http://mir1.ovh.net/debian/ squeeze main non-free contrib
#deb-src http://mir1.ovh.net/debian/ squeeze main non-free contrib

#deb http://security.debian.org/ squeeze/updates main contrib non-free
#deb-src http://security.debian.org/ squeeze/updates main contrib non-free

# Backports
deb http://www.backports.org/debian lenny-backports main contrib non-free' > /etc/apt/sources.list

aptitude update

echo '+++ Installing backports keyring...'
aptitude --allow-untrusted install debian-backports-keyring

echo '+++ Updating repositories...'
aptitude update

echo '+++ Installing software...'
aptitude -y install mysql-server-5.1 build-essential pkg-config libboost-dev libgmp3-dev liblua5.1-0-dev libboost1.40-dev libboost-system1.40-dev libboost-filesystem1.40-dev libboost-date-time1.40-dev libboost-regex1.40-dev libboost-thread1.40-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev ccache

tak jak pisałeś.

Myślę że lepiej jeżeli będę się wzorował na tym poradniku Stiana, ponieważ od razu jest tam udostępniona instalacja mysql...

Pierwsza komenda
Code:
apt-get install mysql-server

i
Code:
debian:~# apt-get install mysql-server
E: Type 'echo' is not known on line 1 in source list /etc/apt/sources.list
E: The list of sources could not be read.

Wiem że coś z sources, w środku źle poukładane czy co ? Jak to ma być ?
 
Nie, nie, nie !
Chyba źle to trochę napisałem. Ten kod, który podałem, masz wykonać w konsoli. Zostaw /etc/apt/sources.list tak jak jest i wykonaj ten skrypt (przekopiuj go do konsoli), pamiętaj aby ostatnią linię również zatwierdzić enterem.
To zainstaluje ci nowe repozytoria i pakiety.
 
Tak zrobiłem... wpisałem ten script do consoli, trochę trwało...

wpisuję teraz
Code:
apt-get install mysql-server

i
Code:
debian:~# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libc6-xen: PreDepends: libc6 (= 2.7-18) but 2.7-18lenny4 is to be installed
  mysql-server: Depends: mysql-server-5.0
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
debian:~#

a gdy piszę
Code:
apt-get -f install
to

Code:
debian:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc6-xen
The following packages will be upgraded:
  libc6-xen
1 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
1 not fully installed or removed.
Need to get 0B/1272kB of archives.
After this operation, 90.1kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up libc6 (2.7-18lenny4) ...
ldconfig: /etc/ld.so.conf.d/libc6-xen.conf:6: hwcap index 0 already defined as nosegneg
dpkg: error processing libc6 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 libc6
E: Sub-process /usr/bin/dpkg returned an error code (1)
debian:~#

gdy wpisze
Code:
apt-get update
to ładnie bez błędów ładuję...

a gdy
Code:
apt-get upgrate
to to samo co przy instalowaniu php i innych komponentach czyli

Code:
debian:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  libc6-xen: PreDepends: libc6 (= 2.7-18) but 2.7-18lenny4 is installed
E: Unmet dependencies. Try using -f.
debian:~#
 
Last edited:
Wystartuj od czystego systemu bo nie ma się co męczyć i zrób to co mówiłem. Reinstalację systemu załatwi ci firma od VPSa, jeśli sam nie możesz tego zrobić (np. w HyperVM).
 
No miałem reinstalacje systemu, i ten ost. post co napisałem to właśnie robiłem na czystym już ... ; /

@edit

Działa, h*j mnie strzelał więc usunąłem plik libc6.xen.conf i wszystko ładnie idzie ; ) Tylko pewnie jak na złość ten pliczek potem będzie potrzebny...

A więc teraz mam taki problem...

Doszedłem do tego pkt, aby zainstalować TFS...

Code:
svn co svn://svn.otland.net/public/forgottenserver/tags/0.3.6pl1 tfs
cd tfs

ale gdy wpisuję

Code:
svn co svn://svn.otland.net/public/forgottenserver/tags/0.3.6pl1 tfs

to jest

Code:
[debian:~# svn co svn://svn.otland.net/public/forgottenserver/tags/0.3.6pl1 tfs
-bash: svn: command not found
debian:~#

Co robię źle ?
 
Last edited:
Jesteś absolutnie pewien, że wykonałeś
Code:
aptitude -y install mysql-server-5.1 build-essential pkg-config libboost-dev libgmp3-dev liblua5.1-0-dev libboost1.40-dev libboost-system1.40-dev libboost-filesystem1.40-dev libboost-date-time1.40-dev libboost-regex1.40-dev libboost-thread1.40-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev ccache
??
 
Robiłem tylko miałem jakieś inne komendy ;x

Teraz instalacja silnika chyba zainstalowana z sukcesem

końcówka kodu

Code:
A    tfs/databasepgsql.h
A    tfs/weapons.h
A    tfs/iomapserialize.h
A    tfs/beds.h
A    tfs/status.cpp
A    tfs/allocator.h
A    tfs/condition.cpp
A    tfs/container.h
A    tfs/vocation.h
A    tfs/rsa.h
A    tfs/admin.h
 U   tfs
Checked out revision 83.
debian:~#

I teraz jak wpisuję komendę

Code:
./autogen.sh

to pisze
Code:
debian:~/forgottenserver# ./autogen.sh
-bash: ./autogen.sh: No such file or directory
debian:~/forgottenserver#

więc piszę

Code:
source/autogen.sh

bo znajduję się on w katalogu root/forgotenserevr/source/i tu jest silnik

Po wpisaniu piszę
Code:
debian:~/forgottenserver# source/autogen.sh
autoreconf: `configure.ac' or `configure.in' is required
debian:~/forgottenserver#

i tutaj się zatrzymuję, bo nie wiem teraz jak wpisać komendę

Code:
./configure --enable-mysql --enable-sqlite --enable-remote-control --enable-server-diag

bo ani tak nie działa i jak wpiszę zamiast [kropki] - source też nie działa -.-

w consoli piszę

Code:
debian:~/forgottenserver# source/configure --enable-mysql --enable-sqlite --enable-remote-control --enable-server-diag
-bash: source/configure: No such file or directory
debian:~/forgottenserver#

Co źle piszę ?

a korzystam z poradnika elfa
ELF PORADNIK
 
<affff, puffff, ufff>
Zrób tak:
Code:
cd ~/forgottenserver/source
./autogen.sh
./configure --enable-mysql --enable-sqlite --enable-remote-control --enable-server-diag
make
 
Status
Not open for further replies.
Back
Top