install scripts Emnet er løst

Her kan du få hjælp til installationen af Ubuntu.
thj01
Indlæg: 2667
Tilmeldt: 21. nov 2006, 10:06
Geografisk sted: Fredericia

install scripts

Indlægaf thj01 » 4. feb 2015, 15:52

Jeg har en ting som undrer mig og jeg kan ikke se mig ud af det.

Jeg kører et installscript hvor jeg anvender $(lsb_release -cs) til at angive udgivelsen.

MEN

Når jeg kører med $(lsb_release -cs) i /etc/apt/sources.list så får jeg fejlmeddelelser - hvilket jeg ikke får når der bare står trusty

eks

Kode: Vælg alt

# deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.


deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs) main restricted
deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs) main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs) universe
deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs) universe
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-updates universe
deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs) multiverse
deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs) multiverse
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-security main restricted
deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-security main restricted
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-security universe
deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-security universe
deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-security multiverse
deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu $(lsb_release -cs) partner
# deb-src http://archive.canonical.com/ubuntu $(lsb_release -cs) partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu $(lsb_release -cs) main
deb-src http://extras.ubuntu.com/ubuntu $(lsb_release -cs) main


giver fejl

men det gør

Kode: Vælg alt

# deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.


deb http://archive.ubuntu.com/ubuntu trusty main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu trusty universe
deb-src http://archive.ubuntu.com/ubuntu trusty universe
deb http://archive.ubuntu.com/ubuntu trusty-updates universe
deb-src http://archive.ubuntu.com/ubuntu trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu trusty multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty-security main restricted
deb http://archive.ubuntu.com/ubuntu trusty-security universe
deb-src http://archive.ubuntu.com/ubuntu trusty-security universe
deb http://archive.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main


ikke


Her er fejloutputtet når jeg kører med $(lsb_release -cs)

Kode: Vælg alt

thoj@thoj-Precision-M4800:~$ sudo apt-get update
Ignorerer http://archive.canonical.com $(lsb_release InRelease
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Ignorerer http://archive.canonical.com $(lsb_release Release.gpg               
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Ignorerer http://archive.ubuntu.com $(lsb_release InRelease                   
Ignorerer http://extras.ubuntu.com $(lsb_release InRelease                     
Ignorerer http://archive.canonical.com $(lsb_release Release                   
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Ignorerer http://archive.ubuntu.com $(lsb_release Release.gpg                 
Ignorerer http://extras.ubuntu.com $(lsb_release Release.gpg                   
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Ignorerer http://archive.ubuntu.com $(lsb_release Release                     
Ignorerer http://extras.ubuntu.com $(lsb_release Release                       
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Ignorerer http://dl.google.com stable InRelease                               
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Havde http://dl.google.com stable Release.gpg                                 
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Havde http://download.virtualbox.org trusty InRelease                         
Havde http://dl.google.com stable Release                                     
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Henter:1 https://download.01.org trusty InRelease                             
Havde http://dl.google.com stable/main amd64 Packages                         
Ignorerer https://download.01.org trusty InRelease                             
Ignorerer http://ppa.launchpad.net trusty InRelease                           
Havde http://ppa.launchpad.net trusty Release.gpg                             
Havde http://ppa.launchpad.net trusty Release.gpg                             
Havde http://dl.google.com stable/main i386 Packages                           
Havde http://download.virtualbox.org trusty/contrib amd64 Packages             
Havde http://ppa.launchpad.net trusty Release.gpg                             
Havde http://ppa.launchpad.net trusty Release.gpg                             
Havde http://ppa.launchpad.net trusty Release.gpg                             
Henter:2 https://download.01.org trusty/main amd64 Packages/DiffIndex         
Ignorerer https://download.01.org trusty/main amd64 Packages/DiffIndex         
Havde http://ppa.launchpad.net trusty Release.gpg                             
Havde http://download.virtualbox.org trusty/contrib i386 Packages             
Havde http://ppa.launchpad.net trusty Release.gpg                             
Havde http://ppa.launchpad.net trusty Release.gpg                             
Havde http://ppa.launchpad.net trusty Release.gpg                             
Ignorerer https://download.01.org trusty/main i386 Packages/DiffIndex         
Havde http://ppa.launchpad.net trusty Release.gpg                             
Havde http://ppa.launchpad.net trusty Release.gpg                             
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty Release                                 
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Havde http://ppa.launchpad.net trusty/main i386 Packages                       
Ignorerer http://dl.google.com stable/main Translation-da_DK                   
Havde http://ppa.launchpad.net trusty/main Translation-en                     
Fejl http://archive.canonical.com $(lsb_release/-cs) amd64 Packages           
  404  Not Found [IP: 91.189.92.150 80]
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Fejl http://archive.canonical.com $(lsb_release/partner amd64 Packages         
  404  Not Found [IP: 91.189.92.150 80]
