You are not logged in.

#1 2017-05-17 03:05:46

Genis
Member
Registered: 2017-01-09
Posts: 31

[SOLVED] Restoring system after partial upgrade

Hi! If we learn from our mistakes, I think I'm on the way to learn many things today. What I'm not so sure is about if I'll be able to restore completely my system.

I did a partial upgrade for openssl with pacman. As result, now I get an:

pacman: symbol lookup error: /usr(lib/libcurl.so.4: undefined symbol: SSL_load_error_strings

error everytime I run pacman (and perform some other tasks).

I'm aware that I should upgrade the whole system from a live USB, as described in the Arch Wiki. However, I find some additional problems:

First, don't ask why, I deleted /var/cache/pacman at some point. As result, --cache <dir> option for pacman is not going to work.

Second, and more hard for me to understand, I cannot find the Ethernet interface (enp8s0) from the live USB. I can see it with lspci, and I'm using it now from my system, but cannot use it to access the Internet an run pacman -Syy in the live USB.

Moreover, also from the live USB, if I use ip link set <dev> up on the Wireless interface (wlp7s0) and use wpa_supplicant plus dhcpcd, I fail to ping any domain or IP (ifconfig and route -n look normal). It seems that I cannot upgrade the system with pacman, but also that I cannot reinstall Arch Linux.

What am I missing? Is there a solution to this?

Last edited by Genis (2017-05-17 16:32:21)

Offline

#2 2017-05-17 06:06:10

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Restoring system after partial upgrade

1. Just create the directory (ensure it to be the mounted path!)
2. Don't forget to mount the boot partition into /mnt/boot
3. This: " I cannot find the Ethernet interface (enp8s0) from the live USB. I can see it with lspci, and I'm using it now from my system, but cannot use it to access the Internet" makes absolutely no sense at all (ie. you're contradicting yourself thrice), => please post* the output of "ip addr" from the live system. You may want to use wifi-menu to setup the WLAN connection, but ethernet is likely going to be simpler.


*

ip addr 2>&1 | tee /mnt/ip_addr.txt

will copy the ouput to /ip_addr.txt in the installed system.

Offline

#3 2017-05-17 09:35:25

Genis
Member
Registered: 2017-01-09
Posts: 31

Re: [SOLVED] Restoring system after partial upgrade

For the first steps I have now an empty /var/cache/pacman/pkg folder in my root partition. I mount it from the live USB in /mnt, and the boot partition in /mnt/boot.

About the output of ip addr:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlp7s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether ac:b5:7d:13:d4:85 brd ff:ff:ff:ff:ff:ff

these two are also the interfaces that appear in /sys/class/net

lrwxrwxrwx 1 root root 0 May 17 08:59 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx 1 root root 0 May 17 08:59 wlp7s0 -> ../../devices/pci0000:00/0000:00:1c.0/0000:07:00.0/net/wlp7s0[/b]

In my current session (not from the live USB) the previous two outputs show a third network interface which is the Ethernet device. I cannot understand why I dont see it from the live USB. I  post the output of lspci -vvv from the live USB.

08:00.0 Ethernet controller: Broadcom Limited NetLink BCM57780 Gigabit Ethernet PCIe (rev 01)
        Subsystem: Acer Incorporated [ALI] Device 091d
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 19
        Region 0: Memory at d1400000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [48] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [60] Vendor Specific Information: Len=6c <?>
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: a2fc3f7d885d7320  Data: ba58
        Capabilities: [cc] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 10.000W
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <1us, L1 <32us
                        ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp-
                LnkCtl: ASPM L0s L1 Enabled; RCB 64 bytes Disabled- CommClk+
                        ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, LTR-, OBFF Not Supported
                AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
                AtomicOpsCtl: ReqEn-
                LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
                         EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
        Capabilities: [100 v1] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
        Capabilities: [13c v1] Virtual Channel
                Caps:   LPEVC=0 RefClk=100ns PATEntryBits=1
                Arb:    Fixed- WRR32- WRR64- WRR128-
                Ctrl:   ArbSelect=Fixed
                Status: InProgress-
                VC0:    Caps:   PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
                        Arb:    Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
                        Ctrl:   Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
                        Status: NegoPending- InProgress-
        Capabilities: [160 v1] Device Serial Number 20-6a-8a-ff-fe-a4-d4-38
        Capabilities: [16c v1] Power Budgeting <?>
        Kernel modules: tg3

But let's move on. I then ip link set wlp7s0 up, successfully initiate wpa_supplicant and get network parameters using dhcpcd. Below I also post the output of ifconfig and route -n:

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp7s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.6.46  netmask 255.255.248.0  broadcast 172.17.7.255
        inet6 fe80::aeb5:7dff:fe13:d485  prefixlen 64  scopeid 0x20<link>
        ether ac:b5:7d:13:d4:85  txqueuelen 1000  (Ethernet)
        RX packets 1162  bytes 148388 (144.9 KiB)
        RX errors 0  dropped 27  overruns 0  frame 0
        TX packets 24  bytes 3070 (2.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.17.0.1      0.0.0.0         UG    302    0        0 wlp7s0
172.17.0.0      0.0.0.0         255.255.248.0   U     302    0        0 wlp7s0

But surprisingly to me, I cannot ping IP addresses:

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2037ms

So this may be the reason why when I do pacman -Syu in the live USB I get a bunch of

error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format

errors

EDIT: I come to realize that from my current session, I can access the Internet. However, I CANNOT ping (I also get package loss). It has no sense. Does this have something to do with ping failure from the live USB? I think it shouldn't, but who knows.

Last edited by Genis (2017-05-17 10:06:55)

Offline

#4 2017-05-17 12:42:02

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Restoring system after partial upgrade

https://wiki.archlinux.org/index.php/Ne … m_BCM57780

# modprobe -r tg3
# modprobe broadcom
# modprobe tg3

To know *why* you loose packages, first check "tracepath 8.8.8.8" to see whether you can leave the LAN. On your installed system, I rather suspect issues with the partial openssl installation (ping links libcrypto)

Just to be sure: you do NOT chroot into the installed system from the install media boot, do you?

Offline

#5 2017-05-17 16:31:55

Genis
Member
Registered: 2017-01-09
Posts: 31

Re: [SOLVED] Restoring system after partial upgrade

That has been very helpfull. I couldnt ping, nor traceroute (I couldn't install it), but I notice I could access the Internet (other diagnostic tools such as host worked), so after setting up enp8s0 and run dhcpcd I could download system packages with pacman as described in the Wiki.

So, at the end the real problem was in accessing the Internet, which I thought I couldnt because of the output of ping, but I actually could download packages when run pacman, and now everything has come back to normal. About further steps I took to solve this problem, all I needed was to follow the Arch Wiki as mentioned before.

Thank you for your help!!

Offline

Board footer

Powered by FluxBB