Mudei do Ubuntu 20.04 para o 24.04. Agora o relógio mostra a hora errada (3 horas adiantado). Quando abri as configurações do sistema para consertar isso, o programa trava quando clico em "Data e hora". Alguém pode me ajudar?
Estou tentando solucionar uma regra de firewall que está causando a queda de pacotes.
Configurei o TRACE e obtive o seguinte:
TRACE: 1 79de9f86 filter:input:rule:0x17:DROP
Como faço para descobrir qual regra específica é referenciada e está causando os pacotes descartados?
Estou tentando instalar o postgresql em uma nova máquina Ubuntu 24.04. Estou surpreso que depois
$ sudo apt update
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu noble InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:5 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7,532 B]
Hit:6 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease
Get:7 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7,468 B]
Get:8 http://us.archive.ubuntu.com/ubuntu noble-updates/universe i386 Packages [167 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [384 kB]
Get:10 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7,462 B]
Get:11 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 c-n-f Metadata [14.9 kB]
Get:12 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7,461 B]
Fetched 721 kB in 1s (497 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
isso falha:
$ sudo apt install postgresql
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package postgresql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'postgresql' has no installation candidate
Até onde eu sei, esse pacote deve estar disponível e o acima é inesperado. Devo ter feito algo para bagunçar minha máquina, mas não tenho certeza do que. Qualquer ajuda é bem-vinda.
Estou usando muito a função onde posso alternar entre janelas do mesmo aplicativo, navegador de arquivos instantaneamente. Normalmente é ALT+½ (sempre é depois de uma reinicialização), mas isso simplesmente desapareceu de repente, e não quero reiniciar no momento.
Tenho os seguintes erros quando executo esta vírgula
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
accountsservice-ubuntu-schemas alacarte gnome-applets gnome-applets-data
gnome-panel gnome-panel-data gnome-screensaver gstreamer1.0-gtk3
indicator-applet indicator-appmenu indicator-bluetooth indicator-datetime
indicator-keyboard indicator-messages indicator-power indicator-printers
indicator-session indicator-sound jayatana libabw-0.1-1 libaccounts-glib0
libavahi-ui-gtk3-0 libbamf3-2 libboost-date-time1.71.0
libboost-filesystem1.71.0 libboost-iostreams1.71.0 libboost-locale1.71.0
libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libcpufreq0
libe-book-0.1-1 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libevent-2.1-7
libexttextcat-2.0-0 libexttextcat-data libfcitx-gclient1 libfcitx-utils0
libfreehand-0.1-1 libfreerdp-client2-2 libfreerdp2-2 libgnome-panel0
libgpgmepp6 libgucharmap-2-90-7 libido3-0.1-0 libjuh-java libjurt-java
liblangtag-common liblangtag1 liblightdm-gobject-1-0 libmessaging-menu0
libmhash2 libmspub-0.1-1 libmwaw-0.3-3 libmythes-1.2-0 libnatpmp1
libneon27-gnutls libodfgen-0.1-1 liborcus-0.15-0 libpagemaker-0.0-0
libpanel-applet3 libraptor2-0 librasqal3 librdf0 libridl-java
libunity-gtk2-parser0 libunity-gtk3-parser0 libuno-cppu3
libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3
libuno-salhelpergcc3-3 libunoloader-java liburl-dispatcher1 libvncclient1
libwinpr2-2 libwps-0.4-4 libxmlsec1 libxmlsec1-nss libyajl2 lp-solve
ubuntu-touch-sounds unity-gtk-module-common unity-gtk2-module
unity-gtk3-module unity-settings-daemon-schemas uno-libs-private ure
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
dbus dbus-x11 libavahi-client3:i386 libavahi-common-data:i386
libavahi-common3:i386 libcom-err2:i386 libcups2:i386 libdbus-1-3
libdbus-1-3:i386 libexpat1:i386 libfreetype6:i386 libfribidi0:i386
libgail-common:i386 libgail18:i386 libgdk-pixbuf2.0-0:i386 libgmp10:i386
libgssapi-krb5-2:i386 libgtk2.0-0:i386 libharfbuzz0b:i386 libhogweed5:i386
libicu66:i386 libjbig0:i386 libk5crypto3:i386 libkeyutils1:i386
libkrb5-3:i386 libkrb5support0:i386 liblz4-1:i386 libnettle7:i386
libnss-systemd libp11-kit0:i386 libpam-systemd libpcre2-8-0:i386
libpcre3:i386 libpixman-1-0:i386 libssl1.1:i386 libsystemd0 libsystemd0:i386
libtiff5:i386 libwebp6:i386 libxml2:i386 libzstd1:i386 systemd systemd-sysv
systemd-timesyncd
Suggested packages:
krb5-doc:i386 krb5-user:i386 librsvg2-common:i386 gvfs:i386
systemd-container
The following NEW packages will be installed:
libsystemd0:i386
The following packages will be upgraded:
dbus dbus-x11 libavahi-client3:i386 libavahi-common-data:i386
libavahi-common3:i386 libcom-err2:i386 libcups2:i386 libdbus-1-3
libdbus-1-3:i386 libexpat1:i386 libfreetype6:i386 libfribidi0:i386
libgail-common:i386 libgail18:i386 libgdk-pixbuf2.0-0:i386 libgmp10:i386
libgssapi-krb5-2:i386 libgtk2.0-0:i386 libharfbuzz0b:i386 libhogweed5:i386
libicu66:i386 libjbig0:i386 libk5crypto3:i386 libkeyutils1:i386
libkrb5-3:i386 libkrb5support0:i386 liblz4-1:i386 libnettle7:i386
libnss-systemd libp11-kit0:i386 libpam-systemd libpcre2-8-0:i386
libpcre3:i386 libpixman-1-0:i386 libssl1.1:i386 libsystemd0 libtiff5:i386
libwebp6:i386 libxml2:i386 libzstd1:i386 systemd systemd-sysv
systemd-timesyncd
43 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
139 not fully installed or removed.
Need to get 0 B/22.0 MB of archives.
After this operation, 1,341 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 225599 files and directories currently installed.)
Preparing to unpack .../liblz4-1_1.9.2-2ubuntu0.20.04.1_i386.deb ...
Unpacking liblz4-1:i386 (1.9.2-2ubuntu0.20.04.1) over (1.9.2-2) ...
dpkg: error processing archive /var/cache/apt/archives/liblz4-1_1.9.2-2ubuntu0.2
0.04.1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/liblz4-1/changelog.Debian.gz', which
is different from other instances of package liblz4-1:i386
Errors were encountered while processing:
/var/cache/apt/archives/liblz4-1_1.9.2-2ubuntu0.20.04.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
LOGITECH G915 (teclado TKL)
Então, a história é mais ou menos assim: eu estava ajustando a configuração do teclado através de programas "especiais", não o gnome, como o autokey e outros, e agora as teclas de função não estão mais funcionando...
Estou tentando redefinir a configuração do teclado, o layout, tudo...
Eu já tentei
dconf reset -f /org/gnome
edpkg-reconfigure keyboard-configuration
Agora, a única solução alternativa que tenho para fazer as teclas FN funcionarem novamente é esta:
- faça login em um segundo usuário (criado antes e intocado, usuário não utilizado) que ainda tenha as teclas FN em execução,
- Sair,
- voltar para meu usuário.
Pronto, isso é o "truque" para fazê-los funcionar novamente...
Eu executei
xev
,evtest
eshowkey
, as teclas FN nunca são detectadas, a menos que eu faça a "solução alternativa", após o que elas são detectadas novamente nos 3 programas.Já desinstalei alguns daemons e programas que precisei para personalizar um segundo teclado (keypad)...
Comparei os daemons em execução em ambos os usuários com
service --status-all
, esystemctl | grep "running"
apenas no caso de haver algum daemon modificando as coisas... mas antes e depois da solução alternativa: os processos do sistema são os mesmosEu inspecionei minha
~/.config
pasta e ela não difere do 2º usuárioTambém atualizei de
Ubuntu 20.x
paraUbuntu 22.04.5
para sem sucesso.
Pistas:
- Pode ser algo no meu usuário?, e não consigo descartá-lo,
- Pode estar relacionado ao servidor X? O gnome não parece estar mantendo a configuração ruim após a troca de usuários
- Após a reinicialização, se eu fizer login como segundo usuário, as teclas FN funcionam bem e continuam funcionando quando alterno para meu primeiro usuário... ENTÃO é apenas um defeito de configuração do meu primeiro usuário...
Tenho apenas 1 teclado: Logitek G915 TKL
, ao configurar pela linha de comando, seleciono o único teclado mais próximo na lista:Logitech G15 extra keys via G15 daemon
Computer: Asus P50N (minibox, not a laptop)
Ubuntu 22.04.5 LTS
Gnome version: 42.9
No momento, estou tentando compilar um kernel HWE personalizado do Ubuntu Jammy (22.04), versão 6.8.0-45
, seguindo um procedimento semelhante ao mencionado aqui . Estou aplicando alguns patches ao iwlwifi
driver.
Aqui está meu processo passo a passo:
git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy && cd jammy
git checkout Ubuntu-hwe-6.8-6.8.0-45.45_22.04.1
git switch -c my_branch/6.8.0-45_iwl_patch
- Aplicar minhas alterações ao
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
arquivo git add . && git commit -m "My commit message"
cp /boot/config-$(uname -r) .config
sed -i 's/CONFIG_LOCALVERSION=""/CONFIG_LOCALVERSION="-ricciolino"/g' .config
make oldconfig
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic
Tudo funciona bem até a etapa 10, onde encontro o seguinte erro durante o processo de compilação:
(my_branch/6.8.0-45_iwl_patch)> fakeroot debian/rules binary-headers binary-generic
Debug: /opt/my-kernel/jammy/debian/stamps/stamp-prepare-indep
dh_prep -i
[ -d /opt/my-kernel/jammy/debian/stamps/ ] || mkdir /opt/my-kernel/jammy/debian/stamps/; touch /opt/my-kernel/jammy/debian/stamps/stamp-prepare-indep
Debug: /opt/my-kernel/jammy/debian/stamps/stamp-install-headers
dh_testdir
install -d /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45
find . -path './debian' -prune -o -path './debian.hwe-6.8' -prune \
-o -path './include/*' -prune \
-o -path './scripts/*' -prune -o -type f \
\( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Kbuild*' -o \
-name '*.sh' -o -name '*.pl' -o -name '*.lds' \) \
-print | cpio -pd --preserve-modification-time /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45
27658 blocks
cp -a scripts include /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45
(find arch -name include -type d -print | \
xargs -n1 -i: find : -type f) | \
cpio -pd --preserve-modification-time /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45
xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value
cpio: /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45/arch/powerpc/include/uapi/asm/Kbuild not created: newer or same age version exists
...
<more cpio lines>
...
cpio: /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45/arch/x86/include/asm/Kbuild not created: newer or same age version exists
28358 blocks
# Do not ship .o and .cmd artifacts in headers
find /opt/my-kernel/jammy/debian/linux-hwe-6.8-headers-6.8.0-45/usr/src/linux-hwe-6.8-headers-6.8.0-45 -name \*.o -or -name \*.cmd -exec rm -f {} \;
[ -d /opt/my-kernel/jammy/debian/stamps/ ] || mkdir /opt/my-kernel/jammy/debian/stamps/; touch /opt/my-kernel/jammy/debian/stamps/stamp-install-headers
Debug: binary-headers
dh_installchangelogs -plinux-hwe-6.8-headers-6.8.0-45
dh_installdocs -plinux-hwe-6.8-headers-6.8.0-45
dh_compress -plinux-hwe-6.8-headers-6.8.0-45
dh_fixperms -plinux-hwe-6.8-headers-6.8.0-45
dh_installdeb -plinux-hwe-6.8-headers-6.8.0-45
flock -w 60 /opt/my-kernel/jammy/debian/.LOCK dh_gencontrol -plinux-hwe-6.8-headers-6.8.0-45
dh_md5sums -plinux-hwe-6.8-headers-6.8.0-45
dh_builddeb -plinux-hwe-6.8-headers-6.8.0-45
dpkg-deb: building package 'linux-hwe-6.8-headers-6.8.0-45' in '../linux-hwe-6.8-headers-6.8.0-45_6.8.0-45.45~22.04.1_all.deb'.
x86_64-linux-gnu-gcc-12 debian/scripts/fix-filenames.c -o debian/scripts/fix-filenames
Debug: /opt/my-kernel/jammy/debian/stamps/stamp-prepare-tree-generic
install -d /opt/my-kernel/jammy/debian/build/build-generic
touch /opt/my-kernel/jammy/debian/build/build-generic/ubuntu-build
python3 debian/scripts/misc/annotations --export --arch amd64 --flavour generic > /opt/my-kernel/jammy/debian/build/build-generic/.config
sed -i 's/.*CONFIG_VERSION_SIGNATURE.*/CONFIG_VERSION_SIGNATURE="Ubuntu 6.8.0-45.45~22.04.1-generic 6.8.12"/' /opt/my-kernel/jammy/debian/build/build-generic/.config
find /opt/my-kernel/jammy/debian/build/build-generic -name "*.ko" | xargs rm -f
make ARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- HOSTCC=x86_64-linux-gnu-gcc-12 CC=x86_64-linux-gnu-gcc-12 BINDGEN=bindgen-0.65 KERNELRELEASE=6.8.0-45-generic CONFIG_DEBUG_SECTION_MISMATCH=y KBUILD_BUILD_VERSION="45~22.04.1" CFLAGS_MODULE="-DPKG_ABI=45" PYTHON=python3 O=/opt/my-kernel/jammy/debian/build/build-generic -j24 rustavailable || true
make[1]: Entering directory '/opt/my-kernel/jammy'
make[2]: Entering directory '/opt/my-kernel/jammy/debian/build/build-generic'
***
*** Rust bindings generator 'bindgen-0.65' could not be found.
***
***
*** Please see Documentation/rust/quick-start.rst for details
*** on how to set up the Rust support.
***
make[3]: *** [/opt/my-kernel/jammy/Makefile:1718: rustavailable] Error 1
make[2]: *** [/opt/my-kernel/jammy/Makefile:240: __sub-make] Error 2
make[2]: Leaving directory '/opt/my-kernel/jammy/debian/build/build-generic'
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/opt/my-kernel/jammy'
make ARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- HOSTCC=x86_64-linux-gnu-gcc-12 CC=x86_64-linux-gnu-gcc-12 BINDGEN=bindgen-0.65 KERNELRELEASE=6.8.0-45-generic CONFIG_DEBUG_SECTION_MISMATCH=y KBUILD_BUILD_VERSION="45~22.04.1" CFLAGS_MODULE="-DPKG_ABI=45" PYTHON=python3 O=/opt/my-kernel/jammy/debian/build/build-generic -j24 olddefconfig
make[1]: Entering directory '/opt/my-kernel/jammy'
make[2]: Entering directory '/opt/my-kernel/jammy/debian/build/build-generic'
***
*** The source tree is not clean, please run 'make ARCH=x86 mrproper'
*** in /opt/my-kernel/jammy
***
make[3]: *** [/opt/my-kernel/jammy/Makefile:646: outputmakefile] Error 1
make[2]: *** [/opt/my-kernel/jammy/Makefile:240: __sub-make] Error 2
make[2]: Leaving directory '/opt/my-kernel/jammy/debian/build/build-generic'
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/opt/my-kernel/jammy'
make: *** [debian/rules.d/2-binary-arch.mk:23: /opt/my-kernel/jammy/debian/stamps/stamp-prepare-tree-generic] Error 2
O que está errado?
Obrigado pelo apoio
Gostaria de saber se posso instalar e usar legalmente o metapacote Ubuntu Restricted Codecs nos Estados Unidos? Como posso acessar esses codecs proprietários de graça?
Recentemente troquei meu Lenovo thinkpad X1 yoga 4ª geração para o Ubuntu 24. Uso esse computador para trabalhar e não consigo imprimir na impressora principal do escritório desde que fiz a troca. Temos duas impressoras no escritório e consigo imprimir na Canon MF 1643i II do consultório médico, mas não na Canon IR AdvanceDX C3835i. Consigo ver as duas impressoras na minha lista de impressoras nas configurações, mas só consigo imprimir na Canon MF.
Eu instalei o cups e verifiquei se ele está em execução, o que é verdade. Eu abri a interface gráfica do cups em localhost:361 e tentei fazer login usando meu nome e senha para minha máquina, mas não funcionou. Agora, quando tento, a página de administração não me pede credenciais e simplesmente diz não autorizado. Espero ajuda para recuperar o acesso à página de administração do cups ou uma solução alternativa para adicionar a impressora sem a necessidade da interface gráfica. Eu sou definitivamente um novato no Linux em muitos aspectos, então, por favor, saibam que precisarei de alguma orientação básica. Obrigado a todos antecipadamente!