Ignorerer http://dl.google.com stable/main Translation-da                     
Havde http://ppa.launchpad.net trusty/main i386 Packages                       
Ignorerer http://dl.google.com stable/main Translation-en                     
Fejl http://archive.canonical.com $(lsb_release/-cs) i386 Packages             
  404  Not Found [IP: 91.189.92.150 80]
Havde http://ppa.launchpad.net trusty/main Translation-en                     
Fejl http://archive.canonical.com $(lsb_release/partner i386 Packages         
  404  Not Found [IP: 91.189.92.150 80]
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Ignorerer http://archive.canonical.com $(lsb_release/-cs) Translation-da_DK   
Havde http://ppa.launchpad.net trusty/main i386 Packages                       
Ignorerer http://archive.canonical.com $(lsb_release/-cs) Translation-da       
Ignorerer http://archive.canonical.com $(lsb_release/-cs) Translation-en       
Ignorerer http://archive.canonical.com $(lsb_release/partner Translation-da_DK
Ignorerer http://archive.canonical.com $(lsb_release/partner Translation-da   
Ignorerer http://archive.canonical.com $(lsb_release/partner Translation-en   
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Havde http://ppa.launchpad.net trusty/main i386 Packages                       
Fejl http://extras.ubuntu.com $(lsb_release/-cs) Sources                       
  404  Not Found
Fejl http://extras.ubuntu.com $(lsb_release/main Sources                       
  404  Not Found
Havde http://ppa.launchpad.net trusty/main Translation-en                     
Fejl http://extras.ubuntu.com $(lsb_release/-cs) amd64 Packages               
  404  Not Found
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Fejl http://extras.ubuntu.com $(lsb_release/main amd64 Packages               
  404  Not Found
Havde http://ppa.launchpad.net trusty/main i386 Packages                       
Fejl http://extras.ubuntu.com $(lsb_release/-cs) i386 Packages                 
  404  Not Found
