Inastallazione apache

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
Scrivi risposta
Avatar utente
FlameMEX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 302
Iscrizione: martedì 4 ottobre 2016, 11:56

Inastallazione apache

Messaggio da FlameMEX »

Sto installando apache su ubuntu server mi da errore? Possibili soluzioni? Grazie

Codice: Seleziona tutto

Err:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 apache2-bin arm64 2.4.41-4ubuntu3.8
  404  Not Found [IP: 91.189.88.142 80]
Err:2 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 apache2-data all 2.4.41-4ubuntu3.8
  404  Not Found [IP: 91.189.88.142 80]
Err:3 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 apache2-utils arm64 2.4.41-4ubuntu3.8
  404  Not Found [IP: 91.189.88.142 80]
Err:4 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 apache2 arm64 2.4.41-4ubuntu3.8
  404  Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/apache2/apache2-bin_2.4.41-4ubuntu3.8_arm64.deb  404  Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/apache2/apache2-data_2.4.41-4ubuntu3.8_all.deb  404  Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/apache2/apache2-utils_2.4.41-4ubuntu3.8_arm64.deb  404  Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/apache2/apache2_2.4.41-4ubuntu3.8_arm64.deb  404  Not Found [IP: 91.189.88.142 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40299
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: Inastallazione apache

Messaggio da steff »

Codice: Seleziona tutto

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
fatto questo?
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
Avatar utente
DoctorStrange
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2854
Iscrizione: mercoledì 14 ottobre 2015, 9:33
Desktop: Gnome3
Distribuzione: Ubuntu 22.04 LTS Jammy Jellyfish
Sesso: Maschile
Località: Roma, Italia

Re: Inastallazione apache

Messaggio da DoctorStrange »

Hai aggiunto a mano dei repository, solo per scaricare apache? Non facevi prima a scaricare manualmente il solo pacchetto che ti interessava, ed installarlo?
Avatar utente
FlameMEX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 302
Iscrizione: martedì 4 ottobre 2016, 11:56

Re: Inastallazione apache

Messaggio da FlameMEX »

Codice: Seleziona tutto

root@ubuntu:/home/ubuntu# apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]
Reading package lists... Done
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 90d 1h 2min 20s). Updates for this repository will not be applied.
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 89d 23h 7min 52s). Updates for this repository will not be applied.
E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 89d 23h 6min 20s). Updates for this repository will not be applied.

Ce qualche problematica nelle repo....
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40299
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: Inastallazione apache

Messaggio da steff »

Questi mi sembra fantasiosi:

Codice: Seleziona tutto

http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 apache2 arm64 2.4.41-4ubuntu3.8
...
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
Avatar utente
FlameMEX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 302
Iscrizione: martedì 4 ottobre 2016, 11:56

Re: Inastallazione apache

Messaggio da FlameMEX »

si sono 3 che ho provato a mettere io per uscire dalla matassa, ignorali plz...
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40299
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: Inastallazione apache

Messaggio da steff »

Rimuovili e hai provato un semplice

Codice: Seleziona tutto

sudo apt install apache2
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
Avatar utente
FlameMEX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 302
Iscrizione: martedì 4 ottobre 2016, 11:56

Re: Inastallazione apache

Messaggio da FlameMEX »

Codice: Seleziona tutto

ubuntu@ubuntu:~$ sudo apt install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 ssl-cert
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser
  openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 ssl-cert
0 upgraded, 10 newly installed, 0 to remove and 33 not upgraded.
Need to get 1411 kB/1711 kB of archives.
After this operation, 7234 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 apache2-bin arm64 2.4.41-4ubuntu3.8
  404  Not Found [IP: 91.189.88.142 80]
Err:2 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 apache2-data all 2.4.41-4ubuntu3.8
  404  Not Found [IP: 91.189.88.142 80]
Err:3 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 apache2-utils arm64 2.4.41-4ubuntu3.8
  404  Not Found [IP: 91.189.88.142 80]
