apt-get error [LÖST]

Allt om t.ex. *BSD och OpenSolaris
eric.scott
Inlägg: 84
Blev medlem: 12 jun 2006, 20:35

apt-get error [LÖST]

Inlägg av eric.scott »

Hej!
Försöker köra apt-get update på en ny installerad server och får error:

Kod: Markera allt

Ign http://ftp.sunet.se etch Release.gpg
Hit http://ftp.sunet.se etch Release
Ign http://ftp.sunet.se etch/main Packages/DiffIndex
Ign http://ftp.sunet.se etch/main Sources/DiffIndex
Hit http://ftp.sunet.se etch/main Packages
Hit http://ftp.sunet.se etch/main Sources
Ign http://security.debian.org etch/updates Release.gpg
Ign http://security.debian.org etch/updates Release
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Err http://security.debian.org etch/updates/main Packages
  Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_etch_updates_main_binary-arm_Packages - open (30 Read-only file system) [IP: 212.211.132.250 80]
Err http://security.debian.org etch/updates/main Sources
  Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_etch_updates_main_source_Sources - open (30 Read-only file system) [IP: 130.89.175.54 80]
Failed to fetch http://security.debian.org/dists/etch/updates/main/binary-arm/Packages.gz  Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_etch_updates_main_binary-arm_Packages - open (30 Read-only file system) [IP: 212.211.132.250 80]
Failed to fetch http://security.debian.org/dists/etch/updates/main/source/Sources.gz  Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_etch_updates_main_source_Sources - open (30 Read-only file system) [IP: 130.89.175.54 80]
W: Not using locking for read only lock file /var/lib/apt/lists/lock
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.
Försöker även med apt-get install med error:

Kod: Markera allt

W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.
Vad gör jag för fel? :-\
Senast redigerad av 1 eric.scott, redigerad totalt 15 gånger.
Användarvisningsbild
Jarulf
Inlägg: 604
Blev medlem: 04 feb 2007, 22:46
OS: Ubuntu
Ort: Skellefteå
Kontakt:

Re: apt-get error

Inlägg av Jarulf »

Du måste lägga till sudo innan kommandot. Detta är för att ge dig rättigheter till administrativa saker.

Exempel:

Kod: Markera allt

jakob@normark:~$ sudo apt-get update
[sudo] password for jakob:
Då skriver jag in lösenordet för min användare och trycker enter. Observera att lösenordet inte ekas tillbaka som stjärnor, x eller annat.
Rune.K
Inlägg: 6437
Blev medlem: 09 jul 2008, 17:19
OS: Kubuntu
Utgåva: 24.04 Noble Numbat LTS

Re: apt-get error

Inlägg av Rune.K »

Själv kör jag debian sid, körde alldeles nyss update och upgrade.
Och inga problem med sunet...
Kan vara att din ISP har ett tillfälligt problem.
Prova igen!
mvh rune
eric.scott
Inlägg: 84
Blev medlem: 12 jun 2006, 20:35

Re: apt-get error

Inlägg av eric.scott »

Inloggad som root. Får felmeddelande:

Kod: Markera allt

LKGABD3BD:~# sudo apt-get update
-bash: sudo: command not found
Även som icke root:

Kod: Markera allt

stefan@LKGABD3BD:~$ sudo apt-get update
-bash: sudo: command not found
::)

Internet funkar ;) Funderade på om det var sunet... Tack
Användarvisningsbild
dmz
Inlägg: 3292
Blev medlem: 29 jul 2008, 19:42
OS: Arch Linux

Re: apt-get error

Inlägg av dmz »

Du kör debian gissar jag?

Kod: Markera allt

su
apt-get update
ǁ A: Because it obfuscates the reading.
ǁ Q: Why is top posting so bad?
eric.scott
Inlägg: 84
Blev medlem: 12 jun 2006, 20:35

Re: apt-get error

Inlägg av eric.scott »

Japp.

Kod: Markera allt

stefan@LKGABD3BD:~$ su
Password:
LKGABD3BD:/home/stefan# apt-get update
Ign http://ftp.sunet.se etch Release.gpg
Hit http://ftp.sunet.se etch Release
Ign http://security.debian.org etch/updates Release.gpg
Ign http://ftp.sunet.se etch/main Packages/DiffIndex
Ign http://ftp.sunet.se etch/main Sources/DiffIndex
Ign http://security.debian.org etch/updates Release
Hit http://ftp.sunet.se etch/main Packages
Hit http://ftp.sunet.se etch/main Sources
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Err http://security.debian.org etch/updates/main Packages
  Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_etch_updates_main_binary-arm_Packages - open (30 Read-only file system) [IP: 212.211.132.250 80]
Err http://security.debian.org etch/updates/main Sources
  Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_etch_updates_main_source_Sources - open (30 Read-only file system) [IP: 130.89.175.54 80]
Failed to fetch http://security.debian.org/dists/etch/updates/main/binary-arm/Packages.gz  Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_etch_updates_main_binary-arm_Packages - open (30 Read-only file system) [IP: 212.211.132.250 80]
Failed to fetch http://security.debian.org/dists/etch/updates/main/source/Sources.gz  Could not open file /var/lib/apt/lists/partial/security.debian.org_dists_etch_updates_main_source_Sources - open (30 Read-only file system) [IP: 130.89.175.54 80]
W: Not using locking for read only lock file /var/lib/apt/lists/lock
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.
LKGABD3BD:/home/stefan#
Som su password skriver jag in root lösenord :) Eller gör jag fel? :o
Rune.K
Inlägg: 6437
Blev medlem: 09 jul 2008, 17:19
OS: Kubuntu
Utgåva: 24.04 Noble Numbat LTS

Re: apt-get error

Inlägg av Rune.K »

""Som su password skriver jag in root lösenord :) Eller gör jag fel? :o ""

Du gör helt rätt!

Det är något annat fel.
Prova att starta om datorn.
Jag är alldeles för trött just nu för att för att ge ett mer detaljerat svar...
mvh rune
Rune.K
Inlägg: 6437
Blev medlem: 09 jul 2008, 17:19
OS: Kubuntu
Utgåva: 24.04 Noble Numbat LTS

Re: apt-get error

Inlägg av Rune.K »

Har du fått ordning på apt-get?
eric.scott
Inlägg: 84
Blev medlem: 12 jun 2006, 20:35

Re: apt-get error

Inlägg av eric.scott »

Tror tyvärr inte det. :-\ Installerade servern till en vän hemma hos mig och då fungerade allt fint :D ... Nu står den hemma hos honom och då började problemet. Ansluter via ssh, tyvärr är den offline just nu men jag tror inte något har förändrats :'(
Vi får se efter rebooten :)

Tack att ni engagerar er! ;)
eric.scott
Inlägg: 84
Blev medlem: 12 jun 2006, 20:35

Re: apt-get error

Inlägg av eric.scott »

En omstart löste allt!
Tack! :D
Skriv svar

Återgå till "Andra öppna och fria operativsystem"