Havde http://ppa.launchpad.net trusty/main Translation-en                     
Fejl http://extras.ubuntu.com $(lsb_release/main i386 Packages                 
  404  Not Found
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Ignorerer http://extras.ubuntu.com $(lsb_release/-cs) Translation-da_DK       
Havde http://ppa.launchpad.net trusty/main i386 Packages                       
Ignorerer http://extras.ubuntu.com $(lsb_release/-cs) Translation-da           
Havde http://ppa.launchpad.net trusty/main Translation-en                     
Ignorerer http://extras.ubuntu.com $(lsb_release/-cs) Translation-en           
Ignorerer http://extras.ubuntu.com $(lsb_release/main Translation-da_DK       
Ignorerer http://extras.ubuntu.com $(lsb_release/main Translation-da           
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Ignorerer http://extras.ubuntu.com $(lsb_release/main Translation-en           
Havde http://ppa.launchpad.net trusty/main i386 Packages                       
Havde http://ppa.launchpad.net trusty/main Translation-en   
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Havde http://ppa.launchpad.net trusty/main i386 Packages                       
Havde http://ppa.launchpad.net trusty/main Translation-en                     
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Havde http://ppa.launchpad.net trusty/main i386 Packages                       
Havde http://ppa.launchpad.net trusty/main Translation-en                     
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Havde http://ppa.launchpad.net trusty/main i386 Packages                       
Havde http://ppa.launchpad.net trusty/main amd64 Packages                     
Ignorerer http://download.virtualbox.org trusty/contrib Translation-da_DK     
Havde http://ppa.launchpad.net trusty/main i386 Packages     
Havde http://ppa.launchpad.net trusty/main Translation-en                     
Ignorerer http://download.virtualbox.org trusty/contrib Translation-da         
Ignorerer http://download.virtualbox.org trusty/contrib Translation-en
Ignorerer http://ppa.launchpad.net trusty/main Translation-da_DK
Ignorerer http://ppa.launchpad.net trusty/main Translation-da
Ignorerer http://ppa.launchpad.net trusty/main Translation-en
Ignorerer http://ppa.launchpad.net trusty/main Translation-da_DK
Ignorerer http://ppa.launchpad.net trusty/main Translation-da
Ignorerer http://ppa.launchpad.net trusty/main Translation-en
Havde https://download.01.org trusty/main amd64 Packages                       
Fejl http://archive.ubuntu.com $(lsb_release/-cs) Sources                     
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/main Sources                     
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/restricted Sources               
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/-cs)-updates Sources             
  404  Not Found [IP: 91.189.92.200 80]
Havde https://download.01.org trusty/main i386 Packages                       
Fejl http://archive.ubuntu.com $(lsb_release/universe Sources                 
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/multiverse Sources               
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/-cs)-backports Sources           
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/-cs)-security Sources             
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/-cs) amd64 Packages               
  404  Not Found [IP: 91.189.92.200 80]
Henter:3 https://download.01.org trusty/main Translation-da_DK                 
Ignorerer https://download.01.org trusty/main Translation-da_DK               
Fejl http://archive.ubuntu.com $(lsb_release/main amd64 Packages               
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/restricted amd64 Packages         
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/-cs)-updates amd64 Packages       
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/universe amd64 Packages           
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/multiverse amd64 Packages         
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/-cs)-backports amd64 Packages     
  404  Not Found [IP: 91.189.92.200 80]
Ignorerer https://download.01.org trusty/main Translation-da                   
Fejl http://archive.ubuntu.com $(lsb_release/-cs)-security amd64 Packages     
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/-cs) i386 Packages               
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/main i386 Packages               
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/restricted i386 Packages         
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/-cs)-updates i386 Packages       
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/universe i386 Packages           
  404  Not Found [IP: 91.189.92.200 80]
Ignorerer https://download.01.org trusty/main Translation-en                   
Fejl http://archive.ubuntu.com $(lsb_release/multiverse i386 Packages         
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/-cs)-backports i386 Packages     
  404  Not Found [IP: 91.189.92.200 80]