Err:4 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 apache2 arm64 2.4.41-4ubuntu3.8
  404  Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/apache2/apache2-bin_2.4.41-4ubuntu3.8_arm64.deb  404  Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/apache2/apache2-data_2.4.41-4ubuntu3.8_all.deb  404  Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/apache2/apache2-utils_2.4.41-4ubuntu3.8_arm64.deb  404  Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/apache2/apache2_2.4.41-4ubuntu3.8_arm64.deb  404  Not Found [IP: 91.189.88.142 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ubuntu@ubuntu:~$
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40299
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: Inastallazione apache

Messaggio da steff »

Se non sistemi questi voci nei sorgenti non ne esci, come detto.
https://gist.github.com/ishad0w/7885551 ... 542c53e170
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
Avatar utente
FlameMEX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 302
Iscrizione: martedì 4 ottobre 2016, 11:56

Re: Inastallazione apache

Messaggio da FlameMEX »

le ho aggiornate con

Codice: Seleziona tutto

nano /etc/apt/sources.list
ma non ce verso di installare apache2
ti incoollo il file delle repo, escludiamo quelle sbagliate, il resto sono aggiornate come linkatomi, ciao

Codice: Seleziona tutto

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

deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

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

deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports focal main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports focal-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://ports.ubuntu.com/ubuntu-ports focal universe
# deb-src http://ports.ubuntu.com/ubuntu-ports focal universe
deb http://ports.ubuntu.com/ubuntu-ports focal-updates universe
# deb-src http://ports.ubuntu.com/ubuntu-ports focal-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://ports.ubuntu.com/ubuntu-ports focal multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports focal multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-updates multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports focal-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://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe 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 focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

deb http://ports.ubuntu.com/ubuntu-ports focal-security main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports focal-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports focal-security universe
# deb-src http://ports.ubuntu.com/ubuntu-ports focal-security universe
deb http://ports.ubuntu.com/ubuntu-ports focal-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports focal-security multiverse
deb http://it.archive.ubuntu.com/ubuntu/ impish main universe restricted multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ impish main universe restricted multiverse

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

deb http://it.archive.ubuntu.com/ubuntu/ impish-updates main universe restricted multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ impish-updates main universe restricted multiverse

Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40299
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: Inastallazione apache

Messaggio da steff »

ma non ce verso di installare apache2
descrivi quel verso, cosa esce nel terminale per esempio, hai fatto un

Codice: Seleziona tutto

sudo apt update 
prima?
E hai focal o impish? Il file contiene repo per tutti e due....
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
Avatar utente
FlameMEX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 302
Iscrizione: martedì 4 ottobre 2016, 11:56

Re: Inastallazione apache

Messaggio da FlameMEX »

il file .conf contiene tutto quello che ho postato nel 3d prima, sono mischiati, apt update lo do sempre prima di provare ad installare apache2
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40299
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: Inastallazione apache

Messaggio da steff »

Non puoi mischiare versioni nel file, salva solo questo linkato poi aggiorna e riprova.
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
Avatar utente
FlameMEX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 302
Iscrizione: martedì 4 ottobre 2016, 11:56

Re: Inastallazione apache

Messaggio da FlameMEX »

eccoti il nuovo souces.list:

Codice: Seleziona tutto

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

deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

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

deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner
ecco lo status di instllazione apache2, ovviamente ho fatto l'apt update prima...

Codice: Seleziona tutto

root@ubuntu:/etc/apt# sudo apt install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apache2
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40299
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: Inastallazione apache

Messaggio da steff »

Hai dato apt update? apache2 è in focal-updates che hai in sources.list....

Codice: Seleziona tutto

deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
https://packages.ubuntu.com/focal-updat ... mat=txt.gz
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
Avatar utente
FlameMEX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 302
Iscrizione: martedì 4 ottobre 2016, 11:56

Re: Inastallazione apache

Messaggio da FlameMEX »

come cos'ì?

Codice: Seleziona tutto

root@ubuntu:/etc/apt# apt update
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40299
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: Inastallazione apache

Messaggio da steff »

Non ti so dire niente di più... non ho idea perché non trova apache...

Codice: Seleziona tutto

sudo apt install apache2
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto   
I seguenti pacchetti aggiuntivi saranno inoltre installati:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap liblua5.3-0
Pacchetti suggeriti:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom
I seguenti pacchetti NUOVI saranno installati:
  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap liblua5.3-0
0 aggiornati, 9 installati, 0 da rimuovere e 63 non aggiornati.
È necessario scaricare 2.006 kB di archivi.
Dopo quest'operazione, verranno occupati 8.120 kB di spazio su disco.
Continuare? [S/n
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
Avatar utente
FlameMEX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 302
Iscrizione: martedì 4 ottobre 2016, 11:56

Re: Inastallazione apache

Messaggio da FlameMEX »

Allora non mi resta che formattare la PI, comqunque devo costruire un server webdav di modo da poter accedervi con esplora risorse da un pc windows, sia dall'interno che dall'esterno, possiamo chiudere il 3d, ma non è stator isolto, un saluto a tutti, ciao
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 9 ospiti