Fejl http://archive.ubuntu.com $(lsb_release/-cs)-security i386 Packages       
  404  Not Found [IP: 91.189.92.200 80]
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs) Translation-da_DK       
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs) Translation-da         
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs) Translation-en         
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs)-backports Translation-da_DK
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs)-backports Translation-da
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs)-backports Translation-en
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs)-security Translation-da_DK
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs)-security Translation-da
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs)-security Translation-en
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs)-updates Translation-da_DK
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs)-updates Translation-da 
Ignorerer http://archive.ubuntu.com $(lsb_release/-cs)-updates Translation-en 
Ignorerer http://archive.ubuntu.com $(lsb_release/main Translation-da_DK       
Ignorerer http://archive.ubuntu.com $(lsb_release/main Translation-da         
Ignorerer http://archive.ubuntu.com $(lsb_release/main Translation-en         
Ignorerer http://archive.ubuntu.com $(lsb_release/multiverse Translation-da_DK
Ignorerer http://archive.ubuntu.com $(lsb_release/multiverse Translation-da   
Ignorerer http://archive.ubuntu.com $(lsb_release/multiverse Translation-en   
Ignorerer http://archive.ubuntu.com $(lsb_release/restricted Translation-da_DK
Ignorerer http://archive.ubuntu.com $(lsb_release/restricted Translation-da   
Ignorerer http://archive.ubuntu.com $(lsb_release/restricted Translation-en   
Ignorerer http://archive.ubuntu.com $(lsb_release/universe Translation-da_DK   
Ignorerer http://archive.ubuntu.com $(lsb_release/universe Translation-da     
Ignorerer http://archive.ubuntu.com $(lsb_release/universe Translation-en     
Hentede 3.669 B på 8s (450 B/s)                                               
N: Ignorerer fil »google-chrome.backup« i mappe »/etc/apt/sources.list.d/« da den har en ugyldig filendelse
W: GPG-fejl: https://download.01.org trusty InRelease: Følgende signaturer kunne ikke verificeret, da den offentlige nøgle ikke er tilgængelig: NO_PUBKEY A902DDA375E52366
W: Kunne ikke hente http://archive.canonical.com/ubuntu/dists/$(lsb_release/-cs)/binary-amd64/Packages 404  Not Found [IP: 91.189.92.150 80]

W: Kunne ikke hente http://archive.canonical.com/ubuntu/dists/$(lsb_release/partner/binary-amd64/Packages 404  Not Found [IP: 91.189.92.150 80]

W: Kunne ikke hente http://archive.canonical.com/ubuntu/dists/$(lsb_release/-cs)/binary-i386/Packages 404  Not Found [IP: 91.189.92.150 80]

W: Kunne ikke hente http://archive.canonical.com/ubuntu/dists/$(lsb_release/partner/binary-i386/Packages 404  Not Found [IP: 91.189.92.150 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)/source/Sources 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/main/source/Sources 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/restricted/source/Sources 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)-updates/source/Sources 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/universe/source/Sources 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/multiverse/source/Sources 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)-backports/source/Sources 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)-security/source/Sources 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)/binary-amd64/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/main/binary-amd64/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/restricted/binary-amd64/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)-updates/binary-amd64/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/universe/binary-amd64/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/multiverse/binary-amd64/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)-backports/binary-amd64/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)-security/binary-amd64/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)/binary-i386/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/main/binary-i386/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/restricted/binary-i386/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)-updates/binary-i386/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/universe/binary-i386/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/multiverse/binary-i386/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)-backports/binary-i386/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)-security/binary-i386/Packages 404  Not Found [IP: 91.189.92.200 80]

W: Kunne ikke hente http://extras.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)/source/Sources 404  Not Found

W: Kunne ikke hente http://extras.ubuntu.com/ubuntu/dists/$(lsb_release/main/source/Sources 404  Not Found

W: Kunne ikke hente http://extras.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)/binary-amd64/Packages 404  Not Found

W: Kunne ikke hente http://extras.ubuntu.com/ubuntu/dists/$(lsb_release/main/binary-amd64/Packages 404  Not Found

W: Kunne ikke hente http://extras.ubuntu.com/ubuntu/dists/$(lsb_release/-cs)/binary-i386/Packages 404  Not Found

W: Kunne ikke hente http://extras.ubuntu.com/ubuntu/dists/$(lsb_release/main/binary-i386/Packages 404  Not Found

E: Nogle indeksfiler kunne ikke hentes. De er blevet ignoreret eller de gamle bruges i stedet.


Er der nogen der kan gennemskue hvad der får fejlen til at ske?
Forfatter til Ubuntuguiden: http://www.vidas.dk/guides/ubuntuguiden.html

Kører LTS udgaverne.

"It's always easy if you know how to do it."

Brugeravatar
Christian.Arvai
Admin
Indlæg: 10724
Tilmeldt: 26. apr 2008, 19:27
IRC nickname: Christian_Arvai
Geografisk sted: Holeby - Lolland

Re: install scripts

Indlægaf Christian.Arvai » 4. feb 2015, 16:13

Hmmm, godt spørgsmål. Jeg testede det lige med "echo", og det giver positivt resultat på koden.

Kode: Vælg alt

chr@chr:~$ echo http://archive.ubuntu.com/ubuntu $(lsb_release -cs) main restricted
http://archive.ubuntu.com/ubuntu trusty main restricted
chr@chr:~$

Kører du scriptet som Root?
Med venlig hilsen Christian

"We can only see a short distance ahead, but we can see plenty there that needs to be done." -- Alan Turing

AJenbo
Admin
Indlæg: 20860
Tilmeldt: 15. nov 2009, 15:04
IRC nickname: AJenbo
Geografisk sted: Vanløse, København

Re: install scripts  Emnet er løst

Indlægaf AJenbo » 4. feb 2015, 16:19

/etc/apt/sources.list er ikke et bach script så du kan ikke bruge batch variabler i det... det svare til at forsøge at køre et program i notepad. Du skal i stedet lave et script som danner /etc/apt/sources.list filen.

Brugeravatar
Christian.Arvai
Admin
Indlæg: 10724
Tilmeldt: 26. apr 2008, 19:27
IRC nickname: Christian_Arvai
Geografisk sted: Holeby - Lolland

Re: install scripts

Indlægaf Christian.Arvai » 4. feb 2015, 16:22

AJenbo skrev:/etc/apt/sources.list er ikke et bach script så du kan ikke bruge batch variabler i det... det svare til at forsøge at køre et program i notepad. Du skal i stedet lave et script som danner /etc/apt/sources.list filen.

Kan man så ikke lave en lokal variabel, og så derefter skrive den ind i /etc/apt/sources.list ?
Med venlig hilsen Christian

"We can only see a short distance ahead, but we can see plenty there that needs to be done." -- Alan Turing

AJenbo
Admin
Indlæg: 20860
Tilmeldt: 15. nov 2009, 15:04
IRC nickname: AJenbo
Geografisk sted: Vanløse, København

Re: install scripts

Indlægaf AJenbo » 4. feb 2015, 16:28

Jeg ved ikke lige om det er muligt at koble det ind i det program der henter listerne fra listen, men du kan fint gøre det med et eksternt script som du så selv skal køre når listen skal rettes. Det er også det jeg mener med "Du skal i stedet lave et script som danner /etc/apt/sources.list filen.".

thj01
Indlæg: 2667
Tilmeldt: 21. nov 2006, 10:06
Geografisk sted: Fredericia

Re: install scripts

Indlægaf thj01 » 4. feb 2015, 20:58

@AJenbo

Du har fuldstændig ret. Når jeg kører det som et script så kører det som det skal.

Det her var en tanketorsk fra min side - tak for hjælpen ;)
Forfatter til Ubuntuguiden: http://www.vidas.dk/guides/ubuntuguiden.html

Kører LTS udgaverne.

"It's always easy if you know how to do it."

thj01
Indlæg: 2667
Tilmeldt: 21. nov 2006, 10:06
Geografisk sted: Fredericia

Re: install scripts

Indlægaf thj01 » 5. feb 2015, 08:55

@Christian

Det var nøjagtigt sådan jeg tænkte og derfor for vild i mine egne ideer om hvordan det virkede gg.
Forfatter til Ubuntuguiden: http://www.vidas.dk/guides/ubuntuguiden.html

Kører LTS udgaverne.

"It's always easy if you know how to do it."

Tilbage til "Installation"

Hvem er online

Brugere der læser dette forum: [Bot] og 0 